nelsonlaptop has two runner instances; pwsh missing on the legacy one #165
Labels
No labels
4-29
bug
documentation
duplicate
enhancement
flow improvement
good first issue
help wanted
invalid
investigating
issue-agent
issue-agent-blocked
issue-agent-complete
issue-agent-pr-open
issue-agent-runner-nelsonlaptop
issue-agent-runner-nelsonpc
issue-agent-runner-nelsonpc-user
issue-agent-running
needs-verification
next to do
question
queue
recon
relics-stats-onboarding
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/spirelens#165
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Symptom
Issue-agent runs that route to
nelsonlaptopfail intermittently atRefresh checkout to latest main(or any pwsh-shelled step) with:Reproducing runs:
In both runs, test-plan succeeded on one runner instance and implementation failed on the other in parallel.
Root cause
The laptop has two registered Actions runner services, both labeled the same (
self-hosted,windows,issue-agent-worker,issue-agent-runner-nelsonlaptop). GitHub round-robins between them. Pwsh is installed for one, missing from the other.Workspace paths from the failing runs identify the bad instance:
That
card-utility-statsdirectory name is leftover from before #69 renamed CardUtilityStats → SpireLens. The runner survived the GitHub rename via redirect (git fetch nelsong6/spirelensworks fine in the log) but its environment wasn't re-baked when whatever installed pwsh on the new runner ran.The healthy instance lives at
D:\actions-runner-user\…(userNelson).Fix — pick one (or both)
(1) Install pwsh system-wide on the laptop. Easiest, durable, immune to drift. Both runners pick it up on the next process spawn.
After install, no service restart needed — the next workflow step that asks for
pwshwill find it on PATH.(2) Decommission the legacy
card-utility-statsrunner. Good hygiene regardless. Cleans up the rename leftover.Recommendation: do (1) first — fastest path to working. Do (2) after, since the legacy directory is just clutter that'll bite again if anyone re-bakes pwsh on one runner but not the other.
Verification after fix
Re-trigger #142 by adding the
issue-agentlabel. Watch for the implementation job to land on either runner without the pwsh-not-found error. If it succeeds through verify, that also empirically validates two pending fixes that haven't been exercised yet:Both were merged but never tripped because earlier failures short-circuited.
Local follow-up from nelsonlaptop:
The failure is confirmed, but the root-cause wording above is a bit off.
Actual state on this laptop:
issue-agent-nelsonlaptop-aandissue-agent-nelsonlaptop-b.C:\actions-runner-card-utility-stats.C:\actions-runner-card-utility-stats-implementation.\SpireLens Issue Agent Interactive Runner..envfile that explicitly setPath=...and omittedC:\Users\nelsonlaptopuser\AppData\Local\Microsoft\WindowsApps, which is wherepwsh.exeresolves on this machine.I updated
C:\actions-runner-card-utility-stats\.envto prependC:\Users\nelsonlaptopuser\AppData\Local\Microsoft\WindowsApps, then restarted the scheduled task. Both laptop runners are now online and idle. This still needs to be validated by the next job that lands on runner A; I did not requeue anything from this issue.Closing during repository issue cleanup. If this becomes active work again, we can reopen or recreate it as a fresh, specific task.