CI's SWIFT_BACKTRACE setting breaks tests that read stderr
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read .github/workflows/test.yml and check where SWIFT_BACKTRACE is set in the test job. Remove it from the job environment or scope it to the step that needs it, as the issue suggests. Confirm the affected stderr-reading tests pass in CI, including the remote-host tests, docket test, and RemoteHookTests stubs.
Written by the indexing model from the issue text.
Description
#711 set SWIFT_BACKTRACE: enable=yes in .github/workflows/test.yml. On the CI runners every Swift executable then prints swift runtime: backtrace-on-crash is not supported for privileged executables. on stderr, and tests that read a tool's stderr fail.
On #709's run at 38dec607 (run 47420475078), with #715's warning fix in place, swift-test (1) and (3) failed this way:
- About 20 remote-host tests in PauseTests, RemoteCardTests, RemoteRemovalTests, RemoteCleanupTests, RemoteCLITests, RemoteHookTests, and RemoteLinkGuardTests time out with "timed out waiting for mini's link to be unreachable with the refusal".
DocketTests.aBrokenDocketPutsTheRowInNeedsYouUntilAPollSucceedssees "can't read docket: docket exited: swift runtime: backtrace-on-crash …" as the reason.RemoteHookTestsstub tests find that message in stderr where they expect it empty or exact.
The same tests pass locally in a few seconds. Main's own runs stop earlier, at the warning check that #715 fixes, so main hasn't shown this failure yet.
Removing SWIFT_BACKTRACE from the test job's env, or setting it only for the step that needs it, should fix this.
- Dominant language
- Swift
- Stars
- 0
- Forks
- 1
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 414
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from haacked/switchboard
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
haacked/switchboard#662 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
haacked/switchboard#658 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
haacked/switchboard#656 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
haacked/switchboard#628 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
haacked/switchboard#625 ·
Maintainers usually reply within 1 day
All issues in haacked/switchboard
Similar issues
-
validate_app_localizations: harden stringsdict checks (None format key, count-less 'one' in ru/pl)Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OneBusAway/onebusaway-ios#2137 ·
Maintainers usually reply within 1 day
-
area: notifications S3: minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
manaflow-ai/cmux#74631 · 1 comment ·
Maintainers usually reply within 1 day
-
area: models enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rexmhall09/TUFF#69 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nikitabobko/AeroSpace#2427 · 1 comment ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day