Skip to content

[ci] Add minimal asan build#22618

Open
silverweed wants to merge 4 commits into
root-project:masterfrom
silverweed:ci_asan
Open

[ci] Add minimal asan build#22618
silverweed wants to merge 4 commits into
root-project:masterfrom
silverweed:ci_asan

Conversation

@silverweed

@silverweed silverweed commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Using the alma10 image.

IMPORTANT: asan currently only works with gcc (or at least, that was the case on my machine).

@silverweed silverweed requested a review from jblomer June 15, 2026 15:18
@silverweed silverweed self-assigned this Jun 15, 2026
@silverweed silverweed requested a review from dpiparo as a code owner June 15, 2026 15:18
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Test Results

2 601 tests   2 594 ✅  9h 21m 44s ⏱️
    1 suites      0 💤
    1 files        7 ❌

For more details on these failures, see this check.

Results for commit b7bfb1c.

♻️ This comment has been updated with latest results.

@dpiparo

dpiparo commented Jun 15, 2026

Copy link
Copy Markdown
Member

this is a great initiative. To optimise, one could even turn off all other builds while in the PR with a specific commit, so that only asan can be tested, the necessary fixes added, and then all other builds re-added before merging

@dpiparo dpiparo added the clean build Ask CI to do non-incremental build on PR label Jun 15, 2026
@dpiparo dpiparo closed this Jun 15, 2026
@dpiparo dpiparo reopened this Jun 15, 2026

@ferdymercury ferdymercury left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! Could you port the changes from https://github.com/root-project/root/pull/19636/changes into here?
The documentation fix for asan build option and portentially the Halton error flag to get s full overview at once
Thks!

Comment thread .github/workflows/root-ci.yml Outdated
Comment thread .github/workflows/root-ci.yml Outdated
option(roottest "Build roottest (implies testing=ON)" OFF)
option(testing "Enable testing with CTest" OFF)
option(asan "Build ROOT with address sanitizer instrumentation" OFF)
option(asan "Build ROOT with address sanitizer instrumentation (only GCC is currently supported)" OFF)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IIRC I managed to enable ASAN build on Windows (TBC)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should I remove the change or do you want to verify if it still works?

@jblomer jblomer 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.

That is great!

I think we should exclude the tests flagged by ASAN to get this merged green. Then, we add the list of failing tests to an issue so that we remember to fix up. After the fix up, I think we should slowly add more components to the ASAN build.

@jblomer jblomer 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.

LGTM!

Test failures should be triaged / tests excluded before merging.

@silverweed silverweed force-pushed the ci_asan branch 2 times, most recently from 4ec3351 to b7bfb1c Compare June 17, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clean build Ask CI to do non-incremental build on PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants