Commit 29bbc56
Raise failure on SBOM fetch errors (#288)
* fix(core): raise on SBOM fetch failure instead of writing empty reports (CE-362)
get_sbom_data returned {} when the full-scan stream fetch failed, so
report generation continued and produced empty GitLab dependency
scanning, license, and SARIF output with exit code 0. Raise APIFailure
instead so the failure goes through the CLI's existing API-error
handling (exit code 3 by default, still exit 0 with
--disable-blocking).
Bump the socketdev floor to 3.4.2, the bundled release that adds the
missing purl types (e.g. "generic") and per-artifact parse resilience
that caused this failure mode. Merge after socketdev 3.4.2 is on PyPI.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: lock socketdev 3.4.2
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: bump version to 2.5.11
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* ci(e2e): retry reachability on empty results, upload diagnostics on failure
The e2e-reachability job intermittently fails with 'no components with
alerts in .socket.facts.json': the tier-1 reachability backend can
return empty results while the CLI reports success (ENG-5093), and the
same flake has hit unrelated PRs.
- Add a retry-probe hook to the e2e matrix: entries that define it get
up to 3 scan attempts, retrying only when the probe says the output
looks incomplete. Persistent failures still fail via the validate
step. Each retry emits a warning annotation and a step-summary line
so flake frequency stays visible.
- Add tests/e2e/reach-facts-probe.sh: exits 0 when the facts file has
alerted components, non-zero (retry) when empty or missing.
- Upload /tmp/e2e-output.log, SARIF/GitLab outputs, and facts files as
artifacts when any e2e job fails, so flakes are diagnosable without
a re-run.
Also bump version to 2.6.2 (2.6.0 and 2.6.1 are being released ahead
of this PR).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: require socketdev 3.5.0
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Drop ticket references from e2e comments and note the retry hardening in the changelog
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
* Move e2e retry changelog entry out and drop remaining ticket reference
The e2e retry hardening ships with the dependency pinning PR instead,
so its changelog entry moves there.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
* docs: changelog phrasing tweak
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 7566334 commit 29bbc56
6 files changed
Lines changed: 42 additions & 7 deletions
File tree
- socketsecurity
- core
- tests/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
3 | 16 | | |
4 | 17 | | |
5 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
280 | 298 | | |
281 | 299 | | |
282 | 300 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments