remove bbolt integrity check entirely - #115
Conversation
… skip Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
@piob-io this seems like a good fix for the symptom but the value of these bbolt checks existing is questionable now. The context here is that we added these to chase down a notorious corruption bug that was fixed in https://linear.app/blacksmith-sh/issue/BLA-3252/stickydisk-copyup-corruption-investigation#comment-b4dffbf7 So we could consider dropping these but after checking they dont fire legitimately for customers anymore |
|
Data point on whether they still fire legitimately: I checked |
|
Cleaning this up sounds great to me. Sorry for double-load during the transition, but we need second PR to merge into the release/v2 branch (nothing to re-tag for that one, just targeted branch merge). |
|
release/v2 counterpart is up: #116 (CI green). |
|
Devin, as discussed, just drop the whole corruption check in both PRs |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Done — dropped the integrity check entirely in both PRs (this one and #116): removed |
|
Update PR descriptions, they look stale. |
Summary
The post-step bbolt integrity check runs under
systemd-run --scope -p RuntimeMaxSec=6s. Oncecache.dbgets large (~96–112 MB for supabase/supabox), the cold-read check exceeds 6s, systemd SIGTERMs it (exit 143), and the unhandled exit code fell through to the corruption branch →Skipping sticky disk commit due to integrity check failureon every run, permanently freezing the builder cache. Observed across 10 repos in a single 3-hour window; zero genuine bbolt corruption reports in fleet logs over the same period.Per discussion, the check was added to chase the copy-up corruption bug fixed in BLA-3252 and no longer fires legitimately — so this drops it entirely rather than special-casing exit 143:
checkBoltDbIntegrityand its commit-gating (integrityCheckPassed) in the post stepreporter.reportIntegrityCheckFailureskip-integrity-checkinput kept inaction.yml(marked deprecated, no effect) so existing workflows don't warnlogDatabaseHashesretained, relabeled "before unmount"dist/rebuilt withpnpm build. release/v2 counterpart: #116.Link to Devin session: https://app.devin.ai/sessions/35c21220e53a4e43a8287135eba4351d
Requested by: @Trent-TSE
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled. (Staging)