ci: add CI log analysis workflow and Flue agent#14726
Closed
NuroDev wants to merge 6 commits into
Closed
Conversation
|
…/ci-log-analysis # Conflicts: # pnpm-lock.yaml
@cloudflare/autoconfig
@cloudflare/config
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
Member
Author
|
Closing as this was a good first experiment. Work has been shifted to work on RM-28983 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Flue-powered CI failure analysis workflow for workers-sdk PRs.
This PR introduces a
.fluesource area with aci-log-analystagent and aci-log-analysisworkflow. When the mainCIworkflow 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, andCF_AI_GATEWAY_TOKEN) and posts comments withGH_ACCESS_TOKEN, so the PR comment is attributed toworkers-devprodinstead ofgithub-actions[bot]. It also keeps GitHub writes outside the agent itself: Flue analyzes local log files, while the workflow handles comment upserts throughgh.This also updates the workflow README and adds the Flue runtime/CLI and Valibot package metadata needed to run and typecheck the Flue source.
pnpm exec tsc -p .flue/tsconfig.json --noEmit,pnpm exec flue build --target node,pnpm check:workflows,pnpm check:catalog, and targetedoxfmt --checkruns..github/workflows/README.md.A picture of a cute animal (not mandatory, but encouraged)
🦚