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

Github Actions: Provide matrix for upload_coverage job #1288

Merged
merged 1 commit into from
May 16, 2024

Conversation

jeremywiebe
Copy link
Collaborator

@jeremywiebe jeremywiebe commented May 16, 2024

Summary:

While investigating a problem where the Github Action cache is broken (we get type check failures in the action runs that don't occur locally), I noticed that some cache keys were missing the node version in them (see screenshot).

image

I think I've traced it down to a missing strategy key in one of the jobs that uses our shared shared-node-cache action.

Issue: "none"

Test plan:

There's no way to test this until it's landed.

Once it's landed, I'll clear the caches once more and then monitor as PRs check/set the cache. Hopefully we won't see any more cache keys that are missing a node version (ie. ones that start with Linux--v1-... (note the double dash, the node version should be between those dashes!)

@jeremywiebe jeremywiebe self-assigned this May 16, 2024
@jeremywiebe jeremywiebe marked this pull request as ready for review May 16, 2024 22:14
@khan-actions-bot khan-actions-bot requested a review from a team May 16, 2024 22:15
@khan-actions-bot
Copy link
Contributor

Gerald

Required Reviewers
  • @Khan/perseus for changes to .github/workflows/node-ci.yml

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note that on line 210 below, we reference matrix.node-version but until this PR that didn't exist. According to Github's docs, it will use an empty string if a matrix value is missing. Which would explain the missing value in the cache keys.... I hope.

Copy link
Contributor

Size Change: 0 B

Total Size: 839 kB

ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.1 kB
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/index.js 80.5 kB
packages/math-input/dist/es/strings.js 1.73 kB
packages/perseus-core/dist/es/index.js 908 B
packages/perseus-editor/dist/es/index.js 268 kB
packages/perseus-error/dist/es/index.js 877 B
packages/perseus-linter/dist/es/index.js 21.8 kB
packages/perseus/dist/es/index.js 403 kB
packages/perseus/dist/es/strings.js 3.22 kB
packages/pure-markdown/dist/es/index.js 3.68 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link
Contributor

@mark-fitzgerald mark-fitzgerald left a comment

Choose a reason for hiding this comment

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

Fingers crossed...

@jeremywiebe jeremywiebe merged commit 58d2a52 into main May 16, 2024
14 of 20 checks passed
@jeremywiebe jeremywiebe deleted the jer/github-action-node-version branch May 16, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants