Closed Bug 1670824 Opened 4 years ago Closed 2 years ago

--chaos should not be type=int

Categories

(Testing :: web-platform-tests, task)

Default
task

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: mccr8, Assigned: jgraham)

References

Details

Attachments

(1 file)

The --chaos command line option is defined in testing/web-platform/tests/tools/wptrunner/wptrunner/wptcommandline.py with type=int. Later, this value is used to set an environment variable: env["MOZ_CHAOSMODE"] = str(self.chaos_mode_flags).

This means that the command line option has to be a base 10 integer, and the env var will be set to a base 10 integer. However, this value is supposed to be a hex value: https://searchfox.org/mozilla-central/rev/d25eb00ab4e90cc0130cd18f303a04cc2a2f8409/toolkit/xre/nsAppRunner.cpp#3458-3466

If the env var fails to parse as a hex value, then it is treated as ChaosFeature::Any, so this is probably okay for the most common use case, but you can't set it to any other value, like 0xfb, which seems to be the default in reftests and mochitests.

Severity: -- → S3
Assignee: nobody → james
Status: NEW → ASSIGNED
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/autoland/rev/9ed95ae6403a
Parse --chaos argument as hex, r=mccr8
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37028 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Upstream PR merged by moz-wptsync-bot
See Also: → 1806367
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: