Skip to content

chore(e2e-tests): update server aggregation error warning for latest alpha COMPASS-10839#8239

Draft
Anemy wants to merge 2 commits into
mainfrom
COMPASS-10839-latest-alpha-sleep-error
Draft

chore(e2e-tests): update server aggregation error warning for latest alpha COMPASS-10839#8239
Anemy wants to merge 2 commits into
mainfrom
COMPASS-10839-latest-alpha-sleep-error

Conversation

@Anemy

@Anemy Anemy commented Jul 15, 2026

Copy link
Copy Markdown
Member

COMPASS-10839

Latest alpha now has a different error code when cancelling a sleep in a js function.

code: 279,
codeName: 'ClientDisconnect',
errmsg: 'error while executing at wasm backtrace: ... nanosleep ... MozJSScriptEngine::sleep ...
Caused by:
  wasm epoch interrupt: kill pending'

I think there was a similar fix we had to do on mongosh. Here's a link for that context mongodb-js/mongosh#2768 (comment) there was a server bug causing it to have different results than we get now
https://jira.mongodb.org/browse/SERVER-130767

Patch (latest alpha suite only runs on main commits) https://spruce.corp.mongodb.com/version/6a579e2e71d2eb0007e0338d/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

Opening as a draft as I think the ClientDisconnect could be a false positive for other situations and I want to look into if this is the intended behavior or its a temporary bug with the new wasm engine in new alpha. Thread https://mongodb.slack.com/archives/C04PDS7GAFM/p1784141230556669

Copilot AI review requested due to automatic review settings July 15, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates an e2e server-warning allowlist to keep aggregation-cancellation tests stable against newer server alpha behavior, while preserving signal from unexpected server warnings.

Changes:

  • Allows ClientDisconnect in addition to Interrupted for the relevant aggregate command executor warning (id === 23799) during cancellation.
  • Adjusts the warning-filter predicate formatting in the affected test.

Comment thread packages/compass-e2e-tests/tests/collection-aggregations-tab.test.ts Outdated
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants