Skip to content

ci(coverity): surface download errors instead of bare exit code#447

Closed
djowel wants to merge 1 commit into
masterfrom
fix/coverity-download-error
Closed

ci(coverity): surface download errors instead of bare exit code#447
djowel wants to merge 1 commit into
masterfrom
fix/coverity-download-error

Conversation

@djowel

@djowel djowel commented Jun 8, 2026

Copy link
Copy Markdown
Member

Problem

The scheduled Coverity scan has been failing at the Download Coverity Build Tool step with only Process completed with exit code 8 (example run).

Exit code 8 from wget means "Server issued an error response"scan.coverity.com returned an error instead of the build-tool tarball. The step used wget -q, so the actual cause (bad/expired token, quota exceeded, or a server-side error) was hidden.

Change

  • Use wget -S to print the HTTP response headers in the log.
  • Validate that the download is actually a gzip archive before unpacking. Coverity serves a plain error page (sometimes with HTTP 200) when the token is wrong, so this catches that case and dumps the server response to the log.

This does not fix the underlying download failure — it makes the next run report why it failed. The most likely root cause is an invalid/expired COVERITY_SCAN_TOKEN secret or a Coverity Scan quota/server issue. Trigger via Run workflow (workflow_dispatch) after merge to see the real error.

🤖 Generated with Claude Code

The "Download Coverity Build Tool" step used `wget -q`, which hid the
server's response. When scan.coverity.com rejected the request (bad/expired
token, quota, or server error) the step failed with only `exit code 8`.

- Use `wget -S` to print the HTTP response headers.
- Validate the download is actually a gzip archive (Coverity serves an
  error page on a bad token), and dump the server response on failure.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@djowel

djowel commented Jun 9, 2026

Copy link
Copy Markdown
Member Author

Superseded by #448 — removing the Coverity workflow entirely instead of diagnosing it.

@djowel djowel closed this Jun 9, 2026
@djowel djowel deleted the fix/coverity-download-error branch June 9, 2026 02:37
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