Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

Identified sys::exec_impl::tests::test_sys_exec_disown_no_defunct as a flaky test.
The root cause was a race condition where the test, which asserts that no zombie processes exist for the current process, would fail if another concurrent test spawned a process that momentarily became a zombie before being reaped.

Fixed this by introducing a TEST_MUTEX using once_cell and acquiring a lock in all conflicting tests within sys/exec_impl.rs. This forces these tests to run sequentially, isolating their interactions with the system process table.

Verified the fix by running the flaky test 50 times in a row without failure.
Also verified that Go and Web tests are passing.


PR created automatically by Jules for task 8584081842841595963 started by @KCarretto

Introduced a mutex to serialize `sys::exec_impl::tests` that interact with the global process table.
Tests like `test_sys_exec_disown_no_defunct` were failing when run in parallel with other process-spawning tests because they observed transient zombie processes created by concurrent tests.
Verified the fix by running the test 50 times successfully.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
524    ±0 524    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#288 524 524 0 0 0 0 16.0s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
524 0 0 1.5s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
TestGetRandomName/NoDuplicates 1 1.5s 1.5s
TestGetRandomName 1 1.5s 1.5s
TestCreateTestData 1 1.3s 1.3s
TestPreventPubSubColdStarts_ZeroInterval 1 1.0s 1.0s
TestMuxHistory 1 750ms 750ms
TestAPI 1 630ms 630ms
TestNewShellHandler 1 520ms 520ms
TestPortalIntegration 1 520ms 520ms
TestReverseShell_E2E 1 510ms 510ms
TestFetchAsset 1 500ms 500ms

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

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