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

tools: use sccache GitHub action #52839

Merged
merged 3 commits into from
May 6, 2024
Merged

Conversation

targos
Copy link
Member

@targos targos commented May 5, 2024

@targos targos added the wip Issues and PRs that are still a work in progress. label May 5, 2024
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label May 5, 2024
@targos
Copy link
Member Author

targos commented May 5, 2024

I'll push the yaml lint fix after the test workflow is finished so we can see if it then uses the cache

@targos
Copy link
Member Author

targos commented May 5, 2024

Build time without cache: 1h21m
Build time with cache: 16m

@targos targos removed the wip Issues and PRs that are still a work in progress. label May 5, 2024
Copy link
Member

@MoLow MoLow left a comment

Choose a reason for hiding this comment

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

This is incredible. can it be added to other workflows?

Co-authored-by: Moshe Atlow <moshe@atlow.co.il>
@targos
Copy link
Member Author

targos commented May 5, 2024

Can it be added to other workflows?

Certainly, but I suggest we start only with one and monitor it for a few days before applying to others.

@targos
Copy link
Member Author

targos commented May 5, 2024

I think the third run didn't use the previous cache because of c7e4209. I restarted it.

@targos targos added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 5, 2024
@anonrig anonrig added the fast-track PRs that do not need to wait for 48 hours to land. label May 5, 2024
Copy link
Contributor

github-actions bot commented May 5, 2024

Fast-track has been requested by @anonrig. Please 👍 to approve.

@MoLow MoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label May 6, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 6, 2024
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/52839
✔  Done loading data for nodejs/node/pull/52839
----------------------------------- PR info ------------------------------------
Title      tools: use sccache GitHub action (#52839)
Author     Michaël Zasso  (@targos)
Branch     targos:sccache -> nodejs:main
Labels     meta, fast-track, author ready
Commits    3
 - tools: use sccache GitHub action
 - lint
 - Update .github/workflows/test-linux.yml
Committers 2
 - Michaël Zasso 
 - GitHub 
PR-URL: https://github.com/nodejs/node/pull/52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow 
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Marco Ippolito 
Reviewed-By: Luigi Pinca 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow 
Reviewed-By: Yagiz Nizipli 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Marco Ippolito 
Reviewed-By: Luigi Pinca 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 05 May 2024 11:45:39 GMT
   ✔  Approvals: 5
   ✔  - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039719111
   ✔  - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039729543
   ✔  - Benjamin Gruenbaum (@benjamingr) (TSC): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039764491
   ✔  - Marco Ippolito (@marco-ippolito): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039767711
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/52839#pullrequestreview-2039778872
   ℹ  This PR is being fast-tracked
   ✔  Last GitHub CI successful
   ℹ  Green GitHub CI is sufficient
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/main up to date...
From https://github.com/nodejs/node
 * branch                  main       -> FETCH_HEAD
✔  origin/main is now up-to-date
- Downloading patch for 52839
From https://github.com/nodejs/node
 * branch                  refs/pull/52839/merge -> FETCH_HEAD
✔  Fetched commits as e5a76f16e11b..4961c7af469f
--------------------------------------------------------------------------------
[main 6db8a08c4c] tools: use sccache GitHub action
 Author: Michaël Zasso 
 Date: Sun May 5 13:45:10 2024 +0200
 1 file changed, 8 insertions(+)
[main 2426339528] lint
 Author: Michaël Zasso 
 Date: Sun May 5 16:35:16 2024 +0200
 1 file changed, 2 insertions(+), 2 deletions(-)
[main 9cf34aa272] Update .github/workflows/test-linux.yml
 Author: Michaël Zasso 
 Date: Sun May 5 17:12:07 2024 +0200
 1 file changed, 1 insertion(+), 1 deletion(-)
   ✔  Patches applied
There are 3 commits in the PR. Attempting autorebase.
Rebasing (2/6)

Executing: git node land --amend --yes
⚠ Found Refs: https://github.com/Mozilla-Actions/sccache-action, skipping..
--------------------------------- New Message ----------------------------------
tools: use sccache GitHub action

Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: #52839
Reviewed-By: Moshe Atlow moshe@atlow.co.il
Reviewed-By: Yagiz Nizipli yagiz.nizipli@sentry.io
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: Marco Ippolito marcoippolito54@gmail.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com

[detached HEAD 8e3719a7f6] tools: use sccache GitHub action
Author: Michaël Zasso targos@protonmail.com
Date: Sun May 5 13:45:10 2024 +0200
1 file changed, 8 insertions(+)
Rebasing (3/6)
Rebasing (4/6)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
lint

PR-URL: #52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow moshe@atlow.co.il
Reviewed-By: Yagiz Nizipli yagiz.nizipli@sentry.io
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: Marco Ippolito marcoippolito54@gmail.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com

[detached HEAD 180a5a3c93] lint
Author: Michaël Zasso targos@protonmail.com
Date: Sun May 5 16:35:16 2024 +0200
1 file changed, 2 insertions(+), 2 deletions(-)
Rebasing (5/6)
Rebasing (6/6)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
Update .github/workflows/test-linux.yml

Co-authored-by: Moshe Atlow moshe@atlow.co.il
PR-URL: #52839
Refs: https://github.com/Mozilla-Actions/sccache-action
Reviewed-By: Moshe Atlow moshe@atlow.co.il
Reviewed-By: Yagiz Nizipli yagiz.nizipli@sentry.io
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: Marco Ippolito marcoippolito54@gmail.com
Reviewed-By: Luigi Pinca luigipinca@gmail.com

[detached HEAD 5587cfb240] Update .github/workflows/test-linux.yml
Author: Michaël Zasso targos@protonmail.com
Date: Sun May 5 17:12:07 2024 +0200
1 file changed, 1 insertion(+), 1 deletion(-)

Successfully rebased and updated refs/heads/main.

ℹ Add commit-queue-squash label to land the PR as one commit, or commit-queue-rebase to land as separate commits.

https://github.com/nodejs/node/actions/runs/8965783780

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label May 6, 2024
@MoLow MoLow added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels May 6, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 6, 2024
@nodejs-github-bot nodejs-github-bot merged commit bbace72 into nodejs:main May 6, 2024
31 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in bbace72

@targos targos deleted the sccache branch May 6, 2024 08:27
Ch3nYuY pushed a commit to Ch3nYuY/node that referenced this pull request May 8, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: nodejs#52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos added a commit that referenced this pull request May 8, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: #52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@MoLow
Copy link
Member

MoLow commented May 30, 2024

@targos WDYT abod expanding this to other workflows now that is seems to work nicely?

@targos
Copy link
Member Author

targos commented May 30, 2024

SGTM

marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: #52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
eliphazbouye pushed a commit to eliphazbouye/node that referenced this pull request Jun 20, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: nodejs#52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
bmeck pushed a commit to bmeck/node that referenced this pull request Jun 22, 2024
Refs: https://github.com/Mozilla-Actions/sccache-action
PR-URL: nodejs#52839
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. fast-track PRs that do not need to wait for 48 hours to land. meta Issues and PRs related to the general management of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants