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

fix: fix failing github action setup #1886

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Conversation

aweebs
Copy link
Contributor

@aweebs aweebs commented Feb 16, 2023

Currently all builds are failing the Lint and Typecheck (and other) steps due to an error with
setting up the node environment, ENOWORKSPACES. From the Lint logs for recent PRs (like #1881):
image

These errors are because the npm cache option doesn't work with npm workspaces - try running npm config get cache locally to confirm this. This PR removes the github actions cache option to allow the github action workflows to run.

The jobs still fail now because of linting and type checking errors, but the steps actually run to completio.
This should help monitor how PRs increase/decrease lint rule and type checking violations.

@jellyfin-bot jellyfin-bot added the ci Pull requests that update Continuos Integration-related code label Feb 16, 2023
@aweebs aweebs marked this pull request as ready for review February 16, 2023 07:39
@aweebs aweebs changed the title bug: fix github workflows fix: fix failing github actions Feb 16, 2023
@sonarcloud
Copy link

sonarcloud bot commented Feb 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ferferga
Copy link
Member

I don't understand what are you trying to accomplish with this PR, as workflows work perfectly. They are currently failing because npm run typecheck and npm run lint are failing, which is expected as there are still type errors and linting issues in the codebase.

Tauri is failing because there's a huge mismatch between the Rust versions and JS packages (check #1738 and #1770). As soon as viet gets merged and renovate dependencies go afterwards, I expect those to get fixed.

Bear in mind that even there was a node version switch in vite (master is in 16, vite in 18)

@aweebs
Copy link
Contributor Author

aweebs commented Feb 16, 2023

I don't understand what are you trying to accomplish with this PR, as workflows work perfectly. They are currently failing because npm run typecheck and npm run lint are failing, which is expected as there are still type errors and linting issues in the codebase.

Tauri is failing because there's a huge mismatch between the Rust versions and JS packages (check #1738 and #1770). As soon as viet gets merged and renovate dependencies go afterwards, I expect those to get fixed.

Bear in mind that even there was a node version switch in vite (master is in 16, vite in 18)

The lint and typechecking steps are actually currently failing on setup, and not on execution. I've updated the description to better explain this. Check the failure result of the Typecheck and Lint steps for any recent PR to verify.

@aweebs aweebs changed the title fix: fix failing github actions fix: fix failing github action setup Feb 17, 2023
@ferferga ferferga mentioned this pull request Feb 18, 2023
15 tasks
@aweebs
Copy link
Contributor Author

aweebs commented Feb 18, 2023

@ferferga bumping this, I've updated the description to include the reason for it

@ferferga
Copy link
Member

@aweebs Just updated the checklist of the main PR to include this: #1812

I just finished testing the new setup-node update and the issue is also present in master.
I want to investigate why the npm team disabled that command for workspaces, it makes no sense to me and might probably be a bug (in that case I'll file an issue).

They've been breaking workspaces in every major npm update lately, so this doesn't surprise me.

@github-advanced-security
Copy link

You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@github-advanced-security
Copy link

You have successfully added a new CodeQL configuration .github/workflows/codeQL.yml:analyze. As part of the setup process, we have scanned this repository and found 3 existing alerts. Please check the repository Security tab to see all alerts.

Co-authored-by: aweebs <8809837+aweebs@users.noreply.github.com>

Due to a regression in npm 9.3.0 (upgraded by Node.JS 18 LTS at 18.14.0,
see https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md#2023-02-02-version-18140-hydrogen-lts-bethgriggs-prepared-by-juanarbol),
the `npm get config` command stopped working in workspaces. This made
our actions using actions/setup-node to fail.

Issues were opened in the relevant repositories since january
and february (check npm/cli#6099 and actions/setup-node#712)
but it looks like getting this fixed upstream it's going to take a long time.
We have been waiting for a really long time
for other fixes in npm, so I don't expect this situation will be solved really soon

We need a working CI before the Vue 3 merge, so applying this commit will
solve the issue in the meantime. In the future, it might be interesting
to revert this commit.

Also format the Gitrhub Actions workflows using the official VSCode GitHub extension
@sonarcloud
Copy link

sonarcloud bot commented Mar 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ferferga ferferga merged commit d6bac37 into jellyfin:vite Mar 28, 2023
@jellyfin-bot
Copy link

Cloudflare Pages deployment

Latest commit 974d7d8
Status ✅ Deployed!
Preview URL https://18dc0e43.jf-vue.pages.dev
Type 🔀 Preview

View build logs
View bot logs

@aweebs aweebs deleted the build_fixes branch April 1, 2023 17:47
@ferferga ferferga added this to the Vue 3 milestone Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Pull requests that update Continuos Integration-related code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants