tests/vm_helpers.py: harden keyring unlock exit check, PTY drain, and coredumpctl status
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
- Domain
- operating-systems, testing
Research direction
Start by reading tests/vm_helpers.py and the changes in PR #473, especially keyring_session_shell_command, run_logged_probe, and assert_no_coredumps. Trace how each helper handles command failure, PTY output after child exit, and coredumpctl list status. Done when unlock failures propagate under set -e, trailing PTY bytes are drained, and only status 1 with no coredump lines passes.
Written by the indexing model from the issue text.
Description
Follow-up nits from reviewing #473 (3cd9c70e) in tests/vm_helpers.py:
-
keyring_session_shell_commandmasksgnome-keyring-daemonexit status underset -e:
eval "$(printf %s ... | gnome-keyring-daemon --daemonize --unlock --components=secrets)"evaluates to exit status0in POSIXshwhen the command substitution fails with empty stdout (e.g.sh -c 'set -e; eval "$(false)"; echo SURVIVED'printsSURVIVED). The subsequentNameHasOwnerloop still catches an unowned bus indiscord-startup, but assigning first (keyring_env=$(printf ... | gnome-keyring-daemon ...); eval "$keyring_env") will makeset -eabort immediately on unlock failure for all callers. -
run_logged_probecan drop trailing PTY output on fast exit:
Checkingif proc.poll() is not None: breakcan leave buffered bytes unread onmasterif the child exits right after writing (especially in fast-fail paths). Drainmasteruntil EOF/EIObefore breaking. -
assert_no_coredumpsaccepts any non-zero exit code:
assert status != 0 and not lineswould silently pass ifcoredumpctlfailed to exec (127) or died with a signal. Requirestatus == 1(the exit codecoredumpctl listuses when no coredumps exist).
- Dominant language
- Rust
- Stars
- 38
- Forks
- 3
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 103
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 bitemyapp/sekka
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
approved
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
fritzprix/libr-agent#3266 ·
Maintainers usually reply within 1 day
-
Frame::second_to_frame truncates f32 product, causing periodic off-by-one framesPossibly taken @ShamanicArts claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
dmtrKovalenko/fframes#296 ·
Maintainers usually reply within 1 day