Skip to content

golden_export project: write a pom.xml from the project (Part of #4052) - #8285

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4052-20261111T0730Z
Nov 11, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4052-20261111T0730Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4052 (slice 19).

What

golden_export.py project now writes PROJECT_DIR/pom.xml (the forge's generate_pom_xml, Spring Boot parent; its test starter brings JUnit 5) when the project has none, so mvn test in the project runs the generated GoldenRegressionTest. groupId defaults to --package less its last segment (new --group-id overrides); artifactId is the project directory's name, sanitised. An existing pom is left alone. Test: test_write_pom_writes_a_maven_pom_from_the_project_and_keeps_an_existing_one.

Class / Sibling gaps

Class: the pieces a project output needs before mvn test runs standalone (pom, golden resources, JUnit classes, Java-out dir). Handled: golden resources, JUnit classes, Java-out (earlier slices), pom.xml (this PR). Sibling gaps: running mvn test on project output for cases other than the ones swept in #8284 (needs the box's Maven and a case run each; not run here, so this PR proves the pom's shape only, not an mvn pass) and the pom's JUnit/Spring versions following the port's own JavaTarget (default target used).

Remaining slices

Run project + mvn test for the remaining burned batch cases and record which pass (no source change expected, a docs/ledger entry); pass a JavaTarget to the pom when a port was generated for a non-default one.

Gates

pytest tests/tools/test_golden_export.py 35 passed; audit_check.py all clear (ruff/mypy/dead-key/doc-refs); pinned ruff format clean. No golden/ratchet impact (tests/tools only).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 11, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 11, 2026 07:34
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 11, 2026 07:34
@squid-shepherd
squid-shepherd Bot merged commit 1a0d244 into main Nov 11, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4052-20261111T0730Z branch November 11, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant