Skip to content

ci: remove bom-assertion-test job and BomContentAssertionsTest - #15432

Merged
lqiu96 merged 1 commit into
mainfrom
ci/trim-bom-assertion-test-install
Dec 4, 2026
Merged

lqiu96 merged 1 commit into
mainfrom
ci/trim-bom-assertion-test-install

Conversation

@lqiu96

@lqiu96 lqiu96 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Removes the bom-assertion-test job from .github/workflows/java-cloud-bom-ci.yaml, along with java-cloud-bom/tests/src/test/java/com/google/cloud/BomContentAssertionsTest.java, its static fixture java-cloud-bom/tests/src/test/resources/bom-with-typo-artifact.xml, and the now-unused com.google.truth:truth test dependency in java-cloud-bom/tests/pom.xml.

What the old bom-assertion-test job was doing

bom-assertion-test did not test the PR's BOM or any library code in this repository. It installed the entire monorepo (~22 minutes) and then ran two JUnit tests in BomContentAssertionsTest.java against static/hardcoded inputs to test helper methods inside BomContentTest.java:

  1. testInvalidBomUnreachable: loads a static fixture (bom-with-typo-artifact.xml containing a nonexistent com.google.guava:guava-invalid:31.1-jre coordinate) and checks that BomContentTest.checkBomReachable(...) throws IOException.
  2. testAssertDependencyConvergenceWithinCloudJavaLibraries: downloads a hardcoded 2022 Maven Central BOM (com.google.cloud:libraries-bom:26.0.0) and checks that BomContentTest.assertDependencyConvergenceWithinCloudJavaLibraries(...) throws AssertionError on a known 2022 BigQuery version mismatch.

Why it is safe to remove

  • Neither helper tested by BomContentAssertionsTest is exercised by CI: java-cloud-bom-ci.yaml only runs BomContentTest#testLibrariesBom (which calls checkBom(), not checkBomReachable()), and BomContentTest#testLibrariesBOMCloudClientConvergence has been @Ignored due to Remove the experimental convergence check. java-cloud-bom#5757.
  • test-invalid-bom in the same workflow already verifies that validate-bom rejects a broken BOM.
  • Removing BomContentAssertionsTest.java, bom-with-typo-artifact.xml, and the orphaned com.google.truth:truth dependency keeps java-cloud-bom/tests clean and keeps mvn dependency:analyze -DfailOnWarning=true passing.

Impact

Eliminates a ~24-minute runner job on every java-cloud-bom ci run with no loss of BOM validation coverage.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@lqiu96
lqiu96 force-pushed the ci/trim-bom-assertion-test-install branch from 2170494 to 26d8615 Compare December 4, 2026 06:49
@lqiu96 lqiu96 changed the title ci: remove unused monorepo install steps from bom-assertion-test ci: remove bom-assertion-test job and BomContentAssertionsTest Dec 4, 2026
@lqiu96
lqiu96 requested a review from jinseopkim0 December 4, 2026 18:54
@lqiu96
lqiu96 marked this pull request as ready for review December 4, 2026 18:54
@lqiu96
lqiu96 requested a review from a team as a code owner December 4, 2026 18:54
@lqiu96
lqiu96 merged commit 983acb0 into main Dec 4, 2026
191 checks passed
@lqiu96
lqiu96 deleted the ci/trim-bom-assertion-test-install branch December 4, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants