-
Notifications
You must be signed in to change notification settings - Fork 38
Split file lock tests #771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Split file lock tests #771
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request splits the file-lock test suite into two separate test groups (file-lock and file-lock2) to reduce CI execution time through parallelization. The original file-lock tests took ~10m30s, while the split results in file-lock running in ~6m8s and file-lock2 in ~5m30s, achieving the goal of faster test execution.
Key changes:
- Created a new
file-lock2test group by moving 8 test files from the original file-lock suite - Updated build configuration files (Makefile.am, Makefile.in) to define dependencies and targets for file-lock2
- Modified CI workflow files to include file-lock2 in test execution across coverage, pull-request, and push workflows
Reviewed changes
Copilot reviewed 7 out of 16 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/file-lock2.at | New main test file that includes all 8 moved test cases using m4_include directives |
| tests/file-lock2.src/*.at | Eight test files moved from file-lock to file-lock2 (input-mode, same-process, open-start-write-rewrite, release-lock, open-input, lock-mode-clause, lock-mode-automatic, old-file) |
| tests/file-lock.at | Updated to remove m4_include directives for the 8 tests moved to file-lock2 |
| tests/Makefile.am | Added file-lock2 to TESTS list and defined indexed_lock2_DEPENDENCIES (contains syntax errors) |
| tests/Makefile.in | Added file-lock2 test targets and log configuration (contains syntax errors) |
| .gitignore | Added tests/file-lock2 to ignore generated test artifacts |
| .github/workflows/coverage.yml | Added file-lock2 to the test execution list |
| .github/workflows/pull-request.yml | Added file-lock2 to both standard and UTF-8 test matrices |
| .github/workflows/push.yml | Added file-lock2 to standard test matrix and UTF-8 matrix |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request reorganizes and expands the test suite by splitting the existing
file-locktests into two separate test groups:file-lockand a newfile-lock2. The change will reduce CI execution time.Older Version
New Version
Test suite reorganization:
file-lock2by moving several test cases (input-mode.at,same-process.at,open-start-write-rewrite.at,release-lock.at,open-input.at,lock-mode-clause.at,lock-mode-automatic.at,old-file.at) fromfile-locktofile-lock2. Added a new test driver filetests/file-lock2.atto include these tests.tests/Makefile.amandtests/Makefile.into define dependencies and test targets forfile-lock2, ensuring it is built and run as part of the test suite.CI and workflow updates:
.github/workflows/coverage.yml,pull-request.yml,push.yml) to addfile-lock2to the set of tests run in various CI jobs, ensuring coverage for the new test group.