-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime: crash asap and extend total sleep time for slow machine in test #65018
Conversation
This PR (HEAD: 2eb8fef) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/554615. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Michael Pratt: Patch Set 2: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
This PR (HEAD: 02acc7b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/554615. Important tips:
|
Message from zk Z: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
This PR (HEAD: 547660e) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/554615. Important tips:
|
Message from zk Z: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Michael Pratt: Patch Set 3: Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-01-08T16:45:24Z","revision":"6cbd78dd9cc41ffc06edcba148769609e2350043"} Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 3: LUCI-TryBot-Result-1 Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from zk Z: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Michael Pratt: Patch Set 4: Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-01-08T17:09:02Z","revision":"19310e5429428c127bdf72e4ed32fc1a6b94df9a"} Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Michael Pratt: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 4: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Michael Pratt: Patch Set 4: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Bryan Mills: Patch Set 5: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Michael Pratt: Patch Set 5: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from zk Z: Patch Set 5: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Bryan Mills: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from zk Z: Patch Set 5: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
547660e
to
51ec6df
Compare
This PR (HEAD: 51ec6df) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/554615. Important tips:
|
Message from Bryan Mills: Patch Set 6: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Bryan Mills: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from zk Z: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Bryan Mills: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from zk Z: Patch Set 6: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
// Sleep for short intervals so that we can crash quickly after all ms have received SIGQUIT. | ||
// Reset the timer whenever we see more ms received SIGQUIT | ||
// to make it have enough time to crash (see issue #64752). | ||
timeout := watchdogTimeoutMicros |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So many variable assignments I can see, just suggesting a small piece of code below
for timeout := watchdogTimeoutMicros; timeout > 0 && crashing.Load() < mcount()-int32(extraMLength.Load()); timeout -= crashSleepMicros {
usleep(crashSleepMicros)
if crashing.Load() > maxCrashing {
maxCrashing = crashing.Load()
timeout = watchdogTimeoutMicros
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message from Felix Geisendörfer: Patch Set 6: Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 6: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-02-01T17:57:07Z","revision":"d80e0b5bafbeb5266ac1c78a8123230e393cb3ae"} Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Felix Geisendörfer: Patch Set 6: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 6: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 6: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Cherry Mui: Patch Set 6: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Cherry Mui: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from zk Z: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Cherry Mui: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from zk Z: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Cherry Mui: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Archana Ravindar: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
51ec6df
to
84f3844
Compare
This PR (HEAD: 84f3844) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/554615. Important tips:
|
Message from zk Z: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Cherry Mui: Patch Set 7: Auto-Submit+1 Code-Review+1 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Message from Go LUCI: Patch Set 7: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-05-10T15:48:04Z","revision":"d5a0b437d4e0fecf6bde6646b360ee7abd8f83f7"} Please don’t reply on this GitHub thread. Visit golang.org/cl/554615. |
Running with few threads usually does not need 500ms to crash, so let it crash as soon as possible. While the test may caused more time on slow machine, try to expand the sleep time in test. Updates #64752 Change-Id: I635fab846bd5e1735808d4d47bb9032d5a04cc2b GitHub-Last-Rev: 84f3844 GitHub-Pull-Request: #65018 Reviewed-on: https://go-review.googlesource.com/c/go/+/554615 Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Auto-Submit: Cherry Mui <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
This PR is being closed because golang.org/cl/554615 has been merged. |
Running with few threads usually does not need 500ms to crash, so let it
crash as soon as possible. While the test may caused more time on slow
machine, try to expand the sleep time in test.
Updates #64752