Closed Bug 1790177 Opened 2 years ago Closed 2 years ago

perma comm/mailnews/base/test/unit/test_compactFailure.js | xpcshell.ini:comm/mailnews/base/test/unit/test_compactFailure.js | test_compact_without_crash - [test_compact_without_crash : 108] 2152857614 == 2147500037

Categories

(MailNews Core :: Backend, defect, P5)

Tracking

(thunderbird_esr102 unaffected, thunderbird105 unaffected)

RESOLVED FIXED
106 Branch
Tracking Status
thunderbird_esr102 --- unaffected
thunderbird105 --- unaffected

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression)

Attachments

(1 file)

First seen with https://treeherder.mozilla.org/jobs?repo=comm-central&selectedTaskRun=AU2ztcDqRwejlInMd6cr5A.0&revision=62defccbffff4682af81698162b4702ef664f969 but unlikely from that c-c change.
Doesn't fail locally for me, but my m-c is a bit behind.

After updating m-c, this is now 100%reproducible locally. Instead of NS_ERROR_FILE_IS_LOCKED, NS_ERROR_FAILURE is triggered.

Yep. I guess we can't simulate a locked file anymore. https://searchfox.org/comm-central/rev/780a62298b62fe1782812b6fc28ff8a2a7c3be7b/mailnews/base/test/unit/test_compactFailure.js#37-45

Nika, any suggestions for how to simulate? Or is it not possible?

Flags: needinfo?(nika)
Regressed by: 1348272
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED

(In reply to Magnus Melin [:mkmelin] from comment #4)

Yep. I guess we can't simulate a locked file anymore. https://searchfox.org/comm-central/rev/780a62298b62fe1782812b6fc28ff8a2a7c3be7b/mailnews/base/test/unit/test_compactFailure.js#37-45

Nika, any suggestions for how to simulate? Or is it not possible?

I can't think of an easy way to mock something like that out without adding the mock locked file implementation in C++, rather than doing it in JS, unfortunately.

Flags: needinfo?(nika)

Is it possible to figure out what the file in question is, and actually lock it?

We can get what the folder file is easily, but we can't lock it. I tried opening for writing, but that doesn't cause locking.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4f17f8305524
remove test for compact handling locked file streams since we can't simulate the locking anymore. r=#thunderbird-reviewers,darktrojan

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: