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

Better local caching via burrunan/gradle-cache-action #1054

Merged
merged 5 commits into from
Aug 19, 2020

Conversation

iNikem
Copy link
Contributor

@iNikem iNikem commented Aug 19, 2020

No description provided.

.github/workflows/pr.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

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

Curious what changed in the action will have to check it out some time. Thanks @iNikem @vlsi!

@@ -28,20 +28,14 @@ jobs:
with:
java-version: 11

- name: Cache gradle dependencies
- name: Test
uses: burrunan/gradle-cache-action@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like gradle-caching-runner or the like will be a good name. Not surprising to see the best caching comes with having full visibility to Gradle.

Copy link

Choose a reason for hiding this comment

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

Naming is hard :)
Thanks for the suggestion.

I see JUnit team uses the following, and it can't be folded to a single command, so I'm exploring ways to allow multiple (Gradle? Shell?) commands to be executed (to avoid copy-paste the boring uses:...)

run: |
  ./gradlew --version
  ./gradlew build

@@ -28,20 +28,14 @@ jobs:
with:
java-version: 11

- name: Cache gradle dependencies
- name: Test
Copy link
Contributor

Choose a reason for hiding this comment

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

While we're here how about Test on ${{matrix.java}}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We already have in job name. Isn't it enough?

@@ -63,20 +57,14 @@ jobs:
with:
java-version: 11

- name: Cache gradle dependencies
- name: Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly how about Test latest deps?

@@ -24,17 +24,11 @@ jobs:
with:
java-version: 11

- name: Cache gradle dependencies
- name: Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

👍

@trask
Copy link
Member

trask commented Aug 19, 2020

Thanks @vlsi!

@iNikem iNikem merged commit 090cdd7 into open-telemetry:master Aug 19, 2020
@iNikem iNikem deleted the better-cache branch August 19, 2020 19:00
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.

None yet

5 participants