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: Fix versions of all external Github actions (no-changelog) #6984

Merged
merged 3 commits into from
Aug 22, 2023
Merged

Conversation

netroy
Copy link
Member

@netroy netroy commented Aug 21, 2023

No description provided.

@netroy netroy requested a review from ivov August 21, 2023 17:58
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Aug 21, 2023
@cypress
Copy link

cypress bot commented Aug 21, 2023

Passing run #1956 ↗︎

0 228 0 0 Flakiness 0

Details:

🌳 ci-fix 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project: n8n Commit: 2cb14a07ab
Status: Passed Duration: 07:46 💡
Started: Aug 22, 2023 9:12 AM Ended: Aug 22, 2023 9:20 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (3860d41) 25.13% compared to head (2cb14a0) 25.12%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6984      +/-   ##
==========================================
- Coverage   25.13%   25.12%   -0.01%     
==========================================
  Files        3150     3150              
  Lines      192169   192169              
  Branches    21177    21172       -5     
==========================================
- Hits        48293    48284       -9     
- Misses     142894   142903       +9     
  Partials      982      982              

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@janober janober self-requested a review August 21, 2023 18:18
janober
janober previously approved these changes Aug 21, 2023
@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy
Copy link
Member Author

netroy commented Aug 21, 2023

@netroy netroy force-pushed the ci-fix branch 2 times, most recently from c85bbf0 to db389b8 Compare August 22, 2023 08:22
Copy link
Contributor

@ivov ivov left a comment

Choose a reason for hiding this comment

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

Thanks for figuring this out!

Comment on lines +62 to +63
- name: Install dependencies
run: pnpm install --frozen-lockfile
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is hardlinking to the store, I take it this doesn't add much overhead vs. caching as we did before.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah. this also has the advantage that if there are random 500x from the caching service, CI still works, making the setup a bit more resilient.

@@ -89,29 +84,28 @@ jobs:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3.5.3
Copy link
Contributor

Choose a reason for hiding this comment

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

Specifying versions everywhere like this makes me wish GH actions supported a manifest to centralize this. Very easy to create drift by forgetting to update somewhere.

Copy link
Member Author

Choose a reason for hiding this comment

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

after having to update all these files over and over again yesterday, I'm seriously considering creating a DSL to auto-generate these yaml files instead. we have so much duplication 🤦🏽

with:
version: 8.6.1
version: 8.6.12
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we pin the pnpm version everywhere else as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is the only place we need it. elsewhere the version is automatically picked from package.json. I'm going to soon change this workflow to also pick the pnpm version from package.json, so this exception will hopefully go away soon.

Comment on lines -38 to -42
path: |
/github/home/.cache
/github/home/.pnpm-store
./node_modules
./packages
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to monitor GH Actions cache so we can see this coming next time? Or by trimming down cache size this shouldn't be necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

we are down from ~200MB to ~24MB. I think if we start seeing issues at this size, a lot more people will see those issues as well. so, we don't need to worry about this.

@@ -7,7 +7,7 @@
"node": ">=18.10",
"pnpm": ">=8.6"
},
"packageManager": "[email protected].1",
"packageManager": "[email protected].12",
Copy link
Contributor

@ivov ivov Aug 22, 2023

Choose a reason for hiding this comment

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

Should we pin also engines.pnpm?

Copy link
Member Author

Choose a reason for hiding this comment

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

do you meanengines.pnpm? I'll update in the next PR.

@github-actions
Copy link
Contributor

✅ All Cypress E2E specs passed

@netroy netroy merged commit 9e3e298 into master Aug 22, 2023
@netroy netroy deleted the ci-fix branch August 22, 2023 09:21
@janober
Copy link
Member

janober commented Aug 30, 2023

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants