Skip to content

CLDSRV-1120: Speed up the CI - #6417

Merged
bert-e merged 1 commit into
development/9.4from
improvement/CLDSRV-1120-ci-time
Dec 4, 2026
Merged

bert-e merged 1 commit into
development/9.4from
improvement/CLDSRV-1120-ci-time

Conversation

@nicolas2bert

@nicolas2bert nicolas2bert commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Issue: CLDSRV-1120

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.
  • 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 ~14 min

@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.

@bert-e

bert-e commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Incorrect fix version

The Fix Version/s in issue CLDSRV-1120 contains:

  • None

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 9.4.24

  • 9.5.14

  • 9.6.4

  • 9.7.0

Please check the Fix Version/s of CLDSRV-1120, or the target
branch of this pull request.

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.85%. Comparing base (86e2495) to head (93226ef).
⚠️ Report is 1 commits behind head on development/9.4.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph
see 1 file with indirect coverage changes

@@                 Coverage Diff                 @@
##           development/9.4    #6417      +/-   ##
===================================================
- Coverage            86.90%   86.85%   -0.05%     
===================================================
  Files                  214      214              
  Lines                14764    14764              
===================================================
- Hits                 12830    12823       -7     
- Misses                1934     1941       +7     
Flag Coverage Δ
checksums-disabled-tests 35.23% <ø> (ø)
file-ft-tests 69.70% <ø> (ø)
file-ft-tests-null-compat 70.19% <ø> (ø)
kmip-ft-tests 28.00% <ø> (ø)
mongo-v0-ft-tests 70.82% <ø> (ø)
mongo-v1-ft-tests 70.82% <ø> (-0.06%) ⬇️
multiple-backend 35.95% <ø> (ø)
s3c-ft-tests-v0 64.78% <ø> (-0.02%) ⬇️
s3c-ft-tests-v0-null-compat 64.84% <ø> (-0.02%) ⬇️
s3c-ft-tests-v0-replication-compat 64.65% <ø> (ø)
s3c-ft-tests-v1 64.77% <ø> (+0.01%) ⬆️
sur-tests 36.41% <ø> (-0.91%) ⬇️
sur-tests-inflights 39.24% <ø> (ø)
unit 75.30% <ø> (ø)
utapi-v2-tests 35.19% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nicolas2bert nicolas2bert changed the title CLDSRV-1120: Cut the tests workflow from about 23 to about 13 minutes CLDSRV-1120: Speed up the CI Dec 3, 2026
Comment thread .github/workflows/tests.yaml Resolved
@bert-e

bert-e commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

Comment thread .github/scripts/retry.bash Resolved
Comment thread package.json
Comment on lines +141 to +142
"ft_test_shard1": "npm-run-all -s ft_awssdk_object ft_node",
"ft_test_shard2": "npm-run-all -s ft_awssdk_no_object ft_s3cmd ft_s3curl ft_healthchecks ft_management ft_util ft_backbeat",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rename shard 1 and 2 with more descriptive names like shardObject shardOther and carry them over through the CI so we know more easily what's running in each.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about it, but I'd keep the numbers. The split is by time, not by topic. For example, ft_node is in shard 1 only to balance the two halves, it has nothing to do with objects. If we move a suite one day to rebalance, a name like "object" becomes wrong. The comment above the jobs already says what each shard runs. Does that work for you?

@francoisferrand
francoisferrand dismissed their stale review December 3, 2026 16:47

my bad, missed the need:build

@francoisferrand francoisferrand left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image build is more advanced in more recent branches, will need some work in the waterflow branch

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

I suggest doing it the other way : first a PR in 9.5, then this PR can resolve the conflicts once.

  • Reverting in waterflow means the change is not available in future branches, and relies on developers to make the change again later (which is exactly what waterflow aims to avoid in the first place)
  • As far as git conflicts resolution, it means that when you are done with both PRs, the federation job first added here will conflict with the federation job that you will reintroduce in the second PR. Fine as far as you are concerned, but will bite the next person modifying the job in 9.4 branch

Comment thread .github/workflows/tests.yaml Resolved
Comment thread .github/workflows/tests.yaml Resolved
Comment thread .github/workflows/tests.yaml Resolved
@nicolas2bert

Copy link
Copy Markdown
Contributor Author

I'll remove the federation commit

Comment thread .github/workflows/tests.yaml Resolved
sudo touch /logs/server-access.log && sudo chmod 0666 /logs/server-access.log
- name: Setup CI services
run: docker compose up -d
run: ../scripts/retry.bash docker compose up -d

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should retry the whole docker compose up, or just the pull (i.e. the issue you describe): e.g. if a service fails to start, we may retry 3 times unnecessarily.

Suggested change
run: ../scripts/retry.bash docker compose up -d
../scripts/retry.bash docker compose pull
docker compose up -d

But may be fine to retry the whole thing, not sure...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question. I'd keep the whole up. With -d it only fails when a container can't be created or started, not when the service crashes after (no healthcheck conditions in our depends_on). So a real failure costs about 30 s of retries, then fails with the real exit code.

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.
@nicolas2bert
nicolas2bert force-pushed the improvement/CLDSRV-1120-ci-time branch from 70d43cb to 93226ef Compare December 4, 2026 09:31
@nicolas2bert

Copy link
Copy Markdown
Contributor Author

@bert-e approve

@bert-e

bert-e commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Conflict

A conflict has been raised during the creation of
integration branch w/9.5/improvement/CLDSRV-1120-ci-time with contents from improvement/CLDSRV-1120-ci-time
and development/9.5.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 git fetch
 git checkout -B w/9.5/improvement/CLDSRV-1120-ci-time origin/development/9.5
 git merge origin/improvement/CLDSRV-1120-ci-time
 # <intense conflict resolution>
 git commit
 git push -u origin w/9.5/improvement/CLDSRV-1120-ci-time

The following options are set: approve

@bert-e

bert-e commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Conflict

A conflict has been raised during the creation of
integration branch w/9.6/improvement/CLDSRV-1120-ci-time with contents from w/9.5/improvement/CLDSRV-1120-ci-time
and development/9.6.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 git fetch
 git checkout -B w/9.6/improvement/CLDSRV-1120-ci-time origin/development/9.6
 git merge origin/w/9.5/improvement/CLDSRV-1120-ci-time
 # <intense conflict resolution>
 git commit
 git push -u origin w/9.6/improvement/CLDSRV-1120-ci-time

The following options are set: approve

@bert-e

bert-e commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Integration data created

I have created the integration data for the additional destination branches.

The following branches will NOT be impacted:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.8
  • development/9.0
  • development/9.1
  • development/9.2
  • development/9.3

You can set option create_pull_requests if you need me to create
integration pull requests in addition to integration branches, with:

@bert-e create_pull_requests

The following options are set: approve

@nicolas2bert

Copy link
Copy Markdown
Contributor Author

@bert-e status

@bert-e

bert-e commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Status

check status
➡️ Approvals ☀️
➡️ Integration builds ☀️
➡️ Fix versions ☀️
➡️ History ☀️

The following options are set: approve

@nicolas2bert

Copy link
Copy Markdown
Contributor Author

@bert-e bypass_build_status

@bert-e

bert-e commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/9.4

  • ✔️ development/9.5

  • ✔️ development/9.6

  • ✔️ development/9.7

The following branches have NOT changed:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.8
  • development/9.0
  • development/9.1
  • development/9.2
  • development/9.3

This pull request did not target the following hotfix branch(es) so they
were left untouched:

  • hotfix/7.4.4
  • hotfix/7.4.2
  • hotfix/7.10.8
  • hotfix/7.70.73
  • hotfix/8.8.45
  • hotfix/7.10.15
  • hotfix/7.70.21
  • hotfix/7.10.3
  • hotfix/7.10.28
  • hotfix/7.4.10
  • hotfix/7.10.0
  • hotfix/7.10.30
  • hotfix/7.70.45
  • hotfix/7.4.9
  • hotfix/7.4.8
  • hotfix/7.7.0
  • hotfix/9.2.24
  • hotfix/9.2.36
  • hotfix/9.0.32
  • hotfix/7.2.0
  • hotfix/7.10.27
  • hotfix/7.10.49
  • hotfix/7.10.4
  • hotfix/7.4.3
  • hotfix/7.6.0
  • hotfix/7.9.0
  • hotfix/7.4.6
  • hotfix/7.4.7
  • hotfix/7.70.11
  • hotfix/7.10.2
  • hotfix/6.4.7
  • hotfix/7.4.1
  • hotfix/7.4.0
  • hotfix/7.8.0
  • hotfix/9.3.13
  • hotfix/7.70.51
  • hotfix/7.10.1
  • hotfix/9.0.7
  • hotfix/7.4.5

Please check the status of the associated issue CLDSRV-1120.

Goodbye nicolas2bert.

The following options are set: bypass_build_status, approve

@bert-e
bert-e merged commit 93226ef into development/9.4 Dec 4, 2026
44 checks passed
@bert-e
bert-e deleted the improvement/CLDSRV-1120-ci-time branch December 4, 2026 13: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.

4 participants