Skip to content

fix(cli): separate validation diagnostics from the spinner line [RED-1574] [ship] - #1621

Merged
sorccu merged 1 commit into
mainfrom
simo/red-1574-validation-spacing
Nov 26, 2026
Merged

sorccu merged 1 commit into
mainfrom
simo/red-1574-validation-spacing

Conversation

@sorccu

@sorccu sorccu commented Nov 26, 2026

Copy link
Copy Markdown
Member

Linear: RED-1574

When validation finds diagnostics, validate, test, pw-test, deploy and import plan printed the first diagnostic directly under the spinner line, and two blank lines before the closing message:

Validating project resources... ❌
✖ [ApiCheck:books-api] Invalid property value
...
  The current value is 40000.


✖ Your project is not valid.

AuthCommand.validateProject printed the diagnostics while the "Validating project resources" spinner was still running. oclif's ux.action holds back everything written to stdout and stderr while a spinner runs and prints it after the status line once the spinner stops. So the blank separator line from actionSuccess and actionFailure came after the diagnostics instead of before them.

This PR stops the spinner first, the same way BaseCommand.catch already does for InvalidConfigError. Output is now:

Validating project resources... ❌

✖ [ApiCheck:books-api] Invalid property value
...
  The current value is 40000.

✖ Your project is not valid.

I checked it against a scratch project for an invalid project and a project with warnings, in both non-TTY and TTY output. The new spec validate-project-output.spec.ts locks in the order, and it fails without the fix.

Docs: checkly/docs#881 shows the fixed output.

🤖 Generated with Claude Code

…1574]

validateProject printed diagnostics while the "Validating project resources"
spinner was running. oclif holds back output while a spinner runs and prints
it after the status line, so the first diagnostic came directly under that
line and the blank separator after the last one. Stop the spinner first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sorccu sorccu changed the title fix(cli): separate validation diagnostics from the spinner line [RED-1574] fix(cli): separate validation diagnostics from the spinner line [RED-1574] [ship] Nov 26, 2026
@sorccu
sorccu enabled auto-merge (squash) November 26, 2026 18:59

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved: ship/show PR from a same-repo branch.

@sorccu
sorccu merged commit 0d8b571 into main Nov 26, 2026
19 checks passed
@sorccu
sorccu deleted the simo/red-1574-validation-spacing branch November 26, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant