Skip to content

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

Open
hebasto wants to merge 1 commit into
bitcoin:masterfrom
hebasto:260812-boost-debug
Open

hebasto wants to merge 1 commit into
bitcoin:masterfrom
hebasto:260812-boost-debug

Conversation

@hebasto

@hebasto hebasto commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

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.

@hebasto hebasto added the Tests label Aug 12, 2026
@DrahtBot

DrahtBot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

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.

@fanquake

Copy link
Copy Markdown
Member

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 hebasto changed the title ci: Define BOOST_MULTI_INDEX_ENABLE_SAFE_MODE for debug builds ci: Define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING for debug builds Aug 12, 2026
@hebasto
hebasto force-pushed the 260812-boost-debug branch from 3929283 to df228f8 Compare August 12, 2026 12:46
@hebasto

hebasto commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

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

Copy link
Copy Markdown
Member

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

hebasto commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

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.

@hebasto
hebasto force-pushed the 260812-boost-debug branch 2 times, most recently from d34bfb5 to cfdcc6d Compare August 16, 2026 10:12
@hebasto hebasto changed the title ci: Define BOOST_MULTI_INDEX_ENABLE_INVARIANT_CHECKING for debug builds ci: Enable Boost.MultiIndex invariant-checking mode Aug 16, 2026

@jeanpablojp jeanpablojp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approach ACK

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

@hebasto

hebasto commented Oct 2, 2026

Copy link
Copy Markdown
Member Author

Rebased to resolve a conflict with the merged #36052.

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.
@hebasto
hebasto force-pushed the 260812-boost-debug branch from da74d32 to 4ac1a80 Compare November 4, 2026 21:50
@hebasto

hebasto commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Rebased to resolve a conflict with the merged #36679.

@fanquake

fanquake commented Dec 1, 2026

Copy link
Copy Markdown
Member

@maflcko any thoughts here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants