Repository navigation
CLDSRV-1120: Speed up the CI - #6417
Conversation
Hello nicolas2bert,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
| "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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
|
I'll remove the federation commit |
| 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 |
There was a problem hiding this comment.
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.
| 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...
There was a problem hiding this comment.
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.
70d43cb to
93226ef
Compare
|
@bert-e approve |
ConflictA conflict has been raised during the creation of 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-timeThe following options are set: approve |
ConflictA conflict has been raised during the creation of 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-timeThe following options are set: approve |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option The following options are set: approve |
|
@bert-e status |
Status
The following options are set: approve |
|
@bert-e bypass_build_status |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
This pull request did not target the following hotfix branch(es) so they
Please check the status of the associated issue CLDSRV-1120. Goodbye nicolas2bert. The following options are set: bypass_build_status, approve |
Issue: CLDSRV-1120
What changed
CI only:
.github/workflows/tests.yaml, test scripts inpackage.json, a new.github/scripts/retry.bash. The server code and the Dockerfile don't change.docker compose upis retried up to 3 times, because the shards pull twice as many images.fail-fast: falseon the split jobs, so we rerun only the failed shard.Numbers