Skip to content

Conversation

@kiloconnect
Copy link
Contributor

@kiloconnect kiloconnect bot commented Dec 19, 2025

Summary

This PR modifies the test configuration to use verbose output in CI/PR workflows while keeping the local development experience unchanged.

Changes

Behavior

  • In CI/PR workflows: Tests will use verbose reporter for detailed output to help debug failures
  • Local development: Tests continue to use dot reporter for cleaner output
  • Manual override: Developers can still use --reporter=verbose flag locally if needed

Testing

The changes detect the CI environment variable which is automatically set by GitHub Actions. All test workflows in .github/workflows/code-qa.yml will benefit from this change.

Fixes the issue where test failures in CI don't provide enough detail to debug.

- Modified vitest-verbosity.ts to detect CI environment and use verbose reporter
- Updated vitest configs for packages/types, packages/cloud, and packages/telemetry
- Tests now use verbose reporter in CI for better debugging
- Local development experience remains unchanged with dot reporter
@changeset-bot
Copy link

changeset-bot bot commented Dec 19, 2025

⚠️ No Changeset found

Latest commit: a394bd4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor Author

@kiloconnect kiloconnect bot left a comment

Choose a reason for hiding this comment

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

✅ No Issues Found

4 files reviewed | Confidence: 95% | Recommendation: Merge

Review Details

Files:

  • src/utils/vitest-verbosity.ts - CI detection added to shared utility
  • packages/cloud/vitest.config.ts - Inline CI detection added
  • packages/telemetry/vitest.config.ts - Inline CI detection added
  • packages/types/vitest.config.ts - Inline CI detection added

Checked: Security, bugs, logic correctness, consistency

Notes:

  • CI detection logic is consistent across all files: process.env.CI === "true" || process.env.CI === "1" || Boolean(process.env.CI)
  • src/vitest.config.ts and webview-ui/vitest.config.ts already use resolveVerbosity() and will automatically benefit
  • cli/vitest.config.ts already uses verbose reporter by default (no changes needed)
  • Minor observation: Local fallback differs between resolveVerbosity() (uses "dot") and package configs (use "default"), but both are valid choices

Copy link
Contributor Author

@kiloconnect kiloconnect bot left a comment

Choose a reason for hiding this comment

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

✅ No New Issues

Changes since last review (commit 796805b) look good.

Latest commit (a394bd4): Removed cloud package changes and added kilocode_change markers - cosmetic/organizational changes only.

Review Details (3 files)

Files reviewed:

  • src/utils/vitest-verbosity.ts - Added comment markers
  • packages/telemetry/vitest.config.ts - Added comment markers
  • packages/types/vitest.config.ts - Added comment markers

Checked: Security, bugs, logic correctness

Notes: CI detection logic remains consistent and correct across all files.

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.

2 participants