test(desktop): the Linux logout e2e can hang after its last check until the job limit

Open
#271 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, javascript, tauri
Domain
desktop, testing

Research direction

Start with tests/e2e/desktop-linux-logout/run.mjs, especially wd(), main() and its finally block, then inspect the workflow step named “Linux logout hold e2e” and its evidence upload step. Reproduce or simulate a DELETE request that never answers and confirm the test step ends within its limit, reports all six check results, and uploads results.json.

Written by the indexing model from the issue text.

Description

bug in progress

What happens

The Linux logout e2e test (tests/e2e/desktop-linux-logout/run.mjs, workflow "Linux logout hold e2e") sometimes passes all six checks and then never exits. The job hangs until its 45-minute limit and is cancelled ("The operation was canceled."), so a run where every check passed is reported as failed.

Evidence (job logs)

Run Branch / PR Last line Then
47127927442 feat/chat-attachments PASS 6. at 14:37:46 cancelled 15:01:29
47171555477 #268 (deb leg) PASS 6. at 18:20:58 cancelled 18:59:52

The first two predate the #243 matrix. In the third, the apt step and the build finished normally.

Likely cause (from the script; not yet proven)

After check 6 the script runs await app.quit() then await stop(session) (run.mjs, end of main).

  • quit() sends wd("DELETE", base), a fetch to tauri-driver with no timeout.
  • Check 6 has just ended the GNOME session the app ran in.
  • If tauri-driver or WebKitWebDriver never answers the DELETE for that app, the fetch waits forever. The finally block (driver.kill(), writing results.json) never runs, and neither does process.exit.

stop() itself is bounded (5 s), and every other wait in the script has a limit.

Scope

  • Give wd() a time limit (e.g. AbortSignal.timeout(...)) so a request that is never answered fails instead of hanging. A quit() that times out after a session-ending check should not fail the run.
  • Give the test step its own timeout-minutes, so a hang fails in minutes with a named step.
  • Keep the evidence upload working when the test times out.

Done when

A control run in which the DELETE never answers ends within the step limit, reports the six check results, and uploads results.json.

Correction: an earlier version of this table listed run 47126828180 as a hang. It was not one: its test step passed in 1 min 42 s and uploaded its evidence. The run shows as cancelled only because a newer push superseded it. The two hangs are 47127927442 and the first attempt of 47171555477.

Dominant language
No language data
Stars
1
Forks
2
Avg merge
1h 51m
Merged PRs (30d)
103

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextlevelbuilder/dewee-desktop-app

All issues in nextlevelbuilder/dewee-desktop-app

Similar issues

More Desktop Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.