Repository navigation
Fix: Build Python projects by declared type - #206
ModeSevenIndustrialSolutions merged 1 commit into
Conversation
Pin python-build-action to the release that passes the declared project type into build metadata. Add a mixed-marker fixture leg and assert that its build artefact uses the Python project name. 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>
There was a problem hiding this comment.
🔵 Needs a closer look
Maintainer verification is needed because successful runs of the required GitHub Actions build/audit leg, artifact-name assertion, and online Zizmor audit are not evidenced in the supplied review context.
No open issues 🎉
What changed in this PR
Addresses #205 by updating the reusable workflows to build Python projects using their declared type, keeping build metadata and audit artifact names consistent when other project markers are present.
Changes:
- Pins
python-build-actionto v2.1.5 in all four reusable build workflows. - Adds a mixed-marker fixture run with auditing enabled and assertions for the expected Python artifact name and absence of the Node artifact name.
- Updates the metadata-fixture comment to describe the whole-workflow coverage.
| File | Description |
|---|---|
.github/workflows/testing.yaml |
Adds the mixed-marker fixture leg, artifact assertions, and coverage comment update. |
.github/workflows/build-test.yaml |
Updates the standard build action to v2.1.5. |
.github/workflows/build-test-release.yaml |
Updates the standard release build action to v2.1.5. |
.github/workflows/build-test-release-multiarch.yaml |
Updates the multi-architecture release build action to v2.1.5. |
.github/workflows/build-test-multiarch.yaml |
Updates the multi-architecture build action to v2.1.5. |
Review effort: Balanced
There was a problem hiding this comment.
🤖 Antagonistic review by agent: no line-level findings; the summary below is the verdict.
No actionable defects found in the diff. The four build-action pins are consistent, and the mixed-marker regression checks both workflow success and artefact naming; the external action's implementation is outside the supplied checkout.
Antagonistic round 1 of 3.
Automated antagonistic review by lf-releng-antagonistic-review-bot[bot] using model gpt-6-astra; see the run. This is not a human review and never an approval: a maintainer must still review and approve this pull request.
9361091
into
lfreleng-actions:main
Closes #205
Authored by an AI agent; human review required
standardtier), routed tomai-code-2-flashvia GitHub Copilot CLI0e9ab8d61c54a8a5f6af56940ae71f9a8d935096bash tests/test-python-metadata.shbash tests/test-grype-gate-inputs.shprek run --files .github/workflows/build-test.yaml .github/workflows/build-test-release.yaml .github/workflows/build-test-multiarch.yaml .github/workflows/build-test-release-multiarch.yaml .github/worAISLOP_NO_TELEMETRY=1 scripts/agents/aislop-gate.sh 0e9ab8d61c54a8a5f6af56940ae71f9a8d935096The
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 per antagonistic review round; after that a maintainer, or the next antagonistic review, takes on any finding that remains, and a maintainer reviews every round before merge.
Summary
Pin
python-build-actionto v2.1.5 in all four reusable build workflows so builds pass the declared Python project type to build metadata. Add a whole-workflow mixed-marker fixture leg and an assertion that its run holds an artefact namedmixed-markers-fixtureand no artefact namedmixed-markers-node-side. Update the existing metadata-fixture comment to describe the added coverage.Before this change, the issue expected the mixed-marker build to resolve as
javascript-npmand uploadmixed-markers-node-side; that failure was not reproduced locally because a pull-request run requires GitHub Actions.Validation
bash tests/test-python-metadata.sh- passed; 4 workflows take their Python versions frompython-metadata, and all metadata mutants were caught.bash tests/test-grype-gate-inputs.sh- passed; both standard workflow mutations and 85 Grype gate mutants were caught.prek run --files ...- passed all applicable hooks over the five changed workflow files, including yamllint, actionlint, Zizmor, workflow schema, and wiring checks.Review notes
The pull-request workflow leg itself could not run locally; GitHub Actions will exercise the audit download and artifact-name assertion. The
aislop-gate.shguidance script is not present in this checkout, so the AI slop gate could not be run locally.