ci: Enable Boost.MultiIndex invariant-checking mode #35957

Open
hebasto wants to merge 1 commit from 260812-boost-debug into master AGit
hebasto commented 2026-08-12 12:26:23 +00:00 (Migrated from github.com)

From the Boost.MultiIndex docs:

When this mode is in effect, all public functions of Boost.MultiIndex
will perform post-execution tests aimed at ensuring that the basic
internal invariants of the data structures managed are preserved.

It is recommended that users of Boost.MultiIndex always set the
invariant-checking mode in debug builds.

Define it in the two jobs that already define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE. The "MSAN, fuzz" job also defines safe mode but is left unchanged, as invariant checking would push it past the 240-minute limit on the Warp runner.

From the Boost.MultiIndex [docs](https://www.boost.org/doc/libs/latest/libs/multi_index/doc/tutorial/debug.html#invariant_check): > When this mode is in effect, all public functions of Boost.MultiIndex > will perform post-execution tests aimed at ensuring that the basic > internal invariants of the data structures managed are preserved. > > It is recommended that users of Boost.MultiIndex always set the > invariant-checking mode in debug builds. Define it in the two jobs that already define `BOOST_MULTI_INDEX_ENABLE_SAFE_MODE`. The "MSAN, fuzz" job also defines safe mode but is left unchanged, as invariant checking would push it past the 240-minute limit on the Warp runner.
DrahtBot commented 2026-08-12 12:26:31 +00:00 (Migrated from github.com)

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
Approach ACK jeanpablojp

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

No conflicts as of last run.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/35957 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/35957.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/35957#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. | Type | Reviewers | | ---- | --------- | | Approach ACK | [jeanpablojp](https://github.com/bitcoin/bitcoin/pull/35957#pullrequestreview-4997312929) | If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore. <!--174a7506f384e20aa4161008e828411d--> ### Conflicts No conflicts as of last run. <!--5faf32d7da4f0f540f40219e4f7537a3-->
fanquake commented 2026-08-12 12:30:49 +00:00 (Migrated from github.com)

ci: Define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE

This is already defined? Shouldn't the commit message be "ci: Define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING for debug builds"?

> ci: Define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE This is already defined? Shouldn't the commit message be "ci: Define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING for debug builds"?
hebasto commented 2026-08-12 12:46:47 +00:00 (Migrated from github.com)

ci: Define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE

This is already defined? Shouldn't the commit message be "ci: Define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING for debug builds"?

Thanks! Fixed.

> > ci: Define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE > > This is already defined? Shouldn't the commit message be "ci: Define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING for debug builds"? Thanks! Fixed.
fanquake commented 2026-08-13 09:03:21 +00:00 (Migrated from github.com)
> https://github.com/bitcoin/bitcoin/actions/runs/31598051874/job/94118405886?pr=35957 Looks like this times out the MSAN fuzz job. How long did it take when you tested it locally?
hebasto commented 2026-08-13 14:39:22 +00:00 (Migrated from github.com)

https://github.com/bitcoin/bitcoin/actions/runs/31598051874/job/94118405886?pr=35957

Looks like this times out the MSAN fuzz job. How long did it take when you tested it locally?

It took 214 min on my machine with 16 cores.

> > https://github.com/bitcoin/bitcoin/actions/runs/31598051874/job/94118405886?pr=35957 > > Looks like this times out the MSAN fuzz job. How long did it take when you tested it locally? It took 214 min on my machine with 16 cores.
jeanpablojp (Migrated from github.com) reviewed 2026-08-21 20:45:27 +00:00
jeanpablojp (Migrated from github.com) left a comment

Approach ACK

Ran the msan fuzz job here too, 16 threads, 208 min. It matches your 214.

Approach ACK Ran the msan fuzz job here too, 16 threads, 208 min. It matches your 214.
jeanpablojp (Migrated from github.com) commented 2026-08-21 20:45:28 +00:00

The run that timed out died with "exceeded the maximum execution time of 3h0m0s", and ci.yml has timeout-minutes: 180 for this job. So 180 here, not 240. Doesn't change the conclusion, just the number.

The run that timed out died with "exceeded the maximum execution time of 3h0m0s", and `ci.yml` has `timeout-minutes: 180` for this job. So 180 here, not 240. Doesn't change the conclusion, just the number.
hebasto (Migrated from github.com) reviewed 2026-08-22 09:33:17 +00:00
hebasto (Migrated from github.com) commented 2026-08-22 09:33:17 +00:00
Please check out https://github.com/bitcoin/bitcoin/actions/runs/31892109754/job/95029817426 that [used](https://github.com/bitcoin/bitcoin/commit/d34bfb5871038d9fb32c4ffe97ff61e54cdf1242) `timeout-minutes: 240`.
jeanpablojp (Migrated from github.com) reviewed 2026-08-22 10:55:36 +00:00
jeanpablojp (Migrated from github.com) commented 2026-08-22 10:55:36 +00:00

Ah, hadn't seen that run. I'd gone looking in ci.yml and found 180 for this job, that's where my question came from. Thanks for clarifying.

Ah, hadn't seen that run. I'd gone looking in `ci.yml` and found 180 for this job, that's where my question came from. Thanks for clarifying.
DrahtBot commented 2026-10-02 10:26:22 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
First-time contributor

No verified findings are available from this review.

Review coverage was incomplete.


Reviewed: 4ac1a8089be1 · Full review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:4d44b6ffa09c54db24f8f0ab27ae388beae06a733efcae741ca64db76bb1c938:7efd3c3ba41667382004cfa7a7db56605da7d8f9b7ab69bc483f27117390ba48 --> <!-- ralph-base:0e38ad26af922abdc0fc36c9379e17efd2a72b80 --> <!-- ralph-head:4ac1a8089be1d3ec55c865bb584aed8a68dea01e --> <!-- ralph-case:d6db2d56d8e8527d1485744611a1916e7018cb5667c1071ac4cc07ba9e6cc0b1 --> No verified findings are available from this review. Review coverage was incomplete. <!-- Review tier: standard --> --- Reviewed: [`4ac1a8089be1`](<https://git.fish.foo/bitcoin/bitcoin/commit/4ac1a8089be1d3ec55c865bb584aed8a68dea01e>) · [Full review report](<https://review.fish.foo/traces/35957-4ac1a8089be1d3ec55c865bb584aed8a68dea01e-2172-3.html>) · [Previous reports](<https://review.fish.foo/traces/35957/>) [permalink](<https://review.fish.foo/traces/35957-4ac1a8089be1d3ec55c865bb584aed8a68dea01e-2172-3.html>)
hebasto commented 2026-10-02 10:46:22 +00:00 (Migrated from github.com)

Rebased to resolve a conflict with the merged bitcoin/bitcoin#36052.

Rebased to resolve a conflict with the merged bitcoin/bitcoin#36052.
DrahtBot commented 2026-11-04 18:11:20 +00:00 (Migrated from github.com)

🐙 This pull request conflicts with the target branch and needs rebase.

<!--cf906140f33d8803c4a75a2196329ecb--> 🐙 This pull request conflicts with the target branch and [needs rebase](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#rebasing-changes).
hebasto commented 2026-11-04 21:51:54 +00:00 (Migrated from github.com)

Rebased to resolve a conflict with the merged bitcoin/bitcoin#36679.

Rebased to resolve a conflict with the merged bitcoin/bitcoin#36679.
fanquake commented 2026-12-01 15:31:41 +00:00 (Migrated from github.com)

@maflcko any thoughts here?

@maflcko any thoughts here?
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!35957
No description provided.