Skip to content

build: use absolute path to pnpm-lock.yaml#107273

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
sjbarag:github-actions-properly-cache-pnpm-dependencies
Jul 20, 2023
Merged

build: use absolute path to pnpm-lock.yaml#107273
craig[bot] merged 1 commit intocockroachdb:masterfrom
sjbarag:github-actions-properly-cache-pnpm-dependencies

Conversation

@sjbarag
Copy link
Copy Markdown
Contributor

@sjbarag sjbarag commented Jul 20, 2023

Previously, actions/setup-node@v3 was used with a relative path for cache-dependency-path. This had an unexpected interaction with the .defaults.run.working-directory: "pkg/ui/workspaces/cluster-ui" declaration, which caused setup-node's cleanup action to look for pkg/ui/workspaces/cluster-ui/pkg/ui/pnpm-lock.yaml. Naturally, this file didn't exist. Use an absolute path (thanks, github.workspace!) to pnpm-lock.yaml instead.

Release note: None
Epic: none

Previously, actions/setup-node@v3 was used with a relative path for
`cache-dependency-path`. This had an unexpected interaction with the
`.defaults.run.working-directory: "pkg/ui/workspaces/cluster-ui"`
declaration, which caused setup-node's cleanup action to look for
pkg/ui/workspaces/cluster-ui/pkg/ui/pnpm-lock.yaml. Naturally, this file
didn't exist. Use an absolute path (thanks, `github.workspace`!) to
pnpm-lock.yaml instead.

Release note: None
Epic: none
@sjbarag sjbarag requested a review from a team as a code owner July 20, 2023 16:26
@sjbarag sjbarag requested a review from nathanstilwell July 20, 2023 16:26
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@sjbarag sjbarag added the backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only label Jul 20, 2023
Copy link
Copy Markdown
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @nathanstilwell)

@sjbarag
Copy link
Copy Markdown
Contributor Author

sjbarag commented Jul 20, 2023

bors r=maryliag

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jul 20, 2023

Build succeeded:

@craig craig bot merged commit 39124c4 into cockroachdb:master Jul 20, 2023
@sjbarag sjbarag deleted the github-actions-properly-cache-pnpm-dependencies branch July 25, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants