Skip to content

fix(progress): remove duplicate 'Post-processing scan results...' log#705

Merged
abraemer merged 1 commit intomainfrom
fix/duplicate-post-processing-log
Apr 16, 2026
Merged

fix(progress): remove duplicate 'Post-processing scan results...' log#705
abraemer merged 1 commit intomainfrom
fix/duplicate-post-processing-log

Conversation

@abraemer
Copy link
Copy Markdown
Collaborator

Summary

  • start_post_scan() was called 3 times in main.rs, causing "Post-processing scan results..." to print multiple times in verbose mode
  • Restructured the scan phases so each phase has a single start/finish pair: post-scan (filtering, backfill, policy), assembly (assemble, provenance, reference following), finalize (path normalization, detections, references)
  • Assembly steps are now entirely skipped when --no-assemble is set — no spurious log messages or no-op work
  • Path normalization moved to finalize phase since it's an output preparation step, not assembly

How I tested

  • cargo check / clippy / rustfmt pass
  • Ran verbose scan on testdata/about/: "Post-processing scan results..." appears exactly once
  • Ran with --no-assemble: assembly section is completely absent from output

start_post_scan() was called three times in main.rs, causing the
phase announcement to print multiple times in verbose mode. The second
and third calls wrapped post-assembly steps that were mislabeled as
post-scan steps when they logically belong to the assembly phase.

- Add assembly_step() to ScanProgress (mirrors post_scan_step/finalize_step)
- Move path normalization, package license provenance backfill, and
  package reference following into the assembly phase
- Move finish_assembly() to after all assembly steps
- start_post_scan() now called exactly once, so the announcement prints once
@abraemer abraemer merged commit 1dd02f8 into main Apr 16, 2026
14 checks passed
@abraemer abraemer deleted the fix/duplicate-post-processing-log branch April 16, 2026 09:55
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