build: update patch with bug fix to runtime grunning#118907
build: update patch with bug fix to runtime grunning#118907craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
|
Started TeamCity build |
d4d52ad to
84925d0
Compare
|
Previous patch was corrupted because I tried to minimize the lines changed. This one applies well but changes a lot more lines. Am I doing it correctly @rickystewart? Steps I followed:
|
84925d0 to
221e0e4
Compare
|
Can you put the diff for |
sumeerbhola
left a comment
There was a problem hiding this comment.
regarding the actual code changes modulo the need for code comments.
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @aadityasondhi)
build/teamcity/internal/release/build-and-publish-patched-go/diff.patch line 113 at r3 (raw file):
--- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1004,6 +1004,9 @@ func casfrom_Gscanstatus(gp *g, oldval, newval uint32) {
We have two comments in the existing patch:
// We're transitioning into the running state, record the timestamp for
// subsequent use.
// We're transitioning out of running, record how long we were in the
// state.
can you add the relevant comment to these new changes too.
221e0e4 to
4cf5e85
Compare
There was a problem hiding this comment.
Blank line here seems wrong
There was a problem hiding this comment.
To be clear: if the diff apply works, don't worry about removing the blank line. Just a thought I had as I was reviewing.
|
Trying another build, we'll see if this works. |
4cf5e85 to
b523584
Compare
|
Looks like it worked. I updated the PR and then we'll see if CI is happy. |
3960a3e to
11fbe3d
Compare
|
Had to rebase on top of the changes made in #118605. @rickystewart let me know if this is good to merge |
aadityasondhi
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @rickystewart and @sumeerbhola)
build/teamcity/internal/release/build-and-publish-patched-go/diff.patch line 113 at r3 (raw file):
Previously, sumeerbhola wrote…
We have two comments in the existing patch:
// We're transitioning into the running state, record the timestamp for // subsequent use.// We're transitioning out of running, record how long we were in the // state.can you add the relevant comment to these new changes too.
Done.
aadityasondhi
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @rickystewart and @sumeerbhola)
build/teamcity/internal/release/build-and-publish-patched-go/diff.patch line 187 at r4 (raw file):
Previously, rickystewart (Ricky Stewart) wrote…
To be clear: if the diff apply works, don't worry about removing the blank line. Just a thought I had as I was reviewing.
Done.
No. We need to build the SDK and incorporate it into your PR. I can get this process started for you. |
Thanks! let me know if I need to do anything to move this forward. |
|
@aadityasondhi Go ahead and apply this diff and we'll see if CI is okay with this. |
11fbe3d to
89289a8
Compare
In our previous version of this patch, we missed two entry points and one exit point into the grunning state of a Goroutine. This led to `grunning.Time()` being non-monotonic. This new patch adds those missing integration points. Fixes cockroachdb#95529. Release note: None
89289a8 to
6af173f
Compare
Build is looking good, feel free to bors if you think it is good to do so. |
|
bors r=sumeerbhola,rickystewart |
|
Build succeeded: |
This was fixed in cockroachdb#118907. This patch adds an assertion for test builds to ensure monotonic grunning time. Informs cockroachdb#95529 Release note: None
126424: kvadmission: remove grunning non-monotonic comment r=aadityasondhi a=aadityasondhi This was fixed in #118907. This patch adds an assertion for test builds to ensure monotonic grunning time. Informs #95529 Release note: None Co-authored-by: Aaditya Sondhi <20070511+aadityasondhi@users.noreply.github.com>
In our previous version of this patch, we missed two entry points and one exit point into the grunning state of a Goroutine. This led to
grunning.Time()being non-monotonic.This new patch adds those missing integration points.
Fixes #95529.
Release note: None