Repository navigation
ci(ci.yml): run the four block steps as one Python call each (GEN-005, #2851) - #2852
Conversation
…#2851) `ci/ci_gate_steps.py` carries them, one subcommand per step: - `record-export-provenance` is `Record Export Provenance`: the numeric `SOURCE_RUN` check with the step's own message, `gh api repos/$GITHUB_REPOSITORY/actions/runs/$SOURCE_RUN --jq .head_sha`, the 40-hex check, then `FLATPAK_ARTIFACT_SOURCE`/`FLATPAK_ARTIFACT_RUN` into `$GITHUB_ENV`. - `install-runtime-deps` is `Install Runtime Test Infrastructure`: the mirror preference under `sudo -E` through the runner's uv, then the two `apt-get` calls with their retry/timeout options and the same 21 packages. - `run-saved-capture-profile` is `Run Installed Flatpak with Saved Capture Profile`: the `tar -xf` of the downloaded OSTree repo, then `ci/flatpak_runtime.py --repo … --output …`. - `validate-prepared-suites` is `tier2-setup-consumer`'s `Validate Prepared OFF and ON Suites`: the `tar --zstd` extraction, the `bundle.json` `image_id` read, and the one `docker run` with the same mounts and `OBS_TIER2_MODES=OFF ON`. The uv bind mount stays host-resolved (`shutil.which('uv')`). The path's `GEN-005` `[[exceptions]]` block goes. `ci-lint precheck` header: `5 violation(s), 360 approved exception(s), 10 needs_review` -> `5 violation(s), 356 approved exception(s), 10 needs_review`, no other rule moving. Two existing pins drove the ported steps in shell, so they are repointed: `ci/test_host_apt_failover.py` runs `install-runtime-deps` through the module with the same `sudo`/`apt-get` stubs, and `ci/test_flatpak_runtime.py` reads the published variables out of the module instead of the workflow block. Both jobs are `workflow_dispatch`-gated, so PR CI cannot run either: the evidence here is the offline pins, `ci/local_gate.py --only self-test` (294 files, ok) and the precheck header. Refs #2851, #962.
|
Handed off to the coordinator. Queued on No local-gate stamp: the PR touches only The one thing a reviewer should not expect from this PR: a run of the two jobs it ports. Both are |
Fixes #2851. Refs #962.
GEN-005's shell budget is one line per
run:; four steps in.github/workflows/ci.ymlwere over it. Each is now oneuv run --no-project --script ci/ci_gate_steps.py <subcommand>call.RED —
50ed624e8ci/test_ci_gate_steps.pyonly, against master's workflow andci.toml:Nothing to import (
ci/ci_gate_steps.pyabsent),run: |still in the twojobs, and the path's GEN-005
[[exceptions]]block still inci.toml.GREEN —
2c7d6f146flatpak-runtime-reuseRecord Export Provenancerecord-export-provenanceflatpak-runtime-reuseInstall Runtime Test Infrastructureinstall-runtime-depsflatpak-runtime-reuseRun Installed Flatpak with Saved Capture Profilerun-saved-capture-profiletier2-setup-consumerValidate Prepared OFF and ON Suitesvalidate-prepared-suitesEach subcommand keeps its step's argv and exit status: the run-id and 40-hex
checks with the step's own message, the
gh api … --jq .head_shaargv, the twoapt-getcalls with their-o Acquire::*options and the same 21 packages, thetar -xf+ci/flatpak_runtime.pypair, and the singledocker runwithOBS_TIER2_MODES=OFF ONand the uv bind mount resolved on the host.Evidence:
Before:
5 violation(s), 360 approved exception(s), 10 needs_review. No otherrule moved; the path's GEN-005 block is gone.
Two pre-existing pins executed the ported steps as shell, so they are repointed
in the same commit:
ci/test_host_apt_failover.pydrivesinstall-runtime-depsthrough the module with the samesudo/apt-getstubs(failover at mirror/update/install still propagates 42 and the call count still
matches), and
ci/test_flatpak_runtime.pyreadsFLATPAK_ARTIFACT_SOURCE/FLATPAK_ARTIFACT_RUNout of the module instead ofthe workflow block.
What this PR does not prove
Both jobs are
workflow_dispatch-gated —flatpak-runtime-reuseneedsinputs.flatpak-runtime-reuse-run,tier2-setup-consumeris skipped byinputs.native-cache-measurement-only— so PR CI cannot run either and noremote run is claimed here. The evidence is the offline pins plus the precheck
header; the first dispatch that exercises those two inputs is the run-path proof.