Skip to content

Fix delete test failure in hub environment (#71)#122

Closed
scion-gteam[bot] wants to merge 1 commit into
mainfrom
scion/dev-issue-71b
Closed

Fix delete test failure in hub environment (#71)#122
scion-gteam[bot] wants to merge 1 commit into
mainfrom
scion/dev-issue-71b

Conversation

@scion-gteam
Copy link
Copy Markdown

@scion-gteam scion-gteam Bot commented Jun 2, 2026

Summary

  • Fix TestDeleteStopped_RequiresGroveContext failing when SCION_PROJECT_ID is set in the environment (e.g., inside hub-connected containers)
  • The test was unsetting SCION_HUB_ENDPOINT, SCION_HUB_URL, and SCION_GROVE_ID to disable hub context detection, but IsHubContext() also checks SCION_PROJECT_ID — the missing unset caused FindProjectRoot() to return a synthetic path instead of failing, leading to a Docker call that errors in environments without Docker

Refs #71

Test plan

  • go test ./cmd/... passes
  • go test ./pkg/hub/... passes
  • Verified TestDeleteStopped_RequiresGroveContext passes in isolation
  • Verified TestDeleteStopped_AcceptsGlobalFlag still passes

Also unset SCION_PROJECT_ID when clearing hub context env vars, since
IsHubContext() checks all four env vars and a leftover SCION_PROJECT_ID
causes FindProjectRoot() to return a synthetic path instead of failing.
@ptone ptone closed this Jun 5, 2026
@scion-gteam scion-gteam Bot deleted the scion/dev-issue-71b branch June 6, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant