Skip to content
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

Merged

Conversation

wind57
Copy link
Contributor

@wind57 wind57 commented Sep 29, 2023

No description provided.

@@ -35,29 +35,6 @@

</build>

<profiles>
Copy link
Contributor Author

@wind57 wind57 Sep 29, 2023

Choose a reason for hiding this comment

The 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...

-e clean install \
-P 'sonar, run-on-github-actions' -nsu --batch-mode \
Copy link
Contributor Author

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

-e clean install \
-P 'sonar, run-on-github-actions' -nsu --batch-mode \
Copy link
Contributor Author

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 do not need it anymore

<!-- 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>
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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

</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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):

will use .../surefire-reports directory for saving test results

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:

surefire-reports/<CURRENT_INDEX>...

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 surefire-reports, so the searches still work, as seen from the logs:

searching for filename: org.springframework.cloud.kubernetes.client.discovery.it.KubernetesClientDiscoveryClientIT.txt

found file: ./spring-cloud-kubernetes-integration-tests/spring-cloud-kubernetes-client-discovery-it/target/failsafe-reports/2/org.springframework.cloud.kubernetes.client.discovery.it.KubernetesClientDiscoveryClientIT.txt

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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)

@wind57 wind57 changed the title fix separate surefire/failsafe directory for report on each matrix step Sep 30, 2023
@wind57 wind57 marked this pull request as ready for review September 30, 2023 10:14
@wind57
Copy link
Contributor Author

wind57 commented Sep 30, 2023

@ryanjbaxter this is ready to be looked, relevant comment left everywhere.

Our current 3.0.x and main branches both failed the latest builds, but both are related to internet connection when building images, so imo, it's safe to merge this PR on top. thank you

@@ -62,15 +62,14 @@
</scm>

<properties>
<CURRENT_INSTANCE>one</CURRENT_INSTANCE>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment here about what this is used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@ryanjbaxter ryanjbaxter added this to the 3.0.6 milestone Oct 2, 2023
@ryanjbaxter ryanjbaxter merged commit 9b01949 into spring-cloud:3.0.x Oct 2, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants