Allow sharing the Go cache directory for crossbuilds#178
Allow sharing the Go cache directory for crossbuilds#178simonpasquier wants to merge 7 commits intoprometheus:masterfrom
Conversation
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
|
@simonpasquier I am massively rewriting cmd/crossbuild.go in #177 |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
|
@sylr yes I know but I'm not sure it's the right direction... |
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
|
I've managed to make it work (though a few things need to be cleaned up). The |
|
When does the build cache prove effective ? if "our" go sources are modified from one commit to another will it still improve things ? |
| build: | ||
| executor: golang | ||
| machine: | ||
| image: ubuntu-1604:201903-01 |
|
@simonpasquier As I rewrote crossbuild entirely to not use docker anymore in #177 (I created a |
| - restore_cache: | ||
| keys: | ||
| - v01-gocache-{{ checksum "go.mod" }} | ||
| - v01-gocache- |
There was a problem hiding this comment.
that's for testing
Obviously it would need to be tested on Circle CI but this is what I get with my local machine when crossbuilding different versions of So the difference between a fresh cache and an outdated cache isn't huge. Note that it assumes that |
|
OK, thank you for this. I also did some tests on my side and running crossbuild on prometheus on my mac generated 6GB of data in the cache dir, do you roughtly have the same number ? |
|
I've reached 8.5GB of build cache after the runs I've described. |
|
How's this going? It's approved, but there's a lot of un-resolved threads. |
|
Ping, should we finish this up? |
|
Ping @simonpasquier, can you rebase this? |
kakkoyun
left a comment
There was a problem hiding this comment.
I think we can revive and merge this @simonpasquier.
LGTM.
| build: | ||
| executor: golang | ||
| machine: | ||
| image: ubuntu-1604:201903-01 |
There was a problem hiding this comment.
| image: ubuntu-1604:201903-01 | |
| image: ubuntu-2204:2024.04.4 |
No description provided.