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

Remove custom GOCACHE location #4995

Merged
merged 2 commits into from
Dec 11, 2023
Merged

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Dec 10, 2023

Which problem is this PR solving?

  • Even though we're using setup-go v4.1 where caching is supposed to be enabled by default, it does not seem to work as the dependencies are still being downloaded when we run the tests

Description of the changes

  • remove custom GOCACHE
  • point to go.sum file

How was this change tested?

  • CI
  • the change itself did not seem to help, still seeing lots of "downloading" when running the tests
  • needs more investigation, but I suggest we still merge this as an improvement

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro requested a review from a team as a code owner December 10, 2023 20:23
@yurishkuro yurishkuro added the changelog:ci Change related to continuous integration / testing label Dec 10, 2023
Copy link

codecov bot commented Dec 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (302df61) 95.63% compared to head (28b57fa) 95.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4995      +/-   ##
==========================================
- Coverage   95.63%   95.61%   -0.02%     
==========================================
  Files         319      319              
  Lines       18786    18786              
==========================================
- Hits        17966    17963       -3     
- Misses        659      661       +2     
- Partials      161      162       +1     
Flag Coverage Δ
cassandra-3.x 25.63% <ø> (ø)
cassandra-4.x 25.63% <ø> (ø)
elasticsearch-5.x 19.90% <ø> (ø)
elasticsearch-6.x 19.89% <ø> (-0.02%) ⬇️
elasticsearch-7.x 20.04% <ø> (ø)
elasticsearch-8.x 20.13% <ø> (ø)
grpc-badger 19.52% <ø> (-0.02%) ⬇️
kafka 14.12% <ø> (ø)
opensearch-1.x 20.04% <ø> (ø)
opensearch-2.x 20.04% <ø> (ø)
unittests 93.36% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Yuri Shkuro <github@ysh.us>
@@ -26,9 +26,10 @@ jobs:

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
Copy link
Member Author

Choose a reason for hiding this comment

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

sometimes dependabot adds version at the end, but not everywhere. I wonder if adding it manually once will cause it to keep adding it.

GOBUILD=GOCACHE=$(GOCACHE) CGO_ENABLED=0 installsuffix=cgo $(GO) build -trimpath
GOTEST_QUIET=GOCACHE=$(GOCACHE) $(GO) test $(RACE)
GOBUILD=CGO_ENABLED=0 installsuffix=cgo $(GO) build -trimpath
GOTEST_QUIET=$(GO) test $(RACE)
Copy link
Member Author

Choose a reason for hiding this comment

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

Don't know why we had this GOCACHE override in the first place, it's better to use the system's cache location.

@yurishkuro yurishkuro changed the title Add caching to setup-go Remove custom GOCACHE location Dec 11, 2023
Copy link
Contributor

@jkowall jkowall left a comment

Choose a reason for hiding this comment

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

Looks good, if not we can always revert :)

@yurishkuro yurishkuro merged commit 39a5797 into jaegertracing:main Dec 11, 2023
37 checks passed
@yurishkuro yurishkuro deleted the ci-speed branch December 11, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:ci Change related to continuous integration / testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants