fix: fix: smoke test leaks orphaned mock-forgejo.py processes (#196) #204
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-196"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #196
Changes
AI Review
Summary
This PR fixes orphaned
mock-forgejo.pyprocesses left behind by the smoke test (issue #196) using two complementary mechanisms:$!to a PID file after backgrounding the mock server, then kills it after the test step.cleanup(): Addspkill -f mock-forgejo.pyin thecleanup()function, already registered withtrap cleanup EXIT(line 38).Analysis
smoke-init.sh.$!correctly captures the PID of the backgrounded python process before the next command runs.2>/dev/null || true) are appropriate since the process may have already exited.No issues found.
Verdict
APPROVE — Correct dual-layered fix: EXIT trap in script handles failures, PID-based kill in CI handles normal completion.
Reviewed at
a8eba51| AGENTS.mdAI Review: APPROVE — Correct dual-layered fix: EXIT trap in script handles failures, PID-based kill in CI handles normal completion.