Skip to content

Test: say when an application needs the network to show its window (error-needs-network) - #10018

Closed
probonopd wants to merge 1 commit into
masterfrom
claude/needs-network
Closed

probonopd wants to merge 1 commit into
masterfrom
claude/needs-network

Conversation

@probonopd

Copy link
Copy Markdown
Member

error-app-exits is the largest failure class (1,931 open PRs), and its hint can only say "the error below usually shows why". A common cause is that the test runs without network on purpose (firejail --net=none) and the application wants a login or update check before it shows anything.

worker.sh: when the application showed no window (and is not a terminal application, and the tray attempt did not help either), it is run once more with network access, for up to 30 seconds, only to diagnose. If a window appears, the log gets NOTE: With network access the application shows a window: it needs the network to start, and diagnose.sh turns that into the label error-needs-network with a hint: an AppImage must start without network; show the window first, log in or check for updates afterwards, handle a failed connection. The test fails either way, as before; nothing is relaxed. The second instance is left to the cleanup trap, which captures the failure screen first (so the PR comment then shows the window that needs the network) and kills it.

Cost: up to 30 seconds more for a failing test. The second run writes its output to a file, so no background process holds the log pipe (the rule in AGENTS.md).

Checked: bash -n, shellcheck, diagnose.sh on a sample log (labels error-app-exits error-needs-network; the excerpt starts at the NOTE, right above the error). The run itself cannot be tried from my sandbox (no firejail); a throwaway PR with a network-needing app would show it end to end after merging, if you want one. AGENTS.md describes it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DZvaN9tm5taf5avUvVtmyq


Generated by Claude Code

…rror-needs-network)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DZvaN9tm5taf5avUvVtmyq
@probonopd

Copy link
Copy Markdown
Member Author

Withdrawn: the catalog never runs applications with network access, not even for a diagnosis. An application that wants to be in the catalog must work without network, or at least show a message. The hint for error-app-exits will say so instead.


Generated by Claude Code

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.

1 participant