Skip to content

Cut the tests workflow from about 23 to about 13 minutes - #6416

Closed
nicolas2bert wants to merge 3 commits into
development/9.4from
improvement/ci-time
Closed

nicolas2bert wants to merge 3 commits into
development/9.4from
improvement/ci-time

Conversation

@nicolas2bert

@nicolas2bert nicolas2bert commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What changed

CI only: .github/workflows/tests.yaml, test scripts in package.json, a new .github/scripts/retry.bash. The server code and the Dockerfile don't change.

  • The 4 longest functional jobs (file, mongo-v0, mongo-v1, s3c) run in 2 shards, on 2 runners.
  • The federation image is built in its own job, alongside the tests, instead of before them.
  • docker compose up is retried up to 3 times, because the shards pull twice as many images.
  • fail-fast: false on the split jobs, so we rerun only the failed shard.

Numbers

development/9.4 This PR
Total (warm Docker cache) ~23 min ~13 min

Forward port to 9.5+

Keep the 9.5 build job as it is and drop build-federation. A separate PR will handle 9.5.

Each shard runs half of the functional suites on its own runner, so the
mongo, file and s3c jobs end in about 7 minutes instead of 12.

The split doubles the jobs that pull images, so we retry docker compose up
when ghcr.io drops a pull. We also set fail-fast to false, so a failed shard
doesn't cancel the others and we can rerun only that shard.
@bert-e

bert-e commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Hello nicolas2bert,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval ⭐
/bypass_build_status Bypass the build and test status ⭐
/bypass_commit_size Bypass the check on the size of the changeset TBA ⭐
/bypass_incompatible_branch Bypass the check on the source branch prefix ⭐
/bypass_jira_check Bypass the Jira issue check ⭐
/bypass_peer_approval Bypass the pull request peers' approval ⭐
/bypass_leader_approval Bypass the pull request leaders' approval ⭐
/bypass_source_branch_lineage Bypass the cross-branch contamination check ⭐
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request.
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@nicolas2bert
nicolas2bert marked this pull request as ready for review December 3, 2026 11:02
@bert-e

bert-e commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Missing Jira issue

It is mandatory to specify a Jira issue in the source branch name
in order to merge into development/9.4. The issue key must follow
the prefix of the branch.

I could not find such an issue in improvement/ci-time.

@nicolas2bert

Copy link
Copy Markdown
Contributor Author

Replaced by a new PR with a Jira ticket.

@nicolas2bert
nicolas2bert deleted the improvement/ci-time branch December 3, 2026 12:22
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