Skip to content

Notify Investigator when FB Tests goes red on a PR - #4511

Open
travagliad wants to merge 1 commit into
v3from
claude/fb-tests-investigator-notify-aotw5u
Open

Notify Investigator when FB Tests goes red on a PR#4511
travagliad wants to merge 1 commit into
v3from
claude/fb-tests-investigator-notify-aotw5u

Conversation

@travagliad

@travagliad travagliad commented Aug 6, 2026

Copy link
Copy Markdown

https://jira.percona.com/browse/PMM-0

What

Adds .github/workflows/notify-investigator.yml, firing the Investigator Claude Code Routine (trig_01FhHBdz2yBibyVEfnG5gbQz) whenever FB Tests completes with conclusion: failure on a PR in this repo, passing the PR number and failed run URL. Mirrors percona/pmm-qa's workflow of the same name.

FB Tests is confirmed to be a native GitHub Actions workflow in this repo (.github/workflows/pmm-qa-fb-checks.yml) — Jenkins only dispatches it via workflow_dispatch; it doesn't post the results itself. So workflow_run is the correct event, same as pmm-qa's version, and no status/check_run listener is needed.

The PR number normally comes from github.event.workflow_run.pull_requests[0].number, with a head-SHA lookup fallback for the rare case where that PR has since closed; if neither resolves, the job logs a notice and notifies nobody instead of firing with nothing to investigate.

Why

Investigator's second event source (FB Tests going red) has no notifier yet — this closes that gap so pmm-submodules failures reach Investigator the same way pmm-qa's own CI failures already do.

⚠️ Manual step after merge: this repo needs its own INVESTIGATOR_ROUTINE_TOKEN secret (same bearer token value as pmm-qa's, added separately since secrets aren't shared across repos/orgs). Not part of this PR. Until it's added, the job fails loudly with an ::error:: naming the missing secret rather than silently no-op'ing.

Adds .github/workflows/notify-investigator.yml, mirroring the workflow of
the same name in percona/pmm-qa. It fires the Investigator Claude Code
Routine with this repo's PR number and the failed run URL, so Investigator
can pick up an FB Tests failure the same way it already picks up pmm-qa's
own scheduled CI failures.

FB Tests is a native GitHub Actions workflow here, dispatched per feature
build by Jenkins, so workflow_run is the right event -- no status or
check_run listener is needed.

Requires an INVESTIGATOR_ROUTINE_TOKEN repo secret before it can fire.

Signed-off-by: Claude <noreply@anthropic.com>
@JNKPercona

Copy link
Copy Markdown
Collaborator

@JNKPercona

Copy link
Copy Markdown
Collaborator

API tests have succeded: https://pmm.cd.percona.com/job/pmm3-api-tests/6946/

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.

3 participants