Repository navigation
Remove the secrets no workflow has and the product workflow folders GitHub never runs - #121
Merged
Merged
Conversation
…itHub never runs The root workflows passed DEVICE_DETECTION_URL, CSV_URL and TEST_PYPI_TOKEN, which are not secrets of this repository or the organisation, so each was an empty string. ci/fetch-assets.ps1 and device-detection/ci/fetch-assets.ps1 no longer take the two URLs, and the product CI readmes no longer list them. GitHub runs workflows only from the root .github/workflows, so the four product folders never ran. The example asset update is the one workflow there with no root copy, and it moves to the root on Monday at 03:45 UTC, apart from the other repositories' updates. The on-demand examples workflow is dropped, as the pull request and nightly builds run those tests on every configuration. Closes #18.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #18.
Problem
The root workflows pass three secrets that do not exist,
DEVICE_DETECTION_URL,CSV_URLandTEST_PYPI_TOKEN. On 13 November the repository had one secret,DEVICE_DETECTION_KEY, and none of the 53 organisation secrets it can use has any of those names, so GitHub passed each one as an empty string.ci/fetch-assets.ps1anddevice-detection/ci/fetch-assets.ps1took the two URLs, and the product CI readmes listedDEVICE_DETECTION_URLandTEST_PYPI_TOKEN. A reader could not tell which secrets the CI really needs.The products also kept the workflow folders of the repositories they came from,
pipeline/.github/workflows,device-detection/.github/workflows,ip-intelligence/.github/workflowsandlocation/.github/workflows. GitHub's workflows page says "Workflows are defined in the.github/workflowsdirectory in a repository" and "GitHub searches the.github/workflowsdirectory in the root of your repository", so none of the 24 files in those folders ever ran, and each repeated the dead secrets.What was checked
CsvUrl,DeviceDetectionUrlandTestPypiTokenamong the secrets ofnightly-pull-request.yml(lines 66, 68 and 86),nightly-publish.yml(79, 81 and 98) andrelease-pull-request.yml(58, 60 and 78), each with norequired, so a caller may leave them out.ci/fetch-assets.ps1pass only the keys it declares, beingsteps/run-script.ps1lines 17 and 18 and the prefetch action,.github/actions/prefetch_assets/action.ymllines 56 to 59. So neither passes a key the script no longer takes.steps/download-data-file.ps1line 15 uses the distributor address with the licence key whenUrlis empty, and a[string]parameter that is not passed is an empty string, so the data files come from the same address as before.DEVICE_DETECTION_URLonly as the Rust examples workflow's own variable, and has neither of the other two.device-detection/.github/workflows/example-assets-update.ymlrefreshes the web examples' shared stylesheet and script from the latest examples assets release. .NET, Java, Node.js, PHP and Rust each run it from their root (Java, Node.js, PHP and Rust at 03:00 on Mondays, .NET at 03:30), andsteps/update-example-assets.ps1lines 37 to 40 refreshes every tracked copy by name, which finds this repository's sixexamples-main.min.csscopies from the root.pipeline/.github/workflows/examples.ymlran the cloud request engine examples' tests on demand on one Linux runner with Python 3.11, andpipeline/ci/run-integration-tests.ps1line 33 already listsfiftyone_pipeline_cloudrequestengine/examples, so the pull request and nightly builds run those tests on every configuration.cloud-51did.ymlis already at the root.What changed
nightly-pipeline.yml,publish.yml,pull-requests.ymlandrelease-pull-request.ymlno longer pass the three secrets.ci/fetch-assets.ps1anddevice-detection/ci/fetch-assets.ps1no longer takeDeviceDetectionUrlorCsvUrl, and the Device Detection script no longer hands them to common-ci'ssteps/fetch-assets.ps1.device-detection/ci/README.mdandip-intelligence/ci/README.mdno longer listDEVICE_DETECTION_URLorTEST_PYPI_TOKEN..github/workflows/example-assets-update.ymlis the Device Detection copy moved to the root, starting on Mondays at 03:45 UTC, apart from the other repositories' asset updates..githubfolders are removed,examples.ymlwith them.No package code changes. The release plan counts the five files removed from
location/.github/workflowsas changes tofiftyone_location(the dry run below reports it "changed since 4.5.10 (5 files)"), butfiftyone_locationdepends onfiftyone_pipeline_core,fiftyone_pipeline_enginesandfiftyone_pipeline_cloudrequestengine(ci/packages.jsonlines 120 to 130), which Monday releases anyway, so this draft adds no package to the release.Checks
This draft changes only workflows, CI scripts and their readmes. James Rosewell decided at about 11:35 UTC on 12 November, for such a change, "rebuild and include, but the change doesn't impact the code so no need to run the full builds", so it has no full build of its own.
publish.ymlontmp/pyowner-sim4at 72c3f126, which isrcat f084e85 with this head and the open drafts Let one thread at a time read a native results instance #80, Say in the Element Data documentation what is safe with threads #84, Make the already-updating guard real and keep one pending check per data file #87, Run the tests of the CI scripts on pull requests that change them #117, Hand the web request to the pipeline in the IP Intelligence web examples #119 and Share a key found in the request and the Evidence once, whatever its letters #120 merged in, withdryruntrue,allow-early-releasetrue andcommon-ci-refdef6ce6c, common-ci'src. Every one of its 35 jobs passed but the skipped Report Compare Performance, being Configure, 15 Pre Build, Build, 15 Test jobs (five of each on macOS), ComparePerformance and Package. Configure randevice-detection/ci/fetch-assets.ps1"with parameters: DeviceDetection", and the Build and Test jobs found every data file they need, so the secrets this draft removes were not missed.What remains
Nothing in this draft. The last release into
mainwas #114, merged at 06:22 UTC on 13 November.