Skip to content

GH-1188: Reduce test workflow waste#1189

Open
xborder wants to merge 2 commits into
apache:mainfrom
xborder:ci-test-workflow-phases-1-3
Open

GH-1188: Reduce test workflow waste#1189
xborder wants to merge 2 commits into
apache:mainfrom
xborder:ci-test-workflow-phases-1-3

Conversation

@xborder

@xborder xborder commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR reduces wasted GitHub Actions time in the Test workflow by removing redundant rebuilds, improving caching, and skipping integration work when it is not relevant.

What changed

  • Removed clean from ci/scripts/test.sh so the test phase reuses the classes compiled earlier in the job instead of deleting and recompiling them.
  • Narrowed the Maven/Docker cache key to POM changes, so source-only edits do not invalidate the dependency cache.
  • Enabled Maven dependency caching on the macOS and Windows test jobs.
  • Restricted the workflow push trigger to main and tags.
  • Added pull-requests: read so the integration job can inspect changed files.
  • Added a WIP guard for the integration job.
  • Made the integration job run only when integration-relevant files changed.

Partially addresses #GH-1188

Note: The changes on this PR were highlighted and addressed with AI assistance

@github-actions

This comment has been minimized.

Comment thread .github/workflows/test.yml Outdated
@lidavidm lidavidm added the enhancement PRs that add or improve features. label Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement PRs that add or improve features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants