8000 Fix flaky PROCESS_LIST listing test by bergie · Pull Request #1088 · noflo/noflo · GitHub
[go: up one dir, main page]

Skip to content

Fix flaky PROCESS_LIST listing test - #1088

Merged
bergie merged 1 commit into
masterfrom
fix-listing-poll
Oct 16, 2026
Merged

bergie merged 1 commit into
masterfrom
fix-listing-poll

Conversation

@bergie
@bergie bergie commented Oct 16, 2026
Copy link
Copy Markdown
Member

The listing handler awaits the graph epoch hash, and a first epoch is a WebCrypto digest resolving on its own event-loop turn — so the reply does not reliably arrive within the one setTimeout(0) tick the test helper allowed. Under CI load, with the network running and its IIP delivery competing for the loop, the tick could pass before the crypto callback landed, leaving replies[0] undefined and the assertions reading .entries of nothing.

The helper now polls for a decodable 0x45 reply with a bounded budget instead of assuming one macrotask. The other one-tick waits in the spec guard synchronous handlers followed by an explicit telemetry flush, so they stay as they are.

The listing handler awaits the graph epoch hash, and a first epoch is
a WebCrypto digest resolving on its own event-loop turn — so the reply
does not reliably arrive within the one setTimeout(0) tick the test
helper allowed. Under CI load, with the network running and its IIP
delivery competing for the loop, the tick could pass before the crypto
callback landed, leaving replies[0] undefined and the assertions
reading .entries of nothing.

The helper now po
93B3
lls for a decodable 0x45 reply with a bounded budget
instead of assuming one macrotask. The other one-tick waits in the spec
guard synchronous handlers followed by an explicit telemetry flush, so
they stay as they are.
@bergie
bergie marked this pull request as ready for review October 16, 2026 06:19
@bergie
bergie merged commit f562755 into master Oct 16, 2026
9 checks passed
@bergie
bergie deleted the fix-listing-poll branch October 16, 2026 06:23
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

0