Closed Bug 1915974 Opened 2 months ago Closed 2 months ago

Remove toolkit/components/places/tests/expiration/test_notifications.js

Categories

(Toolkit :: Places, defect)

defect

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox130 --- unaffected
firefox131 --- fixed
firefox132 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: emilio)

References

Details

(Keywords: intermittent-failure, intermittent-testcase)

Attachments

(1 file)

Filed by: sstanca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=472381352&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BhawfF5bRaixfq4A3Xp6VQ/runs/0/artifacts/public/logs/live_backing.log


[task 2024-08-30T17:10:05.410Z] 17:10:05     INFO -  TEST-PASS | browser/components/migration/tests/unit/test_Chrome_corrupt_history.js | took 1808ms
[task 2024-08-30T17:10:05.413Z] 17:10:05     INFO -  TEST-START | toolkit/components/places/tests/expiration/test_notifications.js
[task 2024-08-30T17:10:09.407Z] 17:10:09  WARNING -  TEST-UNEXPECTED-FAIL | toolkit/components/places/tests/expiration/test_notifications.js | xpcshell return code: 0
[task 2024-08-30T17:10:09.407Z] 17:10:09     INFO -  TEST-INFO took 3993ms
Severity: S4 → --
Flags: needinfo?(emilio)
Priority: P5 → --

So this is really weird, and my only thing where my patch is different is that we now initialize gfxplatform, because for xpcshell we happened to be overriding srgb here which didn't hit the problematic code-path...

Marco, do you know what might be going on? I've never seen an xpcshell test failing with "return code: 0" and no error, and it's not clear if the right test is even being blamed for this, since I don't see why this test in particular would hit any color management code...

Flags: needinfo?(emilio) → needinfo?(mak)

The culprit was backed out due to the appearance of another failures.

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED

So it looks like we're not receiving TOPIC_EXPIRATION_FINISHED at all, instead of once.
The test opening comment is obsolete, there's no category cache involved here.

The only things I could think of is:

  1. expiration is broken and it throws somewhere in here
  2. the 2 seconds used by the test are no longer sufficient, something became slower or started happening.

Does increasing the timer in the test to 10s solve the problem?
We may want to await for promiseForceExpirationStep(1) in addition to the 2s timer.

Though, I'm not really sure this test is necessary. it was originally checking category cache didn't notify twice, while now we basically call .observe() directly, that is unlikely to be wrong.
Thus I'd suggest to just remove this test and I can review a patch doing so.

Flags: needinfo?(mak) → needinfo?(emilio)
Target Milestone: --- → 131 Branch
Flags: needinfo?(emilio)
Summary: Frequent tsan opt toolkit/components/places/tests/expiration/test_notifications.js | xpcshell return code: 0 → Remove toolkit/components/places/tests/expiration/test_notifications.js
Assignee: nobody → emilio
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Blocks: 1915433
No longer regressed by: 1915433
Keywords: regression
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b1c57d6b9796 Remove toolkit/components/places/tests/expiration/test_notifications.js. r=mak,places-reviewers
Status: REOPENED → RESOLVED
Closed: 2 months ago2 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: