-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix: disable ui-prettier & ui-eslint #3207
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -146,20 +146,31 @@ repos: | |
| pass_filenames: false | ||
| require_serial: true | ||
| files: ^.github/workflows/.*$ | ||
| - id: ui-prettier | ||
| name: Format UI code with Prettier | ||
| entry: bash -c 'cd llama_stack/ui && npm ci && npm run format' | ||
| language: system | ||
| files: ^llama_stack/ui/.*\.(ts|tsx)$ | ||
| pass_filenames: false | ||
| require_serial: true | ||
| - id: ui-eslint | ||
| name: Lint UI code with ESLint | ||
| entry: bash -c 'cd llama_stack/ui && npm run lint -- --fix --quiet' | ||
| language: system | ||
| files: ^llama_stack/ui/.*\.(ts|tsx)$ | ||
| pass_filenames: false | ||
| require_serial: true | ||
| # ui-prettier and ui-eslint are disabled until we can avoid `npm ci`, which is slow and may fail - | ||
| # npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. | ||
| # npm error Invalid: lock file's llama-stack-client@0.2.17 does not satisfy llama-stack-client@0.2.18 | ||
| # and until we have infra for installing prettier and next via npm - | ||
| # Lint UI code with ESLint.....................................................Failed | ||
| # - hook id: ui-eslint | ||
| # - exit code: 127 | ||
| # > ui@0.1.0 lint | ||
| # > next lint --fix --quiet | ||
| # sh: line 1: next: command not found | ||
| # | ||
| # - id: ui-prettier | ||
| # name: Format UI code with Prettier | ||
| # entry: bash -c 'cd llama_stack/ui && npm ci && npm run format' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i missed removing npm ci here. my bad.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. without the please verify pre-commit works after
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah i'll add some handling for only if they exist so folks not developing on the UI don't have to care |
||
| # language: system | ||
| # files: ^llama_stack/ui/.*\.(ts|tsx)$ | ||
| # pass_filenames: false | ||
| # require_serial: true | ||
| # - id: ui-eslint | ||
| # name: Lint UI code with ESLint | ||
| # entry: bash -c 'cd llama_stack/ui && npm run lint -- --fix --quiet' | ||
| # language: system | ||
| # files: ^llama_stack/ui/.*\.(ts|tsx)$ | ||
| # pass_filenames: false | ||
| # require_serial: true | ||
|
|
||
| ci: | ||
| autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this install should be the only one required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when 0.2.18 was released this started failing, see https://github.com/llamastack/llama-stack/actions/runs/17092565807/job/48469414729#step:5:36
i also saw this locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah looks like this github-action commit updated the LS client without updating the package-lock.json file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i caught that locally too last night in another PR I have.
i believe the correct thing to do is update the config for that action.