Skip to content

Optimize CI: npm cache, Maven consolidation, remove duplicate workflow#2050

Merged
KRRT7 merged 1 commit into
mainfrom
ci/optimize-caching-and-cleanup
Apr 9, 2026
Merged

Optimize CI: npm cache, Maven consolidation, remove duplicate workflow#2050
KRRT7 merged 1 commit into
mainfrom
ci/optimize-caching-and-cleanup

Conversation

@KRRT7
Copy link
Copy Markdown
Contributor

@KRRT7 KRRT7 commented Apr 9, 2026

Summary

  • Delete java-e2e-tests.yml — duplicate of ci.yaml's e2e-java job. Saves ~10-15 min compute when both would trigger.
  • Add npm cache to e2e-js setup-node step with cache-dependency-path covering packages/codeflash/ and all JS test projects. Saves ~2-3 min per JS E2E job.
  • Consolidate Maven buildmvn clean package -q -DskipTests + mvn install -q -DskipTests → single mvn install -q -DskipTests. clean is unnecessary on fresh CI checkout; install already includes compile + package. Also removes redundant java -version / mvn --version verification step.
  • Add self-referencing push paths.github/workflows/ci.yaml and .github/actions/** added to push trigger so CI validates its own workflow changes when merged to main.

Test plan

  • CI passes on this PR (the PR itself only changes workflow files, so unit-tests/type-check skip via change detection, gate job reports green)
  • Verify npm cache hit on second JS E2E run
  • Verify Maven build still produces the codeflash-runtime JAR correctly

- Delete standalone java-e2e-tests.yml (duplicate of ci.yaml e2e-java)
- Add npm cache to e2e-js jobs via setup-node cache option
- Consolidate Maven build: mvn clean package + install → single mvn install
- Add .github/workflows/ci.yaml and .github/actions/** to push paths
  so CI validates its own changes when merged to main
@github-actions github-actions Bot added the workflow-modified This PR modifies GitHub Actions workflows label Apr 9, 2026
@KRRT7 KRRT7 marked this pull request as ready for review April 9, 2026 23:43
@KRRT7 KRRT7 merged commit 8e60f25 into main Apr 9, 2026
11 of 12 checks passed
@KRRT7 KRRT7 deleted the ci/optimize-caching-and-cleanup branch April 9, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflow-modified This PR modifies GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant