Skip to content

fix(bigquery): run npm run types in correct directory in owlbot#8061

Merged
danieljbruce merged 3 commits into
mainfrom
fix-bigquery-owlbot
Apr 16, 2026
Merged

fix(bigquery): run npm run types in correct directory in owlbot#8061
danieljbruce merged 3 commits into
mainfrom
fix-bigquery-owlbot

Conversation

@shivanee-p

Copy link
Copy Markdown
Contributor

Fixes OwlBot failure by running the command in the component directory instead of the root.

@shivanee-p shivanee-p requested review from a team as code owners April 15, 2026 20:44
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the BigQuery API. label Apr 15, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request updates the owlbot.py script in the handwritten/bigquery directory to specify the current working directory when running the npm run types command. This ensures the command executes in the correct context. I have no feedback to provide as there are no review comments.

@shivanee-p shivanee-p added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 15, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 15, 2026

# Regenerate Discovery types.
shell.run(('npm','run','types'))
shell.run(('npm', 'run', 'types'), cwd='handwritten/bigquery')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

(question only) Does this only apply to bigquery lol? And was this a new problem after monorepo I guess?

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.

Yea I went through the other handwritten libraries. Firestore already specifies the directory when running commands. Storage and Spanner don't execute npm commands during the build.

BigQuery was the only one that had the run command without specifying the directory. And yes we haven't released BigQuery since the monorepo migration so it didn't surface earlier.

@shivanee-p shivanee-p force-pushed the fix-bigquery-owlbot branch from e57697f to 6bcaa1c Compare April 15, 2026 20:52
@shivanee-p shivanee-p added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 15, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 15, 2026
@shivanee-p shivanee-p marked this pull request as draft April 15, 2026 21:12
@shivanee-p shivanee-p marked this pull request as ready for review April 15, 2026 21:36
@shivanee-p shivanee-p added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 15, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 15, 2026
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.

4 participants