Skip to content
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

st2test Popen.pid bugfix #6184

Merged
merged 4 commits into from
Apr 23, 2024
Merged

st2test Popen.pid bugfix #6184

merged 4 commits into from
Apr 23, 2024

Conversation

cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Apr 18, 2024

Fix reference to non-existent Popen.id attribute.

It seems we don't run this code path in st2tests very often. I only see this when I'm debugging unrelated errors.

I searched through st2 git history for more context without success. I can't find the Popen.id attribute in several versions of cpython, nor in eventlet/greenlet.

So, this replaces Popen.id with Popen.pid.

This was extracted from #6130.

As far as I can tell, Popen has never had an 'id' attribute. It has 'pid'.
I checked both cpython and eventlet sources.
@cognifloyd cognifloyd self-assigned this Apr 18, 2024
@cognifloyd cognifloyd requested review from mamercad, nzlosh, winem and a team April 18, 2024 04:53
@pull-request-size pull-request-size bot added the size/XS PR that changes 0-9 lines. Quick fix/merge. label Apr 18, 2024
@cognifloyd cognifloyd enabled auto-merge (squash) April 18, 2024 14:01
@cognifloyd cognifloyd added this to the 3.9.0 milestone Apr 18, 2024
@cognifloyd cognifloyd requested a review from a team April 19, 2024 08:13
@cognifloyd cognifloyd merged commit 12639d6 into master Apr 23, 2024
29 checks passed
@cognifloyd cognifloyd deleted the popen-pid-fix branch April 23, 2024 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix size/XS PR that changes 0-9 lines. Quick fix/merge. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants