Closed Bug 2071785 Opened 2 months ago Closed 2 months ago

Test failing with `prefs parse error: unexpected character: 'Error'` due to concurrent reuse of user.js

Categories

(Testing :: XPCShell Harness, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 2050422

People

(Reporter: mak, Unassigned)

Details

While investigating bug 2030601, I hit this error with a corrupt user.js, and Claude suggested:

The root cause is that buildPrefsFile() in runxpcshelltests.py writes the shared prefs file directly to tempfile.gettempdir() (e.g. C:\Temp\user.js) rather than a unique subdirectory. A normal CI run produces a 48-line file (8 base prefs + 29 xpcshell prefs + 2 CI extra prefs), so line 59 should not exist. The fact that it does suggests the file has extra content from a concurrent or previous run on the same worker. The stable-path design is intentional (Bug 1272851, for remote device testing), but it creates a race when a worker is reused.

hm, I actually had filed bug 2050422

Status: NEW → RESOLVED
Closed: 2 months ago
Duplicate of bug: 2050422
Resolution: --- → DUPLICATE
See Also: 2030601, 1272851 →
You need to log in before you can comment on or make changes to this bug.