Skip to content

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 a team, mamercad, nzlosh and winem 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 requested a review from amanda11 April 18, 2024 22:29
@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
@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.

4 participants