Skip to content

Make CPU profile node test deterministic - #13

Open
alva-bot01 wants to merge 1 commit into
Stumble:masterfrom
alva-bot01:codex/make-profiler-test-deterministic
Open

Make CPU profile node test deterministic#13
alva-bot01 wants to merge 1 commit into
Stumble:masterfrom
alva-bot01:codex/make-profiler-test-deterministic

Conversation

@alva-bot01

Copy link
Copy Markdown

Summary

  • give each expected CPU-profile call path one continuous 250 ms sampling window
  • execute one cold call-tree traversal instead of repeatedly sampling 10 ms paths that V8 may optimize or a loaded runner may miss
  • preserve the existing fast defaults for the other profiler tests

The v0.36.0 release completed successfully, including its leakcheck, but the pre-merge PR run exposed a second sampling flake (bar was absent). This follow-up prevents future weekly releases from randomly failing the same gate.

Validation

  • TestCPUProfileNode: 25 consecutive passes
  • TestCPUProfileNode: 10 consecutive passes under synthetic CPU contention
  • leakcheck binary: 3 consecutive full-suite passes
  • go test -count=1 ./...
  • go vet ./...
  • actionlint

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.

2 participants