Skip to content

refactor: use separate cache key in release, run standalone after caching #5859

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

Merged
merged 29 commits into from
Dec 12, 2022

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Dec 9, 2022

This fixes a caching issue causing dependency issues in the release. This now uses a separate cache key across OS's and it runs the standalone release after restoring cache. If we don't do this, the cache in the standalone release is overwritten which we don't want.

@jsjoeio jsjoeio temporarily deployed to npm December 9, 2022 22:38 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Dec 9, 2022

✨ code-server dev build published to npm for PR #5859!

  • Last publish status: success
  • Commit: 0da120f

To install in a local project, run:

npm install @coder/code-server-pr@5859

To install globally, run:

npm install -g @coder/code-server-pr@5859

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Merging #5859 (0da120f) into main (1efc5f1) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5859   +/-   ##
=======================================
  Coverage   74.94%   74.94%           
=======================================
  Files          30       30           
  Lines        1688     1688           
  Branches      371      371           
=======================================
  Hits         1265     1265           
  Misses        361      361           
  Partials       62       62           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1efc5f1...0da120f. Read the comment docs.

@jsjoeio jsjoeio temporarily deployed to npm December 9, 2022 23:13 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 9, 2022 23:42 — with GitHub Actions Inactive
@jsjoeio jsjoeio temporarily deployed to npm December 9, 2022 23:45 — with GitHub Actions Inactive
@jsjoeio jsjoeio changed the base branch from main to jsjoeio/fix-cross-compile December 12, 2022 17:39
@jsjoeio jsjoeio changed the title try ddd in postinstall refactor: use separate cache key in release, run standalone after caching Dec 12, 2022
@jsjoeio jsjoeio self-assigned this Dec 12, 2022
@jsjoeio jsjoeio added this to the December 2022 milestone Dec 12, 2022
@jsjoeio jsjoeio marked this pull request as ready for review December 12, 2022 17:44
@jsjoeio jsjoeio requested a review from a team as a code owner December 12, 2022 17:44
@@ -132,7 +132,7 @@ install_with_yarn_or_npm() {
# HACK: NPM's use of semver doesn't like resolving some peerDependencies that vscode (upstream) brings in the form of pre-releases.
# The legacy behavior doesn't complain about pre-releases being used, falling back to that for now.
# See https://github.com//pull/5071
npm install --unsafe-perm --legacy-peer-deps --omit=dev
npm install --unsafe-perm --legacy-peer-deps --omit=dev -ddd
Copy link
Member

Choose a reason for hiding this comment

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

What is this -ddd option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Silly logging! https://docs.npmjs.com/cli/v8/using-npm/logging#aliases

I may want to remove it though 🤔

Base automatically changed from jsjoeio/fix-cross-compile to main December 12, 2022 21:41
@jsjoeio jsjoeio enabled auto-merge (squash) December 12, 2022 21:49
@jsjoeio jsjoeio temporarily deployed to npm December 12, 2022 21:51 — with GitHub Actions Inactive
@jsjoeio jsjoeio merged commit 9012ddf into main Dec 12, 2022
@jsjoeio jsjoeio deleted the jsjoeio/wip-fix branch December 12, 2022 22:03
@jsjoeio jsjoeio modified the milestones: December 2022, 4.9.1 Dec 15, 2022
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.

2 participants