test(init): regression test for only-Tracing blurb bug#983
Merged
Conversation
Documents the fix: the LLM was echoing human-readable labels in the feature field instead of canonical IDs, so only performanceMonitoring (Tracing) matched the Map lookup. The server-side fix maps blurbs positionally so canonical IDs are guaranteed. This test verifies all blurbs render when the server returns canonical IDs correctly. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Contributor
Codecov Results 📊✅ 7012 passed | Total: 7012 | Pass Rate: 100% | Execution Time: 0ms 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 14169 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 77.09% 77.12% +0.03%
==========================================
Files 320 320 —
Lines 61960 61937 -23
Branches 0 0 —
==========================================
+ Hits 47768 47768 —
- Misses 14192 14169 -23
- Partials 0 0 —Generated by Codecov Action |
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.
Summary
After #982 landed,
sentry initshowed only "Tracing" in the blurbs table regardless of which features were enabled. The root cause was server-side (fixed in getsentry/cli-init-api#159) — the LLM was echoing human-readable labels ("Error Monitoring") in thefeaturefield instead of canonical IDs ("errorMonitoring"), so the CLI Map lookup only found the one entry that happened to match (performanceMonitoring→ "Tracing").This PR adds a CLI-side regression test that documents the fix and guards against a recurrence: verifies all blurbs render when the server returns canonical feature IDs.
Test Plan
bun test test/lib/init/formatters.test.ts— new test passes.