Skip to content

Commit

Permalink
Remove attach_workspace that I don't think does anything for us. Use … (
Browse files Browse the repository at this point in the history
#13418)

Use a new cache key since any old cache entries use the wrong path.
  • Loading branch information
ncabatoff authored Dec 14, 2021
1 parent 519c9bc commit ac95f05
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
20 changes: 9 additions & 11 deletions .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions .circleci/config/commands/@caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ save_yarn_cache:
- ui/node_modules
# allows restoring go mod caches by incomplete prefix. This is useful when re-generating
# cache, but not when running builds and tests that require an exact match.
# TODO should we be including arch in cache key?
restore_go_mod_cache_permissive:
steps:
- restore_cache:
name: Restore closest matching go modules cache
keys:
- &gocachekey v1.3-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}-{{checksum "api/go.sum"}}
- v1.3-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}
- v1.3-{{checksum "go.sum"}}
- &gocachekey v1.4-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}-{{checksum "api/go.sum"}}
- v1.4-{{checksum "go.sum"}}-{{checksum "sdk/go.sum"}}
- v1.4-{{checksum "go.sum"}}
restore_go_mod_cache:
steps:
- restore_cache:
Expand Down
2 changes: 0 additions & 2 deletions .circleci/config/jobs/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ parallelism: 8
steps:
- exit-if-ui-or-docs-branch
- checkout
- attach_workspace:
at: /home/circleci/go/bin
- go_test:
log_dir: "/tmp/testlogs"
- store_artifacts:
Expand Down

0 comments on commit ac95f05

Please sign in to comment.