Skip to content

fix(ci): update git_dir and clean lockfile artifacts in discovery workflow - #9033

Open
quirogas wants to merge 1 commit into
googleapis:mainfrom
quirogas:fix/discovery-workflow-types-generation
Open

fix(ci): update git_dir and clean lockfile artifacts in discovery workflow#9033
quirogas wants to merge 1 commit into
googleapis:mainfrom
quirogas:fix/discovery-workflow-types-generation

Conversation

@quirogas

Copy link
Copy Markdown
Contributor

Update discovery.yaml to fix failures on future workflows.

  • Update the PR title and commit message to use chore(bigquery), so release-please component can identify the change correctly.
  • Add a cleanup step that removes temporary pnpm-lock.yaml files and reverts unintended formatting changes to handwritten source files.
  • Sets the git_dif key to . to the correct path.

NOTE: since handwritten packages do not track pnpm lockfiles running pnpm install creates one.

…kflow

During the migration of BigQuery into the google-cloud-node monorepo, the discovery workflow was configured with git_dir set to handwritten/bigquery. Additionally, running pnpm install inside handwritten/bigquery generated an untracked pnpm-lock.yaml file that polluted automated PRs, while gts fix formatted handwritten source files as an unintended side-effect.

This change updates discovery.yaml by setting git_dir to '.' so code-suggester properly stages modified files relative to the repository root. It updates the PR title and commit message to use chore(bigquery) for release-please component alignment. Finally, it adds a cleanup step that removes temporary pnpm-lock.yaml files—since handwritten packages do not track pnpm lockfiles—and reverts unintended formatting changes to handwritten source files.

The workflow syntax was validated against repository monorepo standards to ensure clean staging of generated type definitions.
@quirogas quirogas self-assigned this Jul 30, 2026
@quirogas
quirogas requested a review from a team as a code owner July 30, 2026 22:54
@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.

@github-actions
github-actions Bot requested a review from feywind July 30, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant