Skip to content

test: remove racy node startup from execution test#3264

Merged
julienrbrt merged 1 commit intoevstack:mainfrom
Radovenchyk:patch-1
Apr 20, 2026
Merged

test: remove racy node startup from execution test#3264
julienrbrt merged 1 commit intoevstack:mainfrom
Radovenchyk:patch-1

Conversation

@Radovenchyk
Copy link
Copy Markdown
Contributor

@Radovenchyk Radovenchyk commented Apr 20, 2026

node.Run was not needed - bc.Executor is set during node creation, before Run is called. Removed node.Run, waitForNodeInitialization, and the grace period sleep to eliminate the race condition

Summary by CodeRabbit

  • Tests
    • Simplified executor test flow by removing unnecessary node lifecycle management from the test suite.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 20, 2026

📝 Walkthrough

Walkthrough

The TestBasicExecutionFlow test in node/execution_test.go was simplified by removing node startup and shutdown control logic. The test no longer manages goroutines, contexts, or initialization waiting; it now focuses directly on executor functionality testing with an already-constructed node.

Changes

Cohort / File(s) Summary
Test Simplification
node/execution_test.go
Removed explicit node lifecycle management (goroutine spawning, context cancellation, initialization wait loop) and deleted the waitForNodeInitialization helper function and unused errors import. Test now directly tests executor methods on a pre-constructed node.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 One test was cluttered, now it's lean,
No more goroutines muddying the scene,
The executor shines without the fuss,
Simpler tests bring joy to us! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description provides a clear explanation of why changes were made (eliminating race condition) but lacks the structured format recommended by the template, which requests an Overview section with context, background, goal, and rationale.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The pull request title clearly and concisely describes the main change: removing racy node startup logic from an execution test file to fix a race condition.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@julienrbrt julienrbrt changed the title fix(test): remove racy node startup from execution test test: remove racy node startup from execution test Apr 20, 2026
Copy link
Copy Markdown
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.28%. Comparing base (4c7323f) to head (3f6b681).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3264      +/-   ##
==========================================
- Coverage   62.33%   62.28%   -0.06%     
==========================================
  Files         122      122              
  Lines       12877    12877              
==========================================
- Hits         8027     8020       -7     
- Misses       3970     3974       +4     
- Partials      880      883       +3     
Flag Coverage Δ
combined 62.28% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@julienrbrt julienrbrt added this pull request to the merge queue Apr 20, 2026
Merged via the queue into evstack:main with commit 2eb15bd Apr 20, 2026
25 of 29 checks passed
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