Repository navigation
Commit 0d4f82d
fix(cli): Silence set-commits repository errors in issue reporting (#2151)
## Summary
0.48.0 made `release set-commits --auto` read the repository from CI
variables and match it by name. The failures that are left on 0.48/0.49
are org setup problems, and they are still captured as Sentry issues:
- **`repository` field (CLI-17R):** `--auto` finds no repository, for
example on a Vercel preview build or a Docker build without `.git` and
without CI repository variables. Or the org has not added the matching
repository in Sentry. This came to about 440 events on 0.48.0 and 0.49.0
over 30 days.
- **`commit.repository` field (CLI-4G3, formerly CLI-2SK):** a
`--commit` repository that the org doesn't have in Sentry, or an org
with no repositories at all. This came to about 46 events on 0.49.0.
The user gets an error that says how to fix it in each case. Most of
these runs come through the bundler plugins with
`shouldNotThrowOnFailure`, so builds keep going.
### Key Changes
- `classifySilenced` treats `ValidationError`s with field `repository`
or `commit.repository` as `user_validation`. Other `ValidationError`s
and API errors from the same flow are still captured.
- `cli.error.silenced` now records `validation_field` for silenced
`ValidationError`s. That keeps the volume of each case measurable after
it stops creating issues.
<!-- junior-request-attribution:start -->
via @betegon.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A13af9393ba498bf4b925a816a4a5290f -->
--
[View Session in
Sentry](https://sentry.sentry.io/explore/conversations/agent%3A13af9393ba498bf4b925a816a4a5290f/?project=4510944073809921)
<!-- junior-session-footer:end -->
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: bete <28983162+betegon@users.noreply.github.com>1 parent 6a68329 commit 0d4f82d
2 files changed
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
| |||
198 | 210 | | |
199 | 211 | | |
200 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
201 | 216 | | |
202 | 217 | | |
203 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
369 | 390 | | |
370 | 391 | | |
371 | 392 | | |
| |||
645 | 666 | | |
646 | 667 | | |
647 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
648 | 687 | | |
649 | 688 | | |
650 | 689 | | |
| |||
0 commit comments