feat(naoru-ai): add naoru AI failure diagnosis to core build/deploy workflows#397
Open
clouddrove-ci wants to merge 1 commit into
Open
feat(naoru-ai): add naoru AI failure diagnosis to core build/deploy workflows#397clouddrove-ci wants to merge 1 commit into
clouddrove-ci wants to merge 1 commit into
Conversation
Adds an opt-in naoru job (if: failure()) to tf-workflow, docker-build-push, helm-deploy, cf-deploy, and ci. On a failed run it reads the failed job's logs and posts a root-cause + fix (PR comment, or Step Summary on dispatch/schedule). Backward compatible: the step is gated on NAORU_API_KEY being set, so callers that don't provide the secret get a no-op (skipped) step. naoru itself is fail-safe and never fails the build.
Member
Author
|
Retitled with scope and added labels to satisfy PR validation. |
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.
What
Adds an opt-in naoru job to 5 core reusable workflows:
tf-workflow,docker-build-push,helm-deploy,cf-deploy,ci.On a failed run, naoru reads the failed job's logs (+ PR diff when present), asks an LLM for the root cause + a concrete fix, and posts it:
workflow_dispatch/scheduleruns (no PR).naoru: https://github.com/clouddrove/naoru — comment-only, never fails the build.
How it's wired
Each workflow gets a final job:
Backward compatibility
NAORU_API_KEYset → the step is skipped (gated on the secret), job is a green no-op. Existing callers are unaffected.NAORU_API_KEYas an optional secret;ci.yml(not a reusable workflow) uses the repo secret directly.To enable (per consuming repo/org)
NAORU_API_KEYsecret (OpenRouter key by default; provider/model overridable).secrets: inheritor explicitNAORU_API_KEY:).Scope
Core build/deploy set first. Scanners (prowler/tfsec/checkov),
tf-drift(drift = expected), and PR-automation workflows intentionally excluded. Easy to extend later — same 1 job per workflow.