Stop GPG agent before removing signature-verification home - #1273
Merged
Merged
Conversation
Closed
2 of 5 tasks
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix cleanup failure due to EBUSY error in GPG signature verification
Stop GPG agent before removing signature-verification home
Sep 28, 2026
brunoborges
marked this pull request as ready for review
September 28, 2026 23:47
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation, generated bundles, and tests consistently address the reported NFS cleanup failure.
Review effort: Balanced
Findings: None
What changed in this PR
Stops temporary GPG agents before deleting signature-verification homes, preventing NFS cleanup failures.
Changes:
- Extracts reusable best-effort GPG agent shutdown.
- Applies shutdown to verification cleanup.
- Adds success, failure, and unavailable-
gpgconfcoverage.
| File | Description |
|---|---|
src/gpg.ts |
Stops agents before home removal. |
__tests__/gpg.test.ts |
Covers all cleanup outcomes. |
dist/setup/81.index.js |
Updates generated setup bundle. |
dist/setup/220.index.js |
Updates generated setup bundle. |
dist/setup/463.index.js |
Updates generated setup bundle. |
dist/cleanup/index.js |
Updates generated cleanup bundle. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
brunoborges
approved these changes
Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
On self-hosted runners with NFS-backed
RUNNER_TEMP, signature verification can succeed but the step can fail while removing an agent-held.nfs*file.gpgconfis unavailable.Related issue:
NFS-backed
RUNNER_TEMPsignature-verification cleanup failure.Download URL:
Not applicable; no new distribution.
License:
Not applicable; no new distribution.
Check list: