Skip to content

Conversation

@yutaro-sakamoto
Copy link
Contributor

@yutaro-sakamoto yutaro-sakamoto commented Dec 15, 2025

This pull request reorganizes and expands the test suite by splitting the existing file-lock tests into two separate test groups: file-lock and a new file-lock2. The change will reduce CI execution time.

Older Version

New Version

Test suite reorganization:

  • Created a new test group file-lock2 by 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) from file-lock to file-lock2. Added a new test driver file tests/file-lock2.at to include these tests.
  • Updated tests/Makefile.am and tests/Makefile.in to define dependencies and test targets for file-lock2, ensuring it is built and run as part of the test suite.

CI and workflow updates:

  • Modified GitHub Actions workflow files (.github/workflows/coverage.yml, pull-request.yml, push.yml) to add file-lock2 to the set of tests run in various CI jobs, ensuring coverage for the new test group.

@yutaro-sakamoto yutaro-sakamoto marked this pull request as ready for review December 15, 2025 04:31
Copilot AI review requested due to automatic review settings December 15, 2025 04:31
@yutaro-sakamoto
Copy link
Contributor Author

This change reduces the CI execution time for pull requests.

Copy link
Contributor

Copilot AI left a 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-lock2 test 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.

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.

1 participant