Skip to content

feat: enhance CI by adding slow unit tests and coverage reporting#2605

Merged
robfrank merged 3 commits intomainfrom
feat/2604-ci-speedup
Oct 5, 2025
Merged

feat: enhance CI by adding slow unit tests and coverage reporting#2605
robfrank merged 3 commits intomainfrom
feat/2604-ci-speedup

Conversation

@robfrank
Copy link
Collaborator

@robfrank robfrank commented Oct 5, 2025

This pull request improves the test workflow by splitting slow-running unit tests from standard ones and updating the GitHub Actions configuration to report and upload test results. Additionally, several tests are now explicitly marked as "slow" using JUnit tags, allowing for more granular test execution and reporting.

CI Workflow Improvements:

  • The .github/workflows/mvn-test.yml file is updated to:
    • Exclude "slow" tests from the regular unit test job by using -DexcludedGroups=slow and introduce a separate slow-unit-tests job to run only tests tagged as "slow".
    • Add steps for reporting unit test results using dorny/test-reporter and uploading coverage reports as artifacts for easier access and review.

Test Suite Organization:

  • Multiple test classes (ACIDTransactionTest, CRUDTest, RandomTestMultiThreadsTest, RandomDeleteTest, RecordRecyclingTest, LSMTreeIndexTest, TypeLSMTreeIndexTest) now import and use @Tag("slow") from JUnit to mark specific long-running tests. This enables selective execution and improves CI performance. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]

@robfrank robfrank added this to the 25.9.1 milestone Oct 5, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @robfrank, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the project's continuous integration pipeline by introducing a more efficient test execution strategy and improved reporting mechanisms. It achieves this by intelligently separating slow-running unit tests from the main test suite, thereby accelerating feedback cycles for developers. Concurrently, it integrates robust reporting for both test results and code coverage, offering a clearer and more comprehensive view of the project's health and quality directly within the CI environment.

Highlights

  • CI Workflow Optimization: The GitHub Actions workflow mvn-test.yml has been updated to separate slow-running unit tests into their own job, ensuring faster feedback for regular tests while still covering all test cases.
  • Enhanced Test Reporting: The CI now includes steps to report unit test results using dorny/test-reporter and to upload code coverage reports as artifacts, providing better visibility into test outcomes and code quality metrics.
  • Test Suite Tagging: Multiple test classes across ACIDTransactionTest, CRUDTest, RandomTestMultiThreadsTest, RandomDeleteTest, RecordRecyclingTest, LSMTreeIndexTest, and TypeLSMTreeIndexTest have been updated to use @Tag("slow") from JUnit, allowing for granular execution and management of long-running tests.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/mvn-test.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively enhances the CI workflow by separating slow-running unit tests. The use of JUnit's @Tag("slow") is appropriate and has been consistently applied to several long-running tests, which will help in speeding up the regular test cycle. The changes are well-organized and clear. I have one minor suggestion to improve code cleanliness.

@codacy-production
Copy link

codacy-production bot commented Oct 5, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for dce89a91
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (dce89a9) Report Missing Report Missing Report Missing
Head commit (012323a) 72872 46131 63.30%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#2605) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@robfrank robfrank linked an issue Oct 5, 2025 that may be closed by this pull request
@robfrank robfrank merged commit 83d91d9 into main Oct 5, 2025
18 of 21 checks passed
@robfrank robfrank deleted the feat/2604-ci-speedup branch October 5, 2025 18:28
robfrank added a commit that referenced this pull request Nov 10, 2025
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.

CI pipeline refactoring to speedup feedback loop

1 participant