What is the Upgrade Guard and when should I use it? #30
Answered
by
ddsha441981
ddsha441981
asked this question in
Q&A
|
We are planning a Spring Boot 3.3 to 4.0 upgrade. I read that autoconfigurations can silently stop matching. How does WireDoctor catch this? |
Answered by
ddsha441981
Jul 29, 2026
Replies: 1 comment
|
The Upgrade Guard exists precisely for this scenario. The failure mode it catches: you bump Boot, an autoconfiguration quietly stops matching ( WireDoctor snapshots Boot's condition report (every autoconfiguration decision with its condition message) into the baseline, then diffs it across builds: # application-ci.properties
wiredoctor.baseline=wiredoctor-baseline.json
wiredoctor.fail-on=condition-changedWorkflow for your 3.3 → 4.0 upgrade:
The condition snapshot is also browsable anytime in the report's Conditions tab (tabbed, filterable). Guide: Upgrade Guard. |
0 replies
Answer selected by
ddsha441981
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Upgrade Guard exists precisely for this scenario. The failure mode it catches: you bump Boot, an autoconfiguration quietly stops matching (
matched → notMatched), the feature it backed silently disappears, and nobody notices until production.WireDoctor snapshots Boot's condition report (every autoconfiguration decision with its condition message) into the baseline, then diffs it across builds:
Workflow for your 3.3 → 4.0 upgrade:
wiredoctor.baseline-write=true), commit it.