Closed Bug 1785308 Opened 3 years ago Closed 3 years ago

Use the Popen cleanup hack in more places in runxpcshelltests.py

Categories

(Testing :: XPCShell Harness, task)

Default
task

Tracking

(firefox105 fixed)

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

To work around a Python bug that was fixed in 2019 but is still present in the version of Python we use on Windows 7, runxpcshelltests.py basically clears subprocess._cleanup before it runs Popen() in one place, and restores it afterwards. However, there are two other places in that file that call Popen(). With my patches in bug 1769791, we seem to hit this issue when running the XPCShell self-tests.

I have a patch to wrap up the "cleanup hack" into a little contextmanager thing which can be used for all 3 Popen calls and which will hopefully fix the issue for me.

I found another reference to these self-tests failing with verify mode due to the popen issue. It is possible that my patch will fix that, but I'll leave it to somebody else to investigate if they want.

XPCShell tests look green on Win7 with this patch and my XUL changes. (They were always orange without this patch.)

Pushed by amccreight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b79a8d87e74 Use the Popen cleanup workaround in more places in runxpcshelltests.py. r=jmaher
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: