Skip to content

Remove legacy PR Buildkite Detective workflow - #3930

Open
fr4nc1sc0-r4m0n wants to merge 2 commits into
mainfrom
chore/migrate-estc-pr-buildkite-detective-to-obs-aw
Open

fr4nc1sc0-r4m0n wants to merge 2 commits into
mainfrom
chore/migrate-estc-pr-buildkite-detective-to-obs-aw

Conversation

@fr4nc1sc0-r4m0n

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n commented Sep 7, 2026

Copy link
Copy Markdown

Summary

Merge gate

Do not merge this PR until the oblt-aw distribution process has opened and merged the install PR that adds trigger-obs-aw-*.yml (especially trigger-obs-aw-status.yml) to this repository. Merging the legacy removal first would leave Buildkite status failures without a detective entrypoint.

Notes

  • After distribution and dashboard sync, enable obs:estc-pr-buildkite-detective on the [oblt-aw] Control Plane Dashboard issue (default is off).
  • Requires repository secret BUILDKITE_LOGS_API_TOKEN (already used by the legacy workflow where present).

Test plan

  • Confirm trigger-obs-aw-status.yml is present via distribute-client-workflow
  • Confirm legacy detective workflow file is gone
  • Confirm Control Plane Dashboard lists PR Buildkite Detective and enable it
  • On a failed Buildkite status for an open PR, confirm detective comment posts via the obs-aw route

Install trigger-obs-aw client workflows from elastic/oblt-aw and remove the legacy direct lock invocation for gh-aw-estc-pr-buildkite-detective.
@fr4nc1sc0-r4m0n
fr4nc1sc0-r4m0n requested a review from a team as a code owner September 7, 2026 10:19
Copilot AI lite review requested due to automatic review settings September 7, 2026 10:19
@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n self-assigned this Sep 7, 2026

Copilot AI 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.

🟡 Changes recommended

The new workflows introduce security-sensitive patterns (mutable @main reusable workflow refs and broad contents: write permissions) that should be addressed or justified before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR migrates the “PR Buildkite Detective” GitHub status handler from the legacy elastic/ai-github-actions reusable workflow to the newer observability agentic workflow (obs-aw) routing, and adds additional obs-aw trigger entrypoints for other event types.

Changes:

  • Removed the legacy trigger-pr-buildkite-detective.yml workflow that directly invoked gh-aw-estc-pr-buildkite-detective.lock.yml.
  • Added a new status-triggered obs-aw entrypoint (trigger-obs-aw-status.yml) to route Buildkite failures through elastic/oblt-aw.
  • Added additional obs-aw entrypoint workflows for schedule, pull request, issues, and issue comments.
File summaries
File Description
.github/workflows/trigger-pr-buildkite-detective.yml Removes legacy PR Buildkite Detective workflow trigger.
.github/workflows/trigger-obs-aw-status.yml Adds obs-aw status trigger routing Buildkite failures via reusable workflow.
.github/workflows/trigger-obs-aw-schedule.yml Adds scheduled obs-aw trigger entrypoint.
.github/workflows/trigger-obs-aw-pull-request.yml Adds pull_request obs-aw trigger entrypoint.
.github/workflows/trigger-obs-aw-issues.yml Adds issues obs-aw trigger entrypoint.
.github/workflows/trigger-obs-aw-issue-comment.yml Adds issue_comment obs-aw trigger entrypoint.
Review details

Suppressed comments (4)

.github/workflows/trigger-obs-aw-schedule.yml:20

  • This reusable workflow is referenced at @main, which is mutable and can change behavior without review; this reduces auditability and increases supply-chain risk. Prefer pinning to an immutable tag or commit SHA (similar to other pinned actions in this repo, e.g. .github/workflows/catalog-info.yml:21 uses actions/checkout@v7).
    uses: elastic/oblt-aw/.github/workflows/obs-aw-event-schedule.yml@main # ratchet:exclude

.github/workflows/trigger-obs-aw-issue-comment.yml:20

  • This reusable workflow is referenced at @main, which is mutable and can change behavior without review; this reduces auditability and increases supply-chain risk. Prefer pinning to an immutable tag or commit SHA (consistent with other pinned actions in this repo, e.g. .github/workflows/run-updatecli.yml:25 uses actions/checkout@v7).
    uses: elastic/oblt-aw/.github/workflows/obs-aw-event-issue-comment.yml@main # ratchet:exclude

.github/workflows/trigger-obs-aw-pull-request.yml:20

  • This reusable workflow is referenced at @main, which is mutable and can change behavior without review; this reduces auditability and increases supply-chain risk. Prefer pinning to an immutable tag or commit SHA (consistent with other pinned actions in this repo, e.g. .github/workflows/run-updatecli.yml:38 pins updatecli/updatecli-action by SHA).
    uses: elastic/oblt-aw/.github/workflows/obs-aw-event-pull-request.yml@main # ratchet:exclude

.github/workflows/trigger-obs-aw-issues.yml:21

  • This reusable workflow is referenced at @main, which is mutable and can change behavior without review; this reduces auditability and increases supply-chain risk. Prefer pinning to an immutable tag or commit SHA (similar to other pinned actions in this repo, e.g. .github/workflows/run-updatecli.yml:25 uses actions/checkout@v7).
    uses: elastic/oblt-aw/.github/workflows/obs-aw-event-issues.yml@main # ratchet:exclude
  • Files reviewed: 6/6 changed files
  • Comments generated: 5
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

id-token: write
issues: write
pull-requests: write
uses: elastic/oblt-aw/.github/workflows/obs-aw-event-status.yml@main # ratchet:exclude
Comment on lines +12 to +15
permissions:
actions: read
contents: write
copilot-requests: write
Comment on lines +13 to +16
permissions:
actions: read
contents: write
copilot-requests: write
Comment on lines +12 to +15
permissions:
actions: read
contents: write
copilot-requests: write
Comment on lines +13 to +16
permissions:
actions: read
contents: write
copilot-requests: write
Drop the previously added trigger-obs-aw client templates; distribute-client-workflow will install those after control-plane registration merges.
Copilot AI review requested due to automatic review settings September 7, 2026 11:37
@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n changed the title Migrate PR Buildkite Detective onto obs-aw status route Remove legacy PR Buildkite Detective workflow Sep 7, 2026

Copilot AI 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.

🔵 Needs a closer look

It removes an operational workflow without adding the replacement in-repo, so safe merge timing depends on external/distributed workflow rollout to avoid a coverage gap.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@mrodm mrodm 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.

LGTM

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.

4 participants