Closed Bug 1913649 Opened 6 months ago Closed 5 months ago

Test marked `run-if = ["release_or_beta"]` runs when `release_or_beta: False`

Categories

(Testing :: Mochitest, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jimb, Unassigned)

References

Details

The mochitest dom/webgpu/mochitest/test_disabled.html runs on ordinary try pushes from central, even though the only manifest that lists it is dom/webgpu/mochitest/mochitest-no-pref.toml, which says run-if = ["release_or_beta"].

For example, see this failure. Note that the log shows:

[task 2024-08-18T18:38:17.448Z] 18:38:17     INFO -     release_or_beta: False

I can reproduce this locally, if, instead of:

$ mach mochitest dom/webgpu

I run the command:

$ mach mochitest dom/webgpu/mochitest/mochitest-no-pref.toml 

I think the latter is closer to what TaskCluster is running.

The severity field is not set for this bug.
:jmaher, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(jmaher)

I am looking into this today, I was more on PTO the last 2 weeks. Thanks for filing this!

Severity: -- → S2
Flags: needinfo?(jmaher)
Priority: -- → P1

this appears to be a problem when we run a single manifest, now to find the code that avoids run-if/skip-if on a single manifest (or maybe a single test)

most like it is because of this clause:

            if len(tests) == 1 and "disabled" in test:
                del test["disabled"]

this is in "by design" so one could run a test locally and ignore the fact that it is disabled/skipped.

Some solutions might be:

  1. find a way to ignore this rule while on try
  2. determine why this entire task only has a single test, that doesn't seem effective
  3. figure out how to filter the manifest out at task selection time and not schedule the task if there are no tests.

I have a fix for bug 1914635, this solves the problem- we ended up in the decision task having the wrong value for release_or_beta, so the decision task was picking webgpu manifests that matched release_or_beta and ignoring the rest.

so the solutions above, #3 is happening properly- I think solving for #1 would be a good path forward.

still waiting on review in bug 1914635

Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.