Skip to content

chore: add debug build for scanner-v4#19753

Open
BradLugo wants to merge 1 commit intomasterfrom
blugo/scanner-v4-delve-support
Open

chore: add debug build for scanner-v4#19753
BradLugo wants to merge 1 commit intomasterfrom
blugo/scanner-v4-delve-support

Conversation

@BradLugo
Copy link
Copy Markdown
Contributor

@BradLugo BradLugo commented Apr 1, 2026

Description

Adds debug build options and a debug container image with delve for scanner-v4. Essentially copies the functionality from the main stackrox image.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

N/A

How I validated my change

Ran a local installation, built a debug image, swapped the scanner-v4-matcher image, then used roxdebug from github.com/stackrox/workflow.

❯ ./deploy/k8s/deploy-local.sh
❯ DEBUG_BUILD=yes make -C scanner image-scanner
❯ k -n stackrox set image deploy/scanner-v4-matcher matcher=<tag from above>
❯ roxdebug deploy/scanner-v4-matcher

From here, I connected my GoLand IDE via the debugging instructions from the main stackrox readme.

@BradLugo BradLugo requested a review from a team as a code owner April 1, 2026 16:31
@BradLugo BradLugo force-pushed the blugo/scanner-v4-delve-support branch from e19e2b1 to 01b62c4 Compare April 1, 2026 18:43
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.59%. Comparing base (c3cccf6) to head (01b62c4).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #19753   +/-   ##
=======================================
  Coverage   49.59%   49.59%           
=======================================
  Files        2756     2756           
  Lines      208036   208036           
=======================================
  Hits       103183   103183           
  Misses      97192    97192           
  Partials     7661     7661           
Flag Coverage Δ
go-unit-tests 49.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rhacs-bot
Copy link
Copy Markdown
Contributor

Images are ready for the commit at 01b62c4.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-526-g01b62c4507.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants