Skip to content

ci: add CI log analysis workflow and Flue agent#14726

Closed
NuroDev wants to merge 6 commits into
mainfrom
NuroDev/ci-log-analysis
Closed

ci: add CI log analysis workflow and Flue agent#14726
NuroDev wants to merge 6 commits into
mainfrom
NuroDev/ci-log-analysis

Conversation

@NuroDev

@NuroDev NuroDev commented Jul 16, 2026

Copy link
Copy Markdown
Member

Adds a Flue-powered CI failure analysis workflow for workers-sdk PRs.

This PR introduces a .flue source area with a ci-log-analyst agent and a ci-log-analysis workflow. When the main CI workflow fails or times out on a PR, the new GitHub Actions workflow downloads the failed run logs, runs the Flue workflow with the Node target, and posts or updates a sticky PR comment with the diagnosis. The comment includes a human-readable summary plus the structured JSON result so maintainers can see whether the failure looks actionable, formatting-related, or likely to be a flake.

The workflow uses the existing Cloudflare AI Gateway secrets (CF_AI_GATEWAY_ACCOUNT_ID, CF_AI_GATEWAY_NAME, and CF_AI_GATEWAY_TOKEN) and posts comments with GH_ACCESS_TOKEN, so the PR comment is attributed to workers-devprod instead of github-actions[bot]. It also keeps GitHub writes outside the agent itself: Flue analyzes local log files, while the workflow handles comment upserts through gh.

This also updates the workflow README and adds the Flue runtime/CLI and Valibot package metadata needed to run and typecheck the Flue source.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows: validated with pnpm exec tsc -p .flue/tsconfig.json --noEmit, pnpm exec flue build --target node, pnpm check:workflows, pnpm check:catalog, and targeted oxfmt --check runs.
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: this is internal repository automation; the workflow behavior is documented in .github/workflows/README.md.

A picture of a cute animal (not mandatory, but encouraged)

🦚

@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f2c71dc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@NuroDev NuroDev changed the title Add CI log analysis workflow and Flue agent ci: add CI log analysis workflow and Flue agent Jul 16, 2026
@NuroDev NuroDev added the ci:no-changeset-required Skip pull request checks for a valid changeset label Jul 16, 2026
…/ci-log-analysis

# Conflicts:
#	pnpm-lock.yaml
@pkg-pr-new

pkg-pr-new Bot commented Jul 16, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@14726

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@14726

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@14726

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14726

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@14726

miniflare

npm i https://pkg.pr.new/miniflare@14726

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@14726

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@14726

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@14726

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14726

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14726

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@14726

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@14726

wrangler

npm i https://pkg.pr.new/wrangler@14726

commit: f2c71dc

@NuroDev

NuroDev commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

Closing as this was a good first experiment. Work has been shifted to work on RM-28983

@NuroDev NuroDev closed this Jul 21, 2026
@github-project-automation github-project-automation Bot moved this from Untriaged to Done in workers-sdk Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:no-changeset-required Skip pull request checks for a valid changeset

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants