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

chore: Use native transport configuration for Maven in CI #5190

Merged
merged 4 commits into from
Apr 26, 2023

Conversation

MartinWitt
Copy link
Collaborator

@MartinWitt MartinWitt commented Apr 25, 2023

replaces #5189 Somehow the GitHub API allows creating branches which destroy GitHub. Having a / leading your branch name is not the best idea.

Had a lengthy discussion with @I-Al-Istannen and @SirYwell about our failing master and how to fix this. We concluded to switch to mavens new http transport and increase the timeout. This should reduce/remove the failing of mavens dependency resolution on master. The timeout is still set to a reasonable number, but we will monitor it closely and increase if we see we still need a large.

Add system properties to Maven options to set the native dependency transport for Aether connector. This will improve the speed of dependency resolution by using the native transport layer over HTTP. Also, the request timeout and connection timeout are increased to 300,000 milliseconds in order to allow for slower networks.

Add system properties to Maven options to set the native dependency transport for Aether connector. This will improve the speed of dependency resolution by using the native transport layer over HTTP. Also, the request timeout and connection timeout are increased to 300,000 milliseconds in order to allow for slower networks.
Removed unnecessary Maven options in the test workflow configuration file. This will simplify the test runs and remove excess configuration code.
@MartinWitt MartinWitt changed the title feat: feat: Add native transport configuration to Maven Apr 25, 2023
@MartinWitt
Copy link
Collaborator Author

The removed env var java.src.version was only used in the spoon pom if there exists no java.version property. This is never the case in test cases and if the property is null, we fall back to the way better maven property

javaVersion = getProperty("java.src.version");

The changes made removed the MAVEN_OPTS environment variable from the test jobs in the workflow. This variable was previously set to a specific java version which is now not needed as it is inferred from the matrix configuration.

Co-authored-by: I-Al-Istannen <[email protected]>
Copy link
Collaborator

@I-Al-Istannen I-Al-Istannen left a comment

Choose a reason for hiding this comment

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

I ran it twice without caches and once with them and it succeeded every time. That's a lot better than any other pipeline I've seen in the last ~two weeks.

@MartinWitt
Copy link
Collaborator Author

If you merge this dont remove the coauthor during the squash.

@MartinWitt MartinWitt requested a review from SirYwell April 26, 2023 09:30
@I-Al-Istannen I-Al-Istannen changed the title feat: Add native transport configuration to Maven chore: Use native transport configuration for Maven in CI Apr 26, 2023
@I-Al-Istannen I-Al-Istannen merged commit 3fa5efc into master Apr 26, 2023
@I-Al-Istannen I-Al-Istannen deleted the fix/nativeHttp branch April 26, 2023 13:03
@MartinWitt
Copy link
Collaborator Author

Was a nice ride with wagon. Let's hope the new HTTP native transport is better.

@I-Al-Istannen
Copy link
Collaborator

Let's cross our fingers! Thanks :)

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