Repository navigation
Feat: Add the ci-management-verify workflow - #108
Merged
ModeSevenIndustrialSolutions merged 5 commits intoNov 1, 2026
Merged
ModeSevenIndustrialSolutions merged 5 commits into
ModeSevenIndustrialSolutions merged 5 commits into
Conversation
lf-releng-code-monkey-bot
Bot
force-pushed
the
code-monkey/issue-106
branch
from
November 1, 2026 19:02
8c9b1a1 to
9675b14
Compare
Add a reusable workflow that verifies a ci-management change: a Lint leg runs every hook in the change's pre-commit configuration through standalone-linting-action, and a JJB leg checks the change out with its submodules and generates the jobs with jjb-action in test mode. It replaces the three ci-management verify workflows in lfit/releng-reusable-workflows, follows tox-verify.yaml's shape, and casts no vote. Both legs run the change's own code. actions/checkout v7.0.1 points every submodule's config at the same persisted credentials file, so the credential removal now walks each git directory under .git/modules as well as the superproject, and its final check reads each one's effective configuration. tox-verify.yaml takes the same script, and the new fixtures fail when the copies drift. A Gerrit verify is dispatched on the default branch, whose cache scope trusted runs share, so the Lint leg pins standalone-linting-action v0.10.1 and passes cache_hooks 'false' in Gerrit mode: the change's hooks can then neither restore nor save prek's hook environments or setup-uv's cache. GitHub mode keeps the default. tests/test-ci-management-verify-plan.sh extracts the Gerrit, plan and credential-removal scripts and runs them offline, against a submodule fixture it builds at run time, and fails if the Lint leg's cache_hooks stops being 'false' in Gerrit mode; a prek hook runs it. Review round 1 (Copilot): Gerrit runs could poison the shared prek cache later restored by trusted runs. Fixed with cache_hooks as above, and a fixture guards it. Review round 2 (Copilot): v0.10.0's cache_hooks did not reach the action's setup-uv step, whose cache stays on for workflow_dispatch, so a Gerrit change could still poison the default branch's uv cache. Fixed by pinning v0.10.1, where cache_hooks 'false' turns setup-uv's cache off too; the existing Gerrit-mode value needs no change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Call the reusable ci-management verify workflow from this repository's pull requests, in block mode, against a fixture shaped like a consumer: a JJB tree holding one job template and one project, a sibling global-jjb/, and a pre-commit configuration with check-yaml and the actionlint hook every consumer is asked to add. The publisher cannot commit a symlink, and the reusable's JJB leg cannot create one, so the fixture carries no jjb/global-jjb link and the project uses its own template. jjb-action's own suite covers the linked layout. prek runs a configuration's hooks from the git top level, so the Lint leg runs the fixture's hooks across this whole repository. Add the actionlint ignore for the '$/' call, as for the other self-callers. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Add examples/ci-management/gerrit-ci-management-verify.yaml, built from the Gerrit tox verify example: visibility gate, vote clearing, the reusable call, and the vote. Its header states that a copy must keep 'gerrit' and 'verify' in its file name and not 'required', or gerrit_to_platform will not dispatch it. There is no GitHub example: every consumer runs on Gerrit. Exempt the placeholder SHA and the voting key's secret references in .github/zizmor.yml, line by line, as for the other examples. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Add docs/ci-management-verify.md: the job graph, the inputs and the plan's path rules, the repository layout the JJB leg expects, why the checkout credentials go before either leg runs the change's content, including from every submodule, why the Lint leg turns off the prek and uv caches in Gerrit mode, the egress allow-lists, and what the offline fixtures and the self-test cover and cannot. For the linked global-jjb layout it points to jjb-action's own suite rather than a follow-up here. Its migration section maps the legacy inputs, asks every consumer to add the actionlint-py hook, and lists what ONAP, O-RAN-SC, lfit, FD.io and akraino each change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
Add a section for the ci-management verify reusable with a minimal caller, name its self-test caller and its Gerrit example in the caller filename rules, and count it with change isolation and tox verify among the reusables that check a Gerrit change out. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: lf-releng-code-monkey-bot[bot] <332050256+lf-releng-code-monkey-bot[bot]@users.noreply.github.com>
lf-releng-code-monkey-bot
Bot
force-pushed
the
code-monkey/issue-106
branch
from
November 1, 2026 20:04
9675b14 to
cacbaf5
Compare
ModeSevenIndustrialSolutions
approved these changes
Nov 1, 2026
ModeSevenIndustrialSolutions
merged commit Nov 1, 2026
43522b7
into
lfreleng-actions:main
45 checks passed
This was referenced Nov 1, 2026
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 #106
Authored by an AI agent; human review required
claude-opus-5.5via GitHub Copilot CLI716174e950e70d185093f33ef34fdcb76e5616e4bash tests/test-ci-management-verify-plan.shbash tests/test-tox-verify-plan.shprek run --files .github/workflows/ci-management-verify.yaml tests/test-ci-management-verify-plan.sh docs/ci-management-verify.mduvx zizmor --offline --persona auditor .github/workflows/ci-management-verify.yaml .github/workflows/ci-management-verify-action.yaml examples/ci-management/gerrit-ci-management-verify.yamlaislop scan --base 716174e950e70d185093f33ef34fdcb76e5616e4 --jsongit log --raw --format=%h 716174e950e70d185093f33ef34fdcb76e5616e4..HEADThe
github-code-monkey-botworkflow opened this pull request.Nobody has merged it; a maintainer must review it first.
Review findings on this pull request are answered by a later revision round of this workflow, up to ten rounds; a maintainer must act on any finding that remains after that, and reviews every round before merge.
Round 2 of revision, on its base.
What this does
Adds
.github/workflows/ci-management-verify.yaml, the reusable verify workflow for ci-management repositories (#106, design in #77). It replacesgerrit-ci-management-verify.yaml,gerrit-compose-ci-management-verify.yamlandcomposed-ci-management-verify.yamlinlfit/releng-reusable-workflows.gerrit(Gerrit mode only) resolves the change ref withchange-isolation.yaml's script.planvalidatespath_prefix,jjb_pathand the hardening inputs. It fails closed and does not check anything out.Lintruns every hook in the change's.pre-commit-config.yamlthroughlfreleng-actions/standalone-linting-actionv0.10.1 (a00b2feb…). It passesno_checkout: 'true'andrun_all_hooks: 'true', and passes nogithub_token. In Gerrit mode it also passescache_hooks: 'false', which turns off both prek's cache and setup-uv's cache.JJBchecks the change out with submodules and runslfreleng-actions/jjb-actionv0.0.1 intestmode.tox-verify.yamluses the same script.Commits:
tests/test-ci-management-verify-plan.sh(offline fixtures, including a submodule fixture built at run time).ci-management-verify-action.yamlself-caller, its fixture undertests/fixtures/ci-management/, and the actionlint ignore.examples/ci-management/gerrit-ci-management-verify.yamland its zizmor entries.docs/ci-management-verify.md, including the migration section.This round (2)
standalone-linting-actionv0.10.0 to v0.10.1 (a00b2febdcb6da5332f77e829dfdc131a91b8fce, verified against the tag). In that releasecache_hooks: 'false'also turns off setup-uv's cache (Fix: Make cache_hooks stop the uv cache too standalone-linting-action#205). The existing Gerrit-mode value therefore covers the finding with no other change. The workflow comment, the fixture-script comment and the cache paragraph indocs/ci-management-verify.mdnow say that both caches are off. This was amended into commit 1 and commit 4.global-jjbfixture (thread): answered in round 1 and left open for a maintainer, as instructed. The publisher cannot commit a symlink.jjb-action's owntesting.yamlcovers the linked layout.Checks run
bash tests/test-ci-management-verify-plan.sh: 70 fixtures passed.bash tests/test-tox-verify-plan.sh: 77 fixtures passed.prek run --fileson the changed files passed, and gitlint passed on the amended commits.zizmor --offline --persona auditoron the workflow, the self-caller and the example: no findings.aislop scan --base 716174e: no diagnostics.harden-runner@pin is46b06cea…(v2.22.3).Still to check
global-jjblayout (see the open thread).