Repository navigation
golden_export project: write a pom.xml from the project (Part of #4052) - #8285
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Nov 16, 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.
Part of #4052 (slice 19).
What
golden_export.py projectnow writesPROJECT_DIR/pom.xml(the forge'sgenerate_pom_xml, Spring Boot parent; its test starter brings JUnit 5) when the project has none, somvn testin the project runs the generatedGoldenRegressionTest. groupId defaults to--packageless its last segment (new--group-idoverrides); 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
projectoutput needs beforemvn testruns standalone (pom, golden resources, JUnit classes, Java-out dir). Handled: golden resources, JUnit classes, Java-out (earlier slices), pom.xml (this PR). Sibling gaps: runningmvn testonprojectoutput 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 ownJavaTarget(default target used).Remaining slices
Run
project+mvn testfor the remaining burned batch cases and record which pass (no source change expected, a docs/ledger entry); pass aJavaTargetto the pom when a port was generated for a non-default one.Gates
pytest tests/tools/test_golden_export.py35 passed;audit_check.pyall clear (ruff/mypy/dead-key/doc-refs); pinned ruff format clean. No golden/ratchet impact (tests/tools only).🤖 Generated with Claude Code