Skip to content

Conversation

@ShreeM01
Copy link
Contributor

When the parent process is run as a different user to the test itself (as can happen in some remote build environments, such as buildbarn) using kill -0 $PPID fails, causing the test to be prematurely killed.

This PR rolls back the (nicer, cleaner, not always working) fix and replaces it with the (less nice, less clean, more often working) check that was there before.

Tested with a local build against buildbarn.

Closes #17147.

PiperOrigin-RevId: 500691976
Change-Id: Ife55db5c1ed88d40ba502257ce9b679b04eeb179

When the parent process is run as a different user to the test itself (as can happen in some remote build environments, such as buildbarn) using `kill -0 $PPID` fails, causing the test to be prematurely killed.

This PR rolls back the (nicer, cleaner, not always working) fix and replaces it with the (less nice, less clean, more often working) check that was there before.

Tested with a local build against buildbarn.

Closes #17147.

PiperOrigin-RevId: 500691976
Change-Id: Ife55db5c1ed88d40ba502257ce9b679b04eeb179
@larsrc-google
Copy link
Contributor

What's the difference between this and #17210?

@ShreeM01
Copy link
Contributor Author

What's the difference between this and #17210?

Hi @larsrc-google! This is the forked issue. Once I get approval from you then I will go ahead & merge this PR,Following I can close the forked issue. Thanks!

@ShreeM01
Copy link
Contributor Author

ShreeM01 commented Jan 25, 2023

What's the difference between this and #17210?

Hi @larsrc-google! #17210 This is the forked issue. Once I get approval from you then I will go ahead & merge this PR,Following I can close the forked issue. Thanks!

@ShreeM01 ShreeM01 closed this Jan 25, 2023
@ShreeM01 ShreeM01 reopened this Jan 25, 2023
@larsrc-google
Copy link
Contributor

I'm confused, but it's certainly OK to merge.

@ShreeM01
Copy link
Contributor Author

What's the difference between this and #17210?

Hi @larsrc-google! #17210 This is the forked issue. Once I get approval from you then I will go ahead & merge this PR, following I can close the forked issue. Thanks!

@ShreeM01 ShreeM01 merged commit c10e724 into bazelbuild:release-6.1.0 Jan 25, 2023
@ShreeM01 ShreeM01 deleted the ks/Cherry-pick17147 branch January 25, 2023 23:39
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.

3 participants