Repository navigation
Open
2 / 22 of 2 issues completedOpen
2 / 22 of 2 issues completed
Copy link
Labels
Description
Summary
Provide new homes for the ci-management workflows in
lfit/releng-reusable-workflows. Unlike the change-isolation and tox work,
the design here still needs settling, so this issue records the state of
play and the questions, and the design gets agreed in it before any code.
What exists today
Three verify variants and one merge workflow, with three different
structures:
| Legacy workflow | Structure | Consumers (pin) |
|---|---|---|
gerrit-ci-management-verify.yaml |
Votes inside: clear → actionlint / pre-commit / JJB test → vote | onap/ci-management (@main), o-ran-sc/ci-management (@main), FDio/archived-ci-management |
gerrit-compose-ci-management-verify.yaml |
No vote; same three jobs; requires an SSH secret it never uses | lfit/ci-management (v0.2.26) |
composed-ci-management-verify.yaml |
Votes inside; calls compose-repo-linting, compose-jjb-verify, compose-packer-verify; comment-only input |
onap/ci-management non-voting (@main), akraino-edge-stack/ci-management |
gerrit-ci-management-merge.yaml |
Notifies, runs jenkins-jobs update --delete-old, reports |
onap, o-ran-sc (@main), opendaylight/releng-builder (v0.10.3) |
Shared defects: actionlint installed by piping a script from its main
branch into bash; pipx run pre-commit unpinned; JJB version from a
vars.JJB_VERSION with an inline 6.4.3 fallback; Jenkins credentials
written into an ini file via expression interpolation in the merge
workflow.
Proposed shape (to confirm)
Two reusables, voting in the caller like the other Gerrit reusables here:
ci-management-verify.yaml— jobs: JJB test (jenkins-jobs test
againstjjb/, version pinned by input), linting via
standalone-linting-action(which brings actionlint and the repository's
own hooks), optional packer validation whenjjb//packer/templates
change.comment-onlydisappears: advisory vs voting is the caller's
account choice.ci-management-merge.yaml— JJB update to Jenkins with
JOBBUILDER_PROD_PSWpassed as a secret and written throughenv, never
interpolated; notify/report steps move to the caller.
Questions to settle here
- Linting lane.
linting.yamlin this repository takes no Gerrit
checkout inputs by design (its docs say so). Do we add them, or does
ci-management-verify.yamlcallstandalone-linting-actiondirectly
after its own Gerrit checkout? The latter keepslinting.yaml's
contract intact. - Packer validation. Only
composed-ci-management-verifyhas it, via
compose-packer-verifywith cloud credentials. Include it behind an
packer_verifyinput, or leave packer topacker-build-actioncallers? - A JJB action. Nothing under
lfreleng-actionswraps
jenkins-job-buildertoday. Inline steps in the reusable, or a small
jjb-action(test + update modes) that the two reusables share? - Caller growth. Moving voting out makes the thin ONAP and O-RAN-SC
ci-managementcallers larger (prepare/vote jobs, as their.github
callers already have). Accept, for consistency withdocs-workflows? - Merge safety.
--delete-oldremoves Jenkins jobs no longer in the
repository. Keep as-is (current behaviour), or gate behind an input?
Deliverables (once the above is agreed)
- Design recorded in this issue; then the two workflows, examples, docs, self-tests, release
- Migration notes per consumer, including moving the
@maincallers to a release SHA
Related
- Feat: host the Gerrit required-verify reusable workflows #23 (parent)
lfreleng-actions/standalone-linting-action,lfreleng-actions/packer-build-action
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Activity
ModeSevenIndustrialSolutions commentedon Oct 31, 2026
Design record (2026-10-31)
Settles the questions in the description. Sources: the legacy workflows at
lfit/releng-reusable-workflows@c9fe535, their callers, and thelfreleng-actionsactions involved. The work is split into the issues listed under Work, one pull request each.Corrections to the description
e3bb02d), not v0.10.3. FD.io pins v0.2.25 and is retiring its Jenkins jobs. ONAP's non-voting caller (gerrit-ci-management-novote-verify.yaml, callingcomposed-ci-management-verify@main) fails at startup on every recorded run: it passesCLOUDS_*_B64, but the workflow has requiredCLOUDS_*_2XB64since97c6925(2024-08). akraino's caller has never run. Socomposed-ci-management-verify,comment-onlyand the reusable packer lane have no working consumer. Migration set: ONAP (verify, merge), O-RAN-SC (verify, merge), ODL (merge), lfit (verify).standalone-linting-actiondoes not run actionlint. It runs the repository's own hooks, and no consumer defines an actionlint hook.$or backtick in it, and the ini is written into the workspace. The job then deploys the mirror's branch tip aftersleep 10s, without checking that the tip contains the merged change. Its concurrency group is per change, so two merges can run--delete-oldat the same time.Decisions
Linting lane.
ci-management-verify.yamlcallsstandalone-linting-actionafter its own Gerrit checkout and credential removal, withno_checkout: 'true',run_all_hooks: 'true'and no token.linting.yamlis unchanged. actionlint comes from each consumer's own hooks: migration adds theactionlint-pyhook that this repository uses. Feat: Support no_checkout for caller-prepared trees standalone-linting-action#201 makesno_checkouta supported option.Packer is out. A repository that wants validation calls
packer-build-action(mode: validate) from its own caller.comment-onlyis dropped: whether a run is advisory or votes is the caller's choice of account.JJB moves into a new action,
lfreleng-actions/jjb-action, withtestandupdatemodes, used by both reusables. Each release installs one hash-locked JJB version, starting at 6.5.0, instead of taking the version as an input.Callers grow. Verify callers become prepare / call / vote and merge callers notify / call / report, as
lfit/ci-managementand thedocs-workflowscallers already are. A caller's filename must containgerritandverifyormerge, and notrequired, orgerrit_to_platformdoes not dispatch it.Merge safety.
--delete-oldstays on by default, behind adelete_oldinput. In addition, the merge workflow:refs/meta/config, skips the update;The example caller runs one merge at a time per Jenkins (
cancel-in-progress: false). The password reaches JJB only throughenv, in a private ini underRUNNER_TEMP.Constraints on both workflows
global-jjbas a submodule at the repository root, symlinked intojjb/.checkout-gerrit-change-actionstill persists its token (as of v1.2.1). Remove the credentials before any repository code runs, astox-verify.yamldoes.vars.*. The implicit variables become inputs:gerrit_url(falling back tovars.GERRIT_URL),jenkins_url,jenkins_user,workers. The password is a secret.Work
lfreleng-actions/jjb-actionfromactions-template(maintainer)ci-management-verify.yaml(Feat: Add the ci-management-verify workflow #108)ci-management-merge.yaml(Feat: Add the ci-management-merge workflow #109)