Closed Bug 1798087 Opened 2 years ago Closed 2 years ago

Intermittent TV browser/components/urlbar/tests/quicksuggest/unit/test_merinoClient.js | basic - [basic : 536] Expected suggestions - [] deepEqual [{"full_keyword":"full_keyword","title":"title","url":"url","icon":null,"impression_url":"impression_url","c

Categories

(Firefox :: Address Bar, defect, P5)

defect

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox106 --- unaffected
firefox107 --- unaffected
firefox108 --- fixed

People

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

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Filed by: csabou [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=394760207&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/I9KpFBoBTNaCFUdHvfp7cg/runs/0/artifacts/public/logs/live_backing.log
Reftest URL: https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/I9KpFBoBTNaCFUdHvfp7cg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1


[task 2022-10-28T22:10:49.732Z] 22:10:49     INFO -  (xpcshell/head.js) | test basic pending (2)
[task 2022-10-28T22:10:49.733Z] 22:10:49     INFO -  PID 5040 | Couldn't convert chrome URL: chrome://branding/locale/brand.properties
[task 2022-10-28T22:10:49.733Z] 22:10:49     INFO -  PID 5040 | [Parent 5788, Main Thread] WARNING: Failed to get directory to cache.: file /builds/worker/checkouts/gecko/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp:124
[task 2022-10-28T22:10:49.733Z] 22:10:49     INFO -  PID 5040 | [Parent 5788, Main Thread] WARNING: Failed to get directory to cache.: file /builds/worker/checkouts/gecko/security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp:124
[task 2022-10-28T22:10:49.733Z] 22:10:49     INFO -  PID 5040 | JavaScript-C108.0a1
[task 2022-10-28T22:10:49.734Z] 22:10:49     INFO -  PID 5040 | usage: xpcshell [-g gredir] [-a appdir] [-r manifest]... [-WwxiCmIp] [-f scriptfile] [-e script] [scriptfile] [scriptarg...]
[task 2022-10-28T22:10:49.734Z] 22:10:49     INFO -  PID 5040 | [Parent 5788, Main Thread] WARNING: Could not get the program name for a cubeb stream.: 'NS_SUCCEEDED(rv)', file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:430
[task 2022-10-28T22:10:49.734Z] 22:10:49     INFO -  PID 5040 | [Parent 5788, Main Thread] WARNING: OOPDeinit() without successful OOPInit(): file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:3374
[task 2022-10-28T22:10:49.735Z] 22:10:49     INFO -  PID 5040 | [Parent 5788, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4634
[task 2022-10-28T22:10:49.735Z] 22:10:49     INFO -  PID 5040 | [Parent 5788, Main Thread] WARNING: XPCOM object PerThreadData destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:215
[task 2022-10-28T22:10:49.736Z] 22:10:49     INFO -  PID 5040 | [Parent 5788, Main Thread] WARNING: XPCOM object SourceList destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:215
[task 2022-10-28T22:10:49.736Z] 22:10:49     INFO -  (xpcshell/head.js) | test run_next_test 3 finished (2)
[task 2022-10-28T22:10:49.736Z] 22:10:49  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/quicksuggest/unit/test_merinoClient.js | basic - [basic : 536] Expected suggestions - [] deepEqual [{"full_keyword":"full_keyword","title":"title","url":"url","icon":null,"impression_url":"impression_url","click_url":"click_url","block_id":1,"advertiser":"advertiser","is_sponsored":true,"score":1,"request_id":"request_id"}]
[task 2022-10-28T22:10:49.737Z] 22:10:49     INFO -  Z:/task_166699039898893/build/tests/xpcshell/tests/browser/components/urlbar/tests/quicksuggest/unit/test_merinoClient.js:fetchAndCheckSuggestions:536
[task 2022-10-28T22:10:49.737Z] 22:10:49     INFO -  Z:\task_166699039898893\build\tests\xpcshell\head.js:_do_main:240
[task 2022-10-28T22:10:49.737Z] 22:10:49     INFO -  Z:\task_166699039898893\build\tests\xpcshell\head.js:_execute_test:597
[task 2022-10-28T22:10:49.737Z] 22:10:49     INFO -  -e:null:1
[task 2022-10-28T22:10:49.737Z] 22:10:49     INFO -  exiting test
[task 2022-10-28T22:10:49.738Z] 22:10:49     INFO -  Unexpected exception NS_ERROR_ABORT:
[task 2022-10-28T22:10:49.738Z] 22:10:49     INFO -  _abort_failed_test@Z:\task_166699039898893\build\tests\xpcshell\head.js:875:20
[task 2022-10-28T22:10:49.739Z] 22:10:49     INFO -  do_report_result@Z:\task_166699039898893\build\tests\xpcshell\head.js:976:5
[task 2022-10-28T22:10:49.739Z] 22:10:49     INFO -  Assert<@Z:\task_166699039898893\build\tests\xpcshell\head.js:73:21
[task 2022-10-28T22:10:49.739Z] 22:10:49     INFO -  proto.report@resource://testing-common/Assert.jsm:228:10
[task 2022-10-28T22:10:49.739Z] 22:10:49     INFO -  deepEqual@resource://testing-common/Assert.jsm:305:8
[task 2022-10-28T22:10:49.740Z] 22:10:49     INFO -  fetchAndCheckSuggestions@Z:/task_166699039898893/build/tests/xpcshell/tests/browser/components/urlbar/tests/quicksuggest/unit/test_merinoClient.js:536:10
[task 2022-10-28T22:10:49.740Z] 22:10:49     INFO -  _do_main@Z:\task_166699039898893\build\tests\xpcshell\head.js:240:6
[task 2022-10-28T22:10:49.740Z] 22:10:49     INFO -  _execute_test@Z:\task_166699039898893\build\tests\xpcshell\head.js:597:5
[task 2022-10-28T22:10:49.740Z] 22:10:49     INFO -  @-e:1:1
[task 2022-10-28T22:10:49.740Z] 22:10:49     INFO -  exiting test
[task 2022-10-28T22:10:49.741Z] 22:10:49     INFO -  "Force a GC"[task 2022-10-28T22:10:49.741Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, Socket Thread] WARNING: cannot post event if not initialized: file /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:197
[task 2022-10-28T22:10:49.741Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.000000s: startCrashBrowserTimer', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.742Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.000000s: initiateShutdownWorkThreads', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.742Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: idb: '0.000000s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.742Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: cache: '0.000000s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.742Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: sdb: '0.000000s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.743Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: fs: '0.000000s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.743Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: ls: '0.000000s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.743Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.000000s: startKillActorsTimer', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.744Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, QuotaManager IO] WARNING: 'IsShuttingDown()', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:4592
[task 2022-10-28T22:10:49.745Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, QuotaManager IO] WARNING: QM_TRY failure (ERROR): 'CollectEachFile( *aDirectory, [&](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { if (NS_warn_if_impl(IsShuttingDown(), "IsShuttingDown()", "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4592)) { return Err(((bool)(__builtin_expect(!!(NS_FAILED_impl(statusKeeper)), 0))) ? (statusKeeper) : (NS_ERROR_ABORT)); } { auto tryResult238 = (([this, &file, trackQuota, aPersistenceType, &aOriginMetadata, &clientUsages]() -> Result<Ok, nsresult> { auto tryResult233 = (::mozilla::ToResultInvoke< nsAutoString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult233.isErr()), 0))) { mozilla::dom::quota::HandleEr
[task 2022-10-28T22:10:49.746Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, QuotaManager IO] WARNING: QM_TRY failure (ERROR): 'ToResult(InitializeOrigin(PERSISTENCE_TYPE_PERSISTENT, aOriginMetadata, timestamp, true, directory)) failed with resultCode 0x80004004, resultName NS_ERROR_ABORT, context dom::quota::FirstOriginInitializationAttempt::PersistentOrigin', file dom/quota/ActorsParent.cpp:5883
[task 2022-10-28T22:10:49.746Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, QuotaManager IO] WARNING: QM_TRY failure (ERROR): 'quotaManager->EnsurePersistentOriginIsInitialized( mOriginMetadata) failed with resultCode 0x80004004, resultName NS_ERROR_ABORT', file dom/indexedDB/ActorsParent.cpp:15819
[task 2022-10-28T22:10:49.747Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, QuotaManager IO] WARNING: QM_TRY failure (ERROR): '([persistenceType, &quotaManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult425 = (quotaManager->EnsurePersistentOriginIsInitialized( mOriginMetadata)); if ((__builtin_expect(!!(tryResult425.isErr()), 0))) { mozilla::dom::quota::HandleError("quotaManager->EnsurePersistentOriginIsInitialized( mOriginMetadata)", tryResult425.inspectErr(), "/builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp", 15819, mozilla::dom::quota::Severity::Error); } return tryResult425; }; } { auto tryResult426 = (ToResult(quotaManager->EnsureTemporaryStorageIsInitialized())); static_assert(std::is_empty_v<
[task 2022-10-28T22:10:49.747Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, QuotaManager IO] WARNING: QM_TRY failure (ERROR): 'ToResult(DoDatabaseWork()) failed with resultCode 0x80004004, resultName NS_ERROR_ABORT', file dom/indexedDB/ActorsParent.cpp:15685
[task 2022-10-28T22:10:49.748Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: Converting non-IndexedDB error code (0x80004004) to NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR: file /builds/worker/checkouts/gecko/dom/indexedDB/ActorsParent.cpp:557
[task 2022-10-28T22:10:49.748Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: idb: '0.594000s: An element was removed from gFactoryOps', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.748Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.594000s: stopKillActorsTimer', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.749Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.594000s: shutdownAndJoinWorkThreads', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.749Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: idb: '0.594000s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.749Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: cache: '0.594000s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.750Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: sdb: '0.594000s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.750Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: fs: '0.594000s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.750Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: ls: '0.594000s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.751Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.594000s: shutdownAndJoinIOThread', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.751Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.594000s: invalidatePendingDirectoryLocks', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.751Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, IPDL Background] WARNING: quota manager shutdown step: '0.594000s: stopCrashBrowserTimer', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3297
[task 2022-10-28T22:10:49.764Z] 22:10:49     INFO -  "CONSOLE_MESSAGE: (info) QM_TRY failure (ERROR): 'CollectEachFile( *aDirectory, [&](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { if (NS_warn_if_impl(IsShuttingDown(), "IsShuttingDown()", "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4592)) { return Err(((bool)(__builtin_expect(!!(NS_FAILED_impl(statusKeeper)), 0))) ? (statusKeeper) : (NS_ERROR_ABORT)); } { auto tryResult238 = (([this, &file, trackQuota, aPersistenceType, &aOriginMetadata, &clientUsages]() -> Result<Ok, nsresult> { auto tryResult233 = (::mozilla::ToResultInvoke< nsAutoString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult233.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsAutoString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))", tryResult233.inspectErr(), "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4601, mozilla::dom::quota::Severity::Error); return tryResult233.propagateErr(); } const auto& leafName = tryResult233.inspect();; auto tryResult234 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult234.isErr()), 0))) { mozilla::dom::quota::HandleError("GetDirEntryKind(*file)", tryResult234.inspectErr(), "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4604, mozilla::dom::quota::Severity::Error); return tryResult234.propagateErr(); } const auto& dirEntryKind = tryResult234.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: { Client::Type clientType; const bool ok = Client::TypeFromText( leafName, clientType, fallible); if (!ok) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString("Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4614); break; } if (trackQuota) { auto tryResult235 = ((*mClients)[clientType]->InitOrigin( aPersistenceType, aOriginMetadata, Atomic<bool>(false))); if ((__builtin_expect(!!(tryResult235.isErr()), 0))) { mozilla::dom::quota::HandleError("(*mClients)[clientType]->InitOrigin( aPersistenceType, aOriginMetadata, Atomic<bool>(false))", tryResult235.inspectErr(), "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4623, mozilla::dom::quota::Severity::Error); return tryResult235.propagateErr(); } const auto& usageInfo = tryResult235.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!clientUsages[clientType])>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!MOZ_AssertAssignmentTest(!!(!clientUsages[clientType]))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!clientUsages[clientType]", "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4625); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!clientUsages[clientType]" ")"); do { __debugbreak(); MOZ_NoReturn(4625); } while (false); } } while (false); if (usageInfo.TotalUsage()) { if (static_cast<int64_t>(*usageInfo.TotalUsage()) >= 0) { clientUsages[clientType] = usageInfo.TotalUsage(); } else { const nsCOMPtr<nsIConsoleService> console = do_GetService("@mozilla.org/consoleservice;1"); if (console) { console->LogStringMessage( nsString( u"QuotaManager warning: client "_ns + leafName + u" reported negative usage for group "_ns + NS_ConvertUTF8toUTF16( aOriginMetadata.mGroup) + u", origin "_ns + NS_ConvertUTF8toUTF16( aOriginMetadata.mOrigin)) .get()); } } } } else { { auto tryResult236 = (ToResult((*mClients)[clientType] ->InitOriginWithoutTracking( aPersistenceType, aOriginMetadata, Atomic<bool>(false)))); static_assert(std::is_empty_v<typename decltype(tryResult236)::ok_type>); if ((__builtin_expect(!!(tryResult236.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult((*mClients)[clientType] ->InitOriginWithoutTracking( aPersistenceType, aOriginMetadata, Atomic<bool>(false)))", tryResult236.inspectErr(), "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4660, mozilla::dom::quota::Severity::Error); return tryResult236.propagateErr(); } }; } break; } case nsIFileKind::ExistsAsFile: if (IsOriginMetadata(leafName)) { break; } if (IsTempMetadata(leafName)) { { auto tryResult237 = (ToResult(file->Remove( false))); static_assert(std::is_empty_v<typename decltype(tryResult237)::ok_type>); if ((__builtin_expect(!!(tryResult237.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove( false))", tryResult237.inspectErr(), "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4673, mozilla::dom::quota::Severity::Error); return tryResult237.propagateErr(); } }; break; } if (IsOSMetadata(leafName) || IsDotFile(leafName)) { break; } NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString("Something (%s) in the directory that doesn't belong!", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4684); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; }())); static_assert(std::is_empty_v<typename decltype(tryResult238)::ok_type>); if ((__builtin_expect(!!(tryResult238.isErr()), 0))) { auto tryTempError = tryResult238.unwrapErr(); mozilla::dom::quota::HandleError("([this, &file, trackQuota, aPersistenceType, &aOriginMetadata, &clientUsages]() -> Result<Ok, nsresult> { auto tryResult233 = (::mozilla::ToResultInvoke< nsAutoString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult233.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"::mozilla::ToResultInvoke< nsAutoString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\\", tryResult233.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4601, mozilla::dom::quota::Severity::Error); return tryResult233.propagateErr(); } const auto& leafName = tryResult233.inspect();; auto tryResult234 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"GetDirEntryKind(*file)\\", tryResult234.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4604, mozilla::dom::quota::Severity::Error); return tryResult234.propagateErr(); } const auto& dirEntryKind = tryResult234.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: { Client::Type clientType; const bool ok = Client::TypeFromText( leafName, clientType, fallible); if (!ok) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString(\\"Something (%s) in the directory that doesn't belong!\\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4614); break; } if (trackQuota) { auto tryResult235 = ((*mClients)[clientType]->InitOrigin( aPersistenceType, aOriginMetadata, Atomic<bool>(false))); if ((__builtin_expect(!!(tryResult235.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"(*mClients)[clientType]->InitOrigin( aPersistenceType, aOriginMetadata, Atomic<bool>(false))\\", tryResult235.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4623, mozilla::dom::quota::Severity::Error); return tryResult235.propagateErr(); } const auto& usageInfo = tryResult235.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!clientUsages[clientType])>::isValid, \\"invalid assertion condition\\"); if ((__builtin_expect(!!(!MOZ_AssertAssignmentTest(!!(!clientUsages[clientType]))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\"!clientUsages[clientType]\\", \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4625); AnnotateMozCrashReason(\\"MOZ_ASSERT\\" \\"(\\" \\"!clientUsages[clientType]\\" \\")\\"); do { __debugbreak(); MOZ_NoReturn(4625); } while (false); } } while (false); if (usageInfo.TotalUsage()) { if (static_cast<int64_t>(*usageInfo.TotalUsage()) >= 0) { clientUsages[clientType] = usageInfo.TotalUsage(); } else { const nsCOMPtr<nsIConsoleService> console = do_GetService(\\"@mozilla.org/consoleservice;1\\"); if (console) { console->LogStringMessage( nsString( u\\"QuotaManager warning: client \\"_ns + leafName + u\\" reported negative usage for group \\"_ns + NS_ConvertUTF8toUTF16( aOriginMetadata.mGroup) + u\\", origin \\"_ns + NS_ConvertUTF8toUTF16( aOriginMetadata.mOrigin)) .get()); } } } } else { { auto tryResult236 = (ToResult((*mClients)[clientType] ->InitOriginWithoutTracking( aPersistenceType, aOriginMetadata, Atomic<bool>(false)))); static_assert(std::is_empty_v<typename decltype(tryResult236)::ok_type>); if ((__builtin_expect(!!(tryResult236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"ToResult((*mClients)[clientType] ->InitOriginWithoutTracking( aPersistenceType, aOriginMetadata, Atomic<bool>(false)))\\", tryResult236.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4660, mozilla::dom::quota::Severity::Error); return tryResult236.propagateErr(); } }; } break; } case nsIFileKind::ExistsAsFile: if (IsOriginMetadata(leafName)) { break; } if (IsTempMetadata(leafName)) { { auto tryResult237 = (ToResult(file->Remove( false))); static_assert(std::is_empty_v<typename decltype(tryResult237)::ok_type>); if ((__builtin_expect(!!(tryResult237.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"ToResult(file->Remove( false))\\", tryResult237.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4673, mozilla::dom::quota::Severity::Error); return tryResult237.propagateErr(); } }; break; } if (IsOSMetadata(leafName) || IsDotFile(leafName)) { break; } NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString(\\"Something (%s) in the directory that doesn't belong!\\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4684); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; }())", tryTempError, "/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp", 4697, mozilla::dom::quota::Severity::Error); statusKeeperFunc(tryTempError); constexpr const auto& func __attribute__((__unused__)) = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, "([this, &file, trackQuota, aPersistenceType, &aOriginMetadata, &clientUsages]() -> Result<Ok, nsresult> { auto tryResult233 = (::mozilla::ToResultInvoke< nsAutoString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))); if ((__builtin_expect(!!(tryResult233.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"::mozilla::ToResultInvoke< nsAutoString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file))\\", tryResult233.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4601, mozilla::dom::quota::Severity::Error); return tryResult233.propagateErr(); } const auto& leafName = tryResult233.inspect();; auto tryResult234 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult234.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"GetDirEntryKind(*file)\\", tryResult234.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4604, mozilla::dom::quota::Severity::Error); return tryResult234.propagateErr(); } const auto& dirEntryKind = tryResult234.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: { Client::Type clientType; const bool ok = Client::TypeFromText( leafName, clientType, fallible); if (!ok) { NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString(\\"Something (%s) in the directory that doesn't belong!\\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4614); break; } if (trackQuota) { auto tryResult235 = ((*mClients)[clientType]->InitOrigin( aPersistenceType, aOriginMetadata, Atomic<bool>(false))); if ((__builtin_expect(!!(tryResult235.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"(*mClients)[clientType]->InitOrigin( aPersistenceType, aOriginMetadata, Atomic<bool>(false))\\", tryResult235.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4623, mozilla::dom::quota::Severity::Error); return tryResult235.propagateErr(); } const auto& usageInfo = tryResult235.inspect();; do { static_assert( mozilla::detail::AssertionConditionType<decltype(!clientUsages[clientType])>::isValid, \\"invalid assertion condition\\"); if ((__builtin_expect(!!(!MOZ_AssertAssignmentTest(!!(!clientUsages[clientType]))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\"!clientUsages[clientType]\\", \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4625); AnnotateMozCrashReason(\\"MOZ_ASSERT\\" \\"(\\" \\"!clientUsages[clientType]\\" \\")\\"); do { __debugbreak(); MOZ_NoReturn(4625); } while (false); } } while (false); if (usageInfo.TotalUsage()) { if (static_cast<int64_t>(*usageInfo.TotalUsage()) >= 0) { clientUsages[clientType] = usageInfo.TotalUsage(); } else { const nsCOMPtr<nsIConsoleService> console = do_GetService(\\"@mozilla.org/consoleservice;1\\"); if (console) { console->LogStringMessage( nsString( u\\"QuotaManager warning: client \\"_ns + leafName + u\\" reported negative usage for group \\"_ns + NS_ConvertUTF8toUTF16( aOriginMetadata.mGroup) + u\\", origin \\"_ns + NS_ConvertUTF8toUTF16( aOriginMetadata.mOrigin)) .get()); } } } } else { { auto tryResult236 = (ToResult((*mClients)[clientType] ->InitOriginWithoutTracking( aPersistenceType, aOriginMetadata, Atomic<bool>(false)))); static_assert(std::is_empty_v<typename decltype(tryResult236)::ok_type>); if ((__builtin_expect(!!(tryResult236.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"ToResult((*mClients)[clientType] ->InitOriginWithoutTracking( aPersistenceType, aOriginMetadata, Atomic<bool>(false)))\\", tryResult236.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4660, mozilla::dom::quota::Severity::Error); return tryResult236.propagateErr(); } }; } break; } case nsIFileKind::ExistsAsFile: if (IsOriginMetadata(leafName)) { break; } if (IsTempMetadata(leafName)) { { auto tryResult237 = (ToResult(file->Remove( false))); static_assert(std::is_empty_v<typename decltype(tryResult237)::ok_type>); if ((__builtin_expect(!!(tryResult237.isErr()), 0))) { mozilla::dom::quota::HandleError(\\"ToResult(file->Remove( false))\\", tryResult237.inspectErr(), \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4673, mozilla::dom::quota::Severity::Error); return tryResult237.propagateErr(); } }; break; } if (IsOSMetadata(leafName) || IsDotFile(leafName)) { break; } NS_DebugBreak(NS_DEBUG_WARNING, nsPrintfCString(\\"Something (%s) in the directory that doesn't belong!\\", NS_ConvertUTF16toUTF8(leafName).get()) .get(), nullptr, \\"/builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp\\", 4684); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; }())", tryTempError, Ok {}); } }; return Ok{}; }) failed with resultCode 0x80004004, resultName NS_ERROR_ABORT, context dom::quota::FirstOriginInitializationAttempt::PersistentOrigin', file dom/quota/ActorsParent.cpp:4701"
[task 2022-10-28T22:10:49.768Z] 22:10:49     INFO -  "CONSOLE_MESSAGE: (info) QM_TRY failure (ERROR): 'ToResult(InitializeOrigin(PERSISTENCE_TYPE_PERSISTENT, aOriginMetadata, timestamp, true, directory)) failed with resultCode 0x80004004, resultName NS_ERROR_ABORT, context dom::quota::FirstOriginInitializationAttempt::PersistentOrigin', file dom/quota/ActorsParent.cpp:5883"
[task 2022-10-28T22:10:49.769Z] 22:10:49     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB UnknownErr: ActorsParent.cpp:563"]"[task 2022-10-28T22:10:49.769Z] 22:10:49     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB: main/addons-manager-settings getLastModified() IndexedDB:   The operation failed for reasons unrelated to the database itself and not covered by any other error code." {file: "resource://services-settings/IDBHelpers.jsm" line: 18}]
[task 2022-10-28T22:10:49.769Z] 22:10:49     INFO -  IndexedDBError@resource://services-settings/IDBHelpers.jsm:18:5
[task 2022-10-28T22:10:49.770Z] 22:10:49     INFO -  getLastModified@resource://services-settings/Database.jsm:179:13
[task 2022-10-28T22:10:49.770Z] 22:10:49     INFO -  _execute_test@Z:\\task_166699039898893\\build\\tests\\xpcshell\\head.js:714:23
[task 2022-10-28T22:10:49.770Z] 22:10:49     INFO -  @-e:1:1
[task 2022-10-28T22:10:49.770Z] 22:10:49     INFO -  "
[task 2022-10-28T22:10:49.771Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3387
[task 2022-10-28T22:10:49.771Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, Main Thread] WARNING: OOPDeinit() without successful OOPInit(): file /builds/worker/checkouts/gecko/toolkit/crashreporter/nsExceptionHandler.cpp:3374
[task 2022-10-28T22:10:49.772Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4634
[task 2022-10-28T22:10:49.772Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, Main Thread] WARNING: XPCOM object PerThreadData destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:215
[task 2022-10-28T22:10:49.772Z] 22:10:49     INFO -  PID 5040 | [Parent 5040, Main Thread] WARNING: XPCOM object SourceList destroyed from static ctor/dtor: file /builds/worker/checkouts/gecko/xpcom/base/nsTraceRefcnt.cpp:215
[task 2022-10-28T22:10:49.773Z] 22:10:49     INFO -  <<<<<<<
[task 2022-10-28T22:10:49.777Z] 22:10:49     INFO -  TEST-START | browser/components/urlbar/tests/quicksuggest/unit/test_merinoClient.js
[task 2022-10-28T22:10:54.634Z] 22:10:54  WARNING -  TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/quicksuggest/unit/test_merinoClient.js | xpcshell return code: 0
[task 2022-10-28T22:10:54.647Z] 22:10:54     INFO -  TEST-INFO took 4857ms
Assignee: nobody → adw
Status: NEW → ASSIGNED

After starting the test server, wait until it starts returning suggestions to
avoid TV failures.

This also makes two other improvements:

  • Add more logging to the server
  • Use PromiseUtils in one place I missed in D160449

Set release status flags based on info from the regressing bug 1797673

Pushed by dwillcoxon@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/25f16d9b0026 Fix intermittent failure in test_merinoClient.js by waiting until the server is ready after it starts up. r=daisuke
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Blocks: 1815018
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: