Skip to content

fix(ci): fix discovery.yaml by installing root dependencies - #8955

Merged
westarle merged 5 commits into
googleapis:mainfrom
westarle:fix-discovery-yaml
Jul 24, 2026
Merged

fix(ci): fix discovery.yaml by installing root dependencies#8955
westarle merged 5 commits into
googleapis:mainfrom
westarle:fix-discovery-yaml

Conversation

@westarle

@westarle westarle commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This fixes an issue where ESLint could not find the gts config because the root node_modules was empty, and ignores system-test/fixtures which are not included in the tsconfig.

Fixes #8954 🦕

@westarle
westarle requested a review from a team as a code owner July 23, 2026 14:25
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@westarle westarle changed the title ci: fix discovery.yaml by installing root dependencies ci(bigquery): fix discovery.yaml by installing root dependencies Jul 23, 2026
@westarle westarle added the api: bigquery Issues related to the BigQuery API. label Jul 23, 2026
@westarle
westarle force-pushed the fix-discovery-yaml branch from 7eb8775 to ec50638 Compare July 23, 2026 16:19
@westarle
westarle requested a review from a team as a code owner July 23, 2026 16:19
@westarle
westarle force-pushed the fix-discovery-yaml branch from ec50638 to ef04099 Compare July 23, 2026 16:21
@westarle westarle changed the title ci(bigquery): fix discovery.yaml by installing root dependencies fix(ci): fix discovery.yaml by installing root dependencies Jul 24, 2026
westarle added 2 commits July 24, 2026 18:38
…ixtures

This fixes an issue where ESLint could not find the gts config because the root node_modules was empty, and ignores system-test/fixtures which are not included in the tsconfig.

Tested locally with the following commands:

```bash
npm install
cd handwritten/bigquery
npm install
npm run types
npm run fix
```
This fixes an issue where brace-expansion@5.0.8 dropped Node 18 support, breaking pnpm install on Node 18 runners. We override it to 5.0.7 which still supports Node 18.
@westarle
westarle force-pushed the fix-discovery-yaml branch from 519c18e to 516d70e Compare July 24, 2026 18:39
Comment thread .github/workflows/discovery.yaml Outdated
@@ -16,6 +16,8 @@ jobs:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 16

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit/Optional: May be worth bumping this to 22 or 24 while we are here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

Comment thread .github/workflows/discovery.yaml Outdated
westarle added 3 commits July 24, 2026 19:51
Bumps Node version to 22 and uses pnpm for dependency installation and script execution to respect global settings.
Adds 'root: true' to BigQuery's .eslintrc.json to prevent ESLint from cascading up to the monorepo root and loading conflicting versions of plugins (like prettier) when using pnpm.
Now that handwritten/bigquery/.eslintrc.json has 'root: true', ESLint no longer cascades to the monorepo root. Therefore, we no longer need to install root dependencies to satisfy the root ESLint configuration.
@westarle
westarle merged commit 305459a into googleapis:main Jul 24, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci(bigquery): discovery.yaml workflow fails during npm run fix due to missing root dependencies

2 participants