CLDSRV-720: Fix mocha run functional tests#5875
Conversation
Hello bourgoismickael,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
16e0f9c to
5580335
Compare
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 |
5580335 to
b702331
Compare
|
/create_integration_branches |
This comment was marked as resolved.
This comment was marked as resolved.
|
/create_pull_requests |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes functional tests that haven't been running for 5 months due to Mocha breaking changes that deprecated mocha.opts files. The main changes migrate from deprecated mocha.opts files to the new configuration format, update dependencies, and implement test stability improvements.
- Migrates from deprecated
mocha.optsfiles to Mocha configuration inpackage.json - Updates Arsenal dependency to fix GCP createMPU issues and addresses test failures
- Adds nullVersionCompatMode matrix for file tests while skipping incompatible RestoreObject tests
Reviewed Changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/functional/raw-node/test/mocha.opts | Removes deprecated mocha.opts file |
| tests/functional/raw-node/package.json | Adds Mocha configuration to package.json |
| tests/functional/aws-node-sdk/test/mocha.opts | Removes deprecated mocha.opts file |
| package.json | Updates Arsenal dependency and adds Mocha configuration |
| .github/workflows/tests.yaml | Adds nullVersionCompatMode matrix for file tests |
| Multiple test files | Fixes import paths, test logic, and skips incompatible tests |
See https://github.com/mochajs/mocha/blob/main/CHANGELOG.md#boom-breaking-changes-2 > #4175: Having been deprecated with a warning since v7.0.0, mocha.opts is no longer supported (@juergba) > > ✨ WORKAROUND: Replace mocha.opts with a configuration file.
529caf9 to
b317d3e
Compare
|
/reset |
|
/force_reset |
Test can fail if previous tests did not clean buckets
MongoClient setup returns a promise
- Skip Restore tests for file v1 cf: CLDSRV-721
b317d3e to
eb292e2
Compare
|
/force_reset |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
Follow integration pull requests if you would like to be notified of The following options are set: create_pull_requests, create_integration_branches |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_pull_requests, create_integration_branches |
|
/approve |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue CLDSRV-720. Goodbye bourgoismickael. The following options are set: approve, create_pull_requests, create_integration_branches |
Functional tests are not running since 5 months.
Mocha breaking changes: https://github.com/mochajs/mocha/blob/main/CHANGELOG.md#boom-breaking-changes-2
Now some tests need some fixing
GCP createMPU error since arsenal 8.2.7 (scality/Arsenal#2458)
For file tests add back nullVersionCompatMode matrix, but skip RestoreObject tests without nullVersionCompatMode as a fix is needed to handle that with metadata v1.
cf: https://scality.atlassian.net/browse/CLDSRV-721
cepth tests have a flaky (race condition)
branch 9.1 ignore crr location on buckets 6947ff1