Skip to content

Skip slow tests in Maven build and verification workflows#2264

Open
asmfstatoil wants to merge 1 commit into
masterfrom
reduce_slow_test
Open

Skip slow tests in Maven build and verification workflows#2264
asmfstatoil wants to merge 1 commit into
masterfrom
reduce_slow_test

Conversation

@asmfstatoil

Copy link
Copy Markdown
Collaborator

Pull Request

Thank you for contributing to NeqSim! Please complete the following checklist before requesting review:

  • Confirm ./mvnw test runs successfully
  • Verify code formatting using Checkstyle
  • Update any relevant docs/README
  • Link to an associated issue or discussion

See CONTRIBUTING.md for the full contribution process.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates GitHub Actions workflows to reduce CI runtime by skipping slow-tagged unit tests during verification runs, and clarifies release workflow step names to reflect that tests are not executed during packaging.

Changes:

  • Update verify_build.yml Maven test invocations to exclude the slow test group in Linux and Windows verification jobs.
  • Clarify release_with_jars.yml step names to explicitly indicate that builds run with -DskipTests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/verify_build.yml Adds Maven flags intended to exclude slow tests during CI verification runs.
.github/workflows/release_with_jars.yml Renames workflow steps to clarify that release packaging is done without running tests.

run: mvn javadoc:javadoc "-Daether.connector.basic.retries=5"
- name: Run tests and generate JaCoCo report
run: mvn -B test --file pom.xml -ntp -DskipITs "-Daether.connector.basic.retries=5"
run: mvn -B test --file pom.xml -ntp -DskipITs -DexcludedGroups=slow "-Daether.connector.basic.retries=5"
cache: 'maven'
- name: Run tests
run: mvn -B test --file pom.xml -ntp "-Daether.connector.basic.retries=5"
run: mvn -B test --file pom.xml -ntp -DexcludedGroups=slow "-Daether.connector.basic.retries=5"
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.

2 participants