Repository navigation
ci(scheduled): run the three nightly steps as one Python call each (GEN-005, #2822) - #2824
Merged
Merged
Conversation
…2822) `ci/scheduled_steps.py` carries them: - `check-nightly-runs` is the `Check Nightly Runs` step in both `upload-language-files` (bash) and `steam-upload` (zsh): the same `gh run list --workflow scheduled.yaml --limit 2 --json headSha` argv, the `GITHUB_SHA` comparison, and `passed` (plus `lastNightly`, which only the bash copy wrote) in `$GITHUB_OUTPUT`. - `report-nightly-failure` is the issue the failed nightly opens or updates: the same title and body, the same `gh issue list --search` lookup, then `gh issue comment` or `gh issue create`. `report-nightly-failure` gains the `actions/checkout` and pinned `setup-uv` steps the module needs (it had no checkout at all), with the `contents: read` its grant now requires. `steam-upload` drops its `zsh` default: no shell step is left. The path's GEN-005 exception goes. Refs #2822, #962.
Member
Author
|
Handed off to the coordinator.
|
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.
The three multi-line
run:steps in.github/workflows/scheduled.yamlare one Python call each, so the path's GEN-005 exception is gone. Fixes #2822, Refs #962.RED
68b3db384addsci/test_scheduled_steps.py, which fails on the tree it was committed to (module absent, the three shell blocks still in place, theci.tomlexception still there) —uv run python -m unittest ci/test_scheduled_steps.py->FAILED (failures=15, errors=1):ci/test_nightly_failure_issue.py'stest_reuses_an_open_issue_instead_of_piling_upwas the other red: it pinnedgh issue list --state openin the workflow, which the port moves into the module.GREEN
7c867f574:ci/scheduled_steps.py, two subcommands, each one step's argv and exit status:check-nightly-runs— theCheck Nightly Runsstep bothupload-language-files(bash) andsteam-upload(zsh) carry:gh run list --workflow scheduled.yaml --limit 2 --json headSha --jq '.[1].headSha'(the second entry is the run before this one, since the first is the active run), thenGITHUB_SHAcompared with it. Equal means this commit already ran the nightly ->passed=false; otherwisepassed=trueand, as the bash copy wrote it,lastNightly=<sha>. Both go to$GITHUB_OUTPUT. The zsh copy omittedlastNightly, which only the bash job'scheck-changesstep reads, so one subcommand serves both jobs.report-nightly-failure— the same title, the same body fromSHA/RUN_URL, the samegh issue list --state open --search 'in:title "<title>"'lookup, thengh issue commenton the open issue orgh issue createwhen there is none.GH_TOKEN/GH_REPOstay in the step'senv:.scheduled.yaml— eachrun:is oneuv run --no-project --script ${{ github.workspace }}/ci/scheduled_steps.py <step>line.report-nightly-failuregainsactions/checkout(it had none, and the module lives in the repo — the same miss infra: the Sanitizers "Select passes" job runs ci/sanitizers_step.py with no checkout (master weekly red) #2797 caught on the sanitizerspickstep) plus the pinnedastral-sh/setup-uv, and thecontents: readthe checkout needs.upload-language-filesandsteam-uploadgain the pinnedsetup-uvstep;steam-uploaddrops itszshdefault, since no shell step is left.ci.toml: the path's GEN-005[[exceptions]]block is deleted.ci/test_nightly_failure_issue.pynow asserts the one-line step and the module's argv words, so the behaviour it pinned is still pinned.Verification
uv run python -m unittest ci/test_scheduled_steps.py->OK(14 tests) on GREEN.uv run python -m unittest ci/test_nightly_failure_issue.py->OK(3 tests) on GREEN../lint->ok (48.7s), the full ci self-test lane included.Build tooling only: no
docs/features.mdline.Not verified here:
upload-language-filesandsteam-uploadare upstream-only (github.repository_owner == 'obsproject'), andreport-nightly-failureruns only after a failed scheduled build, so the first real proof is the next scheduled run. The stubghin the tests is the local evidence, as in the sibling ports (#2792, #2780, #2816).git diff origin/master --statshows the five intended files and noplugins/obs-websocketpointer change.