-
Notifications
You must be signed in to change notification settings - Fork 1k
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
separate surefire/failsafe directory for report on each matrix step #1463
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,8 +149,9 @@ runs: | |
|
||
./mvnw -s .settings.xml \ | ||
-DtestsToRun=${tests_to_run_in_current_index} \ | ||
-DCURRENT_INSTANCE=${CURRENT_INDEX} \ | ||
-e clean install \ | ||
-P 'sonar, run-on-github-actions' -nsu --batch-mode \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. drop the profile since we do not need it anymore |
||
-P sonar -nsu --batch-mode \ | ||
-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ | ||
-Dhttp.keepAlive=false \ | ||
-Dmaven.wagon.http.pool=false \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,15 +62,14 @@ | |
</scm> | ||
|
||
<properties> | ||
<CURRENT_INSTANCE>one</CURRENT_INSTANCE> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add a comment here about what this is used for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
<!-- Dependency Versions --> | ||
<mockito-inline.version>4.8.1</mockito-inline.version> | ||
<spring-cloud-commons.version>4.0.5-SNAPSHOT</spring-cloud-commons.version> | ||
<spring-cloud-config.version>4.0.5-SNAPSHOT</spring-cloud-config.version> | ||
<spring-cloud-bus.version>4.0.1</spring-cloud-bus.version> | ||
<spring-cloud-contract.version>4.0.5-SNAPSHOT</spring-cloud-contract.version> | ||
|
||
<maven-surefire-plugin.version>3.1.0</maven-surefire-plugin.version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I honestly don't know why we have this one here, I want to simplify as much as possible related to surefire/failsafe - just remove it, build passes just fine without it |
||
|
||
<maven-checkstyle-plugin.failsOnError>true</maven-checkstyle-plugin.failsOnError> | ||
<maven-checkstyle-plugin.failsOnViolation>true | ||
</maven-checkstyle-plugin.failsOnViolation> | ||
|
@@ -205,8 +204,18 @@ | |
<includes> | ||
<include>${testsToRun}</include> | ||
</includes> | ||
<reportsDirectory>${project.build.directory}/surefire-reports/${CURRENT_INSTANCE}</reportsDirectory> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. my previous observation that the hangs in the builds are related to surefie/failsafe still stands, this still happens. In the initial approach, I hoped that upgrading the plugins will solve this problem - and I was wrong. My builds in some other branches proved this. The other observations I made looking at the failures, is that all of them hang somewhere around logs like these (not verbatim):
So may be this is related to a folder/file being accessed from various matrix steps at the same time. At least, this is my best guess. If that is the case, what if we save the reports in folder structure like so:
this way, may be they will not step on each others feet. Semantically, for our builds, this is irrelevant, we only need those reports for when we find out the test times, but out searches are against an entire directory that comes before
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this solution makes the branches that I maintain to pass on all of them (and it was not the case before) |
||
<artifactId>maven-failsafe-plugin</artifactId> | ||
<configuration> | ||
<reportsDirectory>${project.build.directory}/failsafe-reports/${CURRENT_INSTANCE}</reportsDirectory> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-checkstyle-plugin</artifactId> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,29 +35,6 @@ | |
|
||
</build> | ||
|
||
<profiles> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so this solution did not help :( I tested it against a few branches that I maintain and I still get things to block on the failsafe/surefire plugins sometimes. As such, I am dropping the idea. There is good news though... |
||
<profile> | ||
<id>run-on-github-actions</id> | ||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-failsafe-plugin</artifactId> | ||
<version>3.1.2</version> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.1.2</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
</profile> | ||
</profiles> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
|
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.
drop the profile since we don't need it anymore