feat(cli): show per-attempt retry detail in checks get [AI-340]#1345
Open
miliberlin wants to merge 9 commits into
Open
feat(cli): show per-attempt retry detail in checks get [AI-340]#1345miliberlin wants to merge 9 commits into
miliberlin wants to merge 9 commits into
Conversation
…hanges Apply Michelle's latest local edits to the AI-340 branch: - packages/cli/src/commands/checks/get.ts - packages/cli/src/formatters/check-result-detail.ts - packages/cli/src/formatters/__tests__/check-result-detail.spec.ts - packages/cli/src/commands/__tests__/checks-get-attempts.spec.ts (new) - packages/cli/src/commands/__tests__/checks-get-flags.spec.ts (new) Committed by Angie on behalf of Michelle (AI-340).
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
checkly checks get <check-id> --result <result-id> --include-attempts, which renders the full retry sequence for a result instead of just the final outcome.A single check run produces one
FINALresult plus oneATTEMPTresult for each earlier failed try, all sharing asequenceId. By default only theFINALresult is shown; this flag surfaces the attempts.How
sequenceIdfilter, so attempts are fetched viaresultType=ALLin a bounded time window anchored at the result and grouped client-side bysequenceId(ordered oldest-first, so index = run number).attempts === 0).FINALrow marked(final). Works indetail,md, andjson(jsonemits{ result, attempts }).Backend dependencies (both merged)
resultType=ALLnow returns the full FINAL+ATTEMPT sequence (was returning empty).Changes
rest/check-results.ts—resultTypeacceptsALL; documentedfrom/toas UNIX seconds; addederrorGroupIds.formatters/check-result-detail.ts—groupAttemptsBySequence,extractResultErrorSummary,formatAttemptsSection; optionalextraSectionsonformatResultDetailWithNavigation.commands/checks/get.ts—--include-attemptsflag (dependsOn: result), windowed fetch + grouping, per-attempt nav hints.ai-context/references/investigate-checks.md— documents the flag.Testing
./bin/run checks get <id> --result <rid> --include-attempts.tsc --noEmitandeslintclean.🤖 Generated with Claude Code