Skip to content

CI: fix ASan shard getting killed - #9615

Open
daywalker90 wants to merge 3 commits into
ElementsProject:masterfrom
daywalker90:stream-mem-usage
Open

daywalker90 wants to merge 3 commits into
ElementsProject:masterfrom
daywalker90:stream-mem-usage

Conversation

@daywalker90

@daywalker90 daywalker90 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

add logging of memory usage instead of the dmesg step which would never trigger on a VM OOM kill. Also identified all tests using alot of memory during ASan and scaled them down. Also put them in the same xdist group so they run in serial.

Changelog-None

@daywalker90
daywalker90 marked this pull request as draft October 9, 2026 14:53
`if: failure()` does not trigger when the VM gets killed, neither would
`if: always()`. Instead we print used/available memory and the top five
processes by total RSS every 15 seconds during the test step, so the
readings before a kill survive in the job log. Per-process RSS alone was
misleading since many lightningd processes each show small RSS.

Changelog-None
test_parallel_opens starts about 600 channeld processes at full size.
Under ASan that peaks near 33 GB, more than a 16 GB CI runner has, so
the sanitizer shard is killed. Use 2 pairs x 10 opens when ASAN=1. The
code path is unchanged and the full size still runs everywhere else.

test_funding_cancel_race peaks near 15 GB PSS under ASan with 20 nodes,
close to the 16 GB limit. Use 10 nodes when ASAN=1 (peak about 8 GB).
The race is still exercised against each node.
Under ASan a handful of tests each need several GB and some reach
15-20 GB. When they land in the same shard and run together, the
shard is killed by the 16 GB runner. Mark them xdist_group('heavy')
and run the ASan/UBSan job with --dist loadgroup so they share one
worker and never overlap. Other jobs do not use loadgroup, so the
marker has no effect there.
@daywalker90 daywalker90 changed the title CI: stream memory usage during Valgrind/ABSan CI: fix ASan shard getting killed Oct 12, 2026
@daywalker90
daywalker90 marked this pull request as ready for review October 12, 2026 17:12
@daywalker90
daywalker90 requested a review from Lagrang3 as a code owner October 12, 2026 17:12
@daywalker90
daywalker90 requested a review from Andezion October 12, 2026 17:12

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant