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

ci: updates #4269

Merged
merged 10 commits into from Jun 20, 2023
Merged

ci: updates #4269

merged 10 commits into from Jun 20, 2023

Conversation

calebdoxsey
Copy link
Contributor

@calebdoxsey calebdoxsey commented Jun 15, 2023

Fix for this error:

Restore cache failed: Dependencies file is not found in /home/runner/work/pomerium/pomerium. Supported file pattern: go.sum

Also consolidate some tasks and switch to builtin caching.

@calebdoxsey calebdoxsey requested a review from a team as a code owner June 15, 2023 23:08
@calebdoxsey calebdoxsey requested a review from wasaga June 15, 2023 23:08
@coveralls
Copy link

coveralls commented Jun 15, 2023

Coverage Status

coverage: 63.507% (+0.005%) from 63.502% when pulling f9d49cc on cdoxsey/fix-setup-go into e819ebf on main.

@calebdoxsey calebdoxsey changed the title fix checkouts ci: updates Jun 16, 2023
Copy link
Contributor

@kenjenkins kenjenkins left a comment

Choose a reason for hiding this comment

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

Just to make sure I understand: this is fixing a warning from our recent Actions runs (e.g. https://github.com/pomerium/pomerium/actions/runs/5284751729/jobs/9562500238#step:2:16).

And we hope that better caching should allow these Actions to complete more quickly, is that right?

- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
with:
go-version: ${{ matrix.go-version }}
cache: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we want to disable caching for this step? (Not saying we should or shouldn't, just trying to understand the impact of this setting.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the caches have the same keys. so we only want to cache if we're doing the full go install

@@ -16,8 +16,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
fetch-depth: 0
Copy link
Contributor

Choose a reason for hiding this comment

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

This is changing from a full clone to a shallow clone, is that right? (I find it confusing that fetch-depth: 0 means "fetch everything".)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I also didn't understand what fetch-depth: 0 did. We just copied it as we wrote everything and it was, AFAIK, only ever needed for one job

@calebdoxsey
Copy link
Contributor Author

The time doesn't seem much faster. But it's less separate jobs anyway, so maybe we'll see some benefits when multiple PRs are running.

@calebdoxsey calebdoxsey merged commit 1f83955 into main Jun 20, 2023
10 checks passed
@calebdoxsey calebdoxsey deleted the cdoxsey/fix-setup-go branch June 20, 2023 15:58
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

4 participants