Skip to content

Fix: Build Python projects by declared type - #206

Merged
ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
lfreleng-bot-forks:code-monkey/issue-205
Nov 24, 2026
Merged

ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
lfreleng-bot-forks:code-monkey/issue-205

Conversation

@lf-releng-code-monkey-bot

Copy link
Copy Markdown
Contributor

Closes #205

Authored by an AI agent; human review required
Command Exit
bash tests/test-python-metadata.sh 0
bash tests/test-grype-gate-inputs.sh 0
prek 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/wor 0
AISLOP_NO_TELEMETRY=1 scripts/agents/aislop-gate.sh 0e9ab8d61c54a8a5f6af56940ae71f9a8d935096 127

The github-code-monkey-bot workflow 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-action to 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 named mixed-markers-fixture and no artefact named mixed-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-npm and upload mixed-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 from python-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.
  • Zizmor ran through the repository hook with the repository's offline configuration and reported no findings.

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.sh guidance script is not present in this checkout, so the AI slop gate could not be run locally.

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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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-action to 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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.

@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions merged commit 9361091 into lfreleng-actions:main Nov 24, 2026
107 checks passed
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions deleted the code-monkey/issue-205 branch November 24, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: Build with the declared Python project type

2 participants