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: update github action to new setup-java v2 #9068

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

teleivo
Copy link
Contributor

@teleivo teleivo commented Oct 15, 2021

The v2 of actions/setup-java supports caching out of the box
https://github.com/actions/setup-java\#caching-maven-dependencies
Updating to v2 will give us future improvements to caching configuration
automatically.

since v1 used the zulu distribution https://github.com/actions/setup-java/blob/main/README.md\#v2-vs-v1
I stuck with it. Providing the distribution is now mandatory.

Once actions/runner-images#3859 is done
and the VMs have temurin pre-installed we should switch to save
additional time.

The v2 of actions/setup-java supports caching out of the box
https://github.com/actions/setup-java\#caching-maven-dependencies
Updating to v2 will give us future improvements to caching configuration
automatically.

since v1 used the zulu distribution https://github.com/actions/setup-java/blob/main/README.md\#v2-vs-v1
I stuck with it. Providing the distribution is now mandatory.

Once actions/runner-images#3859 is done
and the VMs have temurin pre-installed we should switch to save
additional time.
@teleivo
Copy link
Contributor Author

teleivo commented Oct 15, 2021

relates to #9067

@teleivo teleivo requested a review from vilkg October 15, 2021 10:45
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@jbee
Copy link
Contributor

jbee commented Oct 15, 2021

I think https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/gist/GistLogic.java#L93 this needs to be deleted - didn't think it through correctly so this must be relaxed so that UIDs which have no digit still can be attribute paths.

@teleivo
Copy link
Contributor Author

teleivo commented Oct 15, 2021

I think https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/gist/GistLogic.java#L93 this needs to be deleted - didn't think it through correctly so this must be relaxed so that UIDs which have no digit still can be attribute paths.

Thank you for looking into it 😄 I assume you will take care of deleting that, correct?

@jbee
Copy link
Contributor

jbee commented Oct 15, 2021

Thank you for looking into it smile I assume you will take care of deleting that, correct?

Not today, since I am off - so if you want it today just delete it in your branch ;)

@teleivo
Copy link
Contributor Author

teleivo commented Oct 15, 2021

Thank you for looking into it smile I assume you will take care of deleting that, correct?

Not today, since I am off - so if you want it today just delete it in your branch ;)

Oh I am very sorry for pinging you 😅 Have a great day off. Turn of the phone or the github/slack apps 😂 I will deleted it!

@teleivo
Copy link
Contributor Author

teleivo commented Oct 15, 2021

Just so I or others can find it later. If the runner the job is assigned to has no maven cache it will print so in the logs. See example at https://github.com/dhis2/dhis2-core/runs/3906542924?check_suite_focus=true#step:3:890

@teleivo
Copy link
Contributor Author

teleivo commented Oct 18, 2021

waiting on #9076 to be merged

@teleivo teleivo added the run-api-tests This label will trigger an api-test job for the PR. label Oct 18, 2021
@teleivo teleivo merged commit d3a563d into master Oct 20, 2021
@teleivo teleivo deleted the use-github-action-setup-java-v2 branch October 20, 2021 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-api-tests This label will trigger an api-test job for the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants