test(release): prove completion generation never receives runner configuration paths

Open Beginner friendly
#8,255 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
cli, testing

Research direction

Start with pkg/cli/cmd/release_completions_test.go and read how the existing credential canary test sets up the fixture and checks the fake binary's inputs. Seed distinct runner values for HOME, XDG_CONFIG_HOME, and XDG_CACHE_HOME, then have the fake binary record the paths it receives. Done when the test fails if any runner path reaches completion generation and passes with isolated paths.

Written by the indexing model from the issue text.

Description

🤖 Generated by the Agentic Engineer

Why

The release completion tests in pkg/cli/cmd/release_completions_test.go prove that a credential canary from the runner never reaches completion generation. They do not yet prove the same for the runner's configuration paths (HOME, XDG_CONFIG_HOME, XDG_CACHE_HOME). A change that passed a runner path through could still pass the tests.

What

Seed distinct runner configuration paths in the fixture, have the fake binary record the paths it receives, and assert they are the isolated ones, never the runner's.

Acceptance criteria

  • The test fails when the completion hook forwards a runner configuration path, and passes on current code.

Split out of devantler-tech/ksail#8162 (review finding there) so that PR can converge.

Dominant language
Go
Stars
166
Forks
13
Avg merge
7h 4m
Merged PRs (30d)
388

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devantler-tech/ksail

All issues in devantler-tech/ksail

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.