PR #715 adds bakery wizcli scan but does not set --scan-context-id,
so Wiz falls back to its own default grouping for baseline comparison.
We need to design and implement a context-id scheme that groups scans
into stable per-artifact baselines (image, version/channel, OS, variant,
platform) without conflating unrelated builds or generating a new
baseline on every patch bump or rebuild.
An earlier draft in #715 (commits 54552bf, f8978da, a328320)
computed an ID like connect-2026-07-ubuntu-22-04-std-amd64 from image
name, release month (or dev channel), OS, variant, and platform, with
build metadata and Positron build-number suffixes stripped so patch
bumps update the same context in place. That logic was pulled out
before merge to keep #715 scoped to wiring the scan into CI; this
issue tracks getting the design and implementation right separately.
Scope:
- Decide the ID format for release, dev, and matrix versions
- Confirm how Wiz uses scan-context-id for baselining (repo + branch +
ID) and what granularity avoids false positives/negatives
- Reinstate
--scan-context-id in WizCLICommand, with an optional
CLI passthrough for explicit overrides
- Tests
Related:
PR #715 adds
bakery wizcli scanbut does not set--scan-context-id,so Wiz falls back to its own default grouping for baseline comparison.
We need to design and implement a context-id scheme that groups scans
into stable per-artifact baselines (image, version/channel, OS, variant,
platform) without conflating unrelated builds or generating a new
baseline on every patch bump or rebuild.
An earlier draft in #715 (commits 54552bf, f8978da, a328320)
computed an ID like
connect-2026-07-ubuntu-22-04-std-amd64from imagename, release month (or dev channel), OS, variant, and platform, with
build metadata and Positron build-number suffixes stripped so patch
bumps update the same context in place. That logic was pulled out
before merge to keep #715 scoped to wiring the scan into CI; this
issue tracks getting the design and implementation right separately.
Scope:
ID) and what granularity avoids false positives/negatives
--scan-context-idinWizCLICommand, with an optionalCLI passthrough for explicit overrides
Related:
wizcli#217