Skip to content

Upgrade github actions cache and use m2 cache for integration testing…#412

Merged
MartinKanters merged 1 commit intoapache:masterfrom
MartinKanters:test-github-actions-dependency-cache
Dec 15, 2020
Merged

Upgrade github actions cache and use m2 cache for integration testing…#412
MartinKanters merged 1 commit intoapache:masterfrom
MartinKanters:test-github-actions-dependency-cache

Conversation

@MartinKanters
Copy link
Copy Markdown
Contributor

This merge request will cache .m2 dependencies for the integration tests that are running on currently 12 different OS + JDK versions.

This should solve the (relatively) many dependency retrieval failures we get in GA jobs currently.

I've tested it under my own profile.

@MartinKanters
Copy link
Copy Markdown
Contributor Author

It seems I have made a mistake, the location of the m2 repo is different in case of the integration tests. Let me fix this.

Comment thread .github/workflows/maven.yml Outdated
- name: Running integration tests
shell: bash
run: mvn install -e -B -V -Prun-its,embedded -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -DwrapperDistroDir="$GITHUB_WORKSPACE/built-maven/" -DmavenWrapper="$GITHUB_WORKSPACE/built-maven-wrapper/maven-wrapper.jar" -f maven-integration-testing/pom.xml
run: mvn install -e -B -V -Prun-its,embedded -Dmaven.repo.local=~/.m2/repository -DmavenDistro="$GITHUB_WORKSPACE/built-maven/apache-maven-bin.zip" -DwrapperDistroDir="$GITHUB_WORKSPACE/built-maven/" -DmavenWrapper="$GITHUB_WORKSPACE/built-maven-wrapper/maven-wrapper.jar" -f maven-integration-testing/pom.xml
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't this redundant then because it is the default value?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've tried that, but MavenITmng5937MavenWrapper breaks in that case.. We should probably fix that, but I'd rather see that as a separate issue.

@MartinKanters MartinKanters force-pushed the test-github-actions-dependency-cache branch from 3d5a895 to 70ec8f9 Compare December 9, 2020 18:37
@MartinKanters
Copy link
Copy Markdown
Contributor Author

@michael-o The issues have been solved, please take another look when you have some time.

@MartinKanters MartinKanters merged commit 2ef0e5b into apache:master Dec 15, 2020
@MartinKanters MartinKanters deleted the test-github-actions-dependency-cache branch December 15, 2020 08:39
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.

3 participants