Skip to content

ci: diag for reviewdog "not PullRequest build" on clang-tidy-bazel-post#10555

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:ci/clang-tidy-post-diag
May 30, 2026
Merged

ci: diag for reviewdog "not PullRequest build" on clang-tidy-bazel-post#10555
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:ci/clang-tidy-post-diag

Conversation

@openroad-ci
Copy link
Copy Markdown
Collaborator

Summary

This PR adds a diagnostic step before Run reviewdog, gated on runner.debug == '1', that dumps:

  • env | grep ^(GITHUB_|RUNNER_|REVIEWDOG_)
  • Effective GITHUB_EVENT_PATH and the contents of that file
  • Synth file at the literal steps.event.outputs.event_path path

Plus -log-level=debug on reviewdog under the same gate. Off the debug re-run path the workflow is identical to today.

Constraint

workflow_run always executes the listener from the default branch, so this diagnostic only fires once it lands on public master. Plan: merge here, propagate private → staging → public, then trigger a debug re-run on any open fork PR to capture the env dump.

Test plan

  • Diff review only -- gated step does not run on normal PRs.
  • After landing through the mirror chain, re-run clang-tidy-bazel-post on an open fork PR with "Enable debug logging" checked.
  • Confirm whether GITHUB_EVENT_PATH in the env dump matches our synth path or the runner's workflow_run event path.
  • Use captured payload + reviewdog debug log to write the actual fix PR.

Reviewdog v0.21.0 emits "this is not PullRequest build" and posts nothing
on fork-PR runs, even though the synthesized pull_request payload parses
fine in a local reproduction. Suspect step-level `env:` cannot override
runner-protected GITHUB_EVENT_PATH / GITHUB_EVENT_NAME under `workflow_run`,
so reviewdog reads the workflow_run event instead of the synth file.

Add a step (gated on `runner.debug == '1'`) that dumps the env reviewdog
will see and the effective GITHUB_EVENT_PATH content, plus `-log-level=debug`
on the reviewdog invocation under the same gate. Off the debug re-run path
the workflow behaves exactly as before.

Signed-off-by: Joao Luis Sombrio <sombrio@sombrasoft.dev>
@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.

@maliberty maliberty self-requested a review May 30, 2026 03:10
@maliberty maliberty marked this pull request as ready for review May 30, 2026 03:10
@maliberty maliberty requested a review from a team as a code owner May 30, 2026 03:10
@maliberty maliberty merged commit 299f301 into The-OpenROAD-Project:master May 30, 2026
17 checks passed
@maliberty maliberty deleted the ci/clang-tidy-post-diag branch May 30, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants