Add RCA support for test session error groups#1303
Merged
Conversation
1aaf988 to
b84ba54
Compare
b84ba54 to
92b5a98
Compare
| import chalk from 'chalk' | ||
| import { AuthCommand } from '../authCommand' | ||
| import { outputFlag } from '../../helpers/flags' | ||
| import { normalizeFlagAliases, outputFlag } from '../../helpers/flags.js' |
Contributor
There was a problem hiding this comment.
worth noting the js imports ? in an agents.md
Contributor
Author
There was a problem hiding this comment.
That's been an ask from @sorccu until we make the big major upgrade. That's how I understood it
Contributor
Author
There was a problem hiding this comment.
So I don't think this will stay like this for long
MichaelHogers
approved these changes
May 19, 2026
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 changed
Adds
checkly rca run --test-session-error-group <id>support alongside the existing--error-groupflow.POST /v1/root-cause-analyses/test-session-error-groups/{testSessionErrorGroupId}for the new source type.normalizeFlagAliases()helper for the multi-character-tealias instead of command-local argv rewriting.Release-transition import note
Simo mentioned that new local imports should use
.jsextensions before the next major release. New or modified local imports in this PR now use.jsextensions, including./test-session-error-groups.js,../../helpers/flags.js, and the new helper test import.Validation
npx eslint packages/cli/src/commands/rca/run.ts packages/cli/src/formatters/rca.ts packages/cli/src/formatters/__tests__/rca.spec.ts packages/cli/src/rest/api.ts packages/cli/src/rest/rca.ts packages/cli/src/rest/test-session-error-groups.ts packages/cli/src/helpers/flags.ts packages/cli/src/helpers/__tests__/flags.spec.tsnpm exec --workspace packages/cli -- vitest --run src/formatters/__tests__/rca.spec.ts src/helpers/__tests__/flags.spec.tsnpm run prepack --workspace packages/clinpm run prepare:dist --workspace packages/clicurrently fails on an unrelated existing issue insrc/auth/index.ts:jwt-decodehas no exported memberjwtDecodein the installed dependency/type shape.