Repository navigation
[Sprint] sprint-loop-32 - #28
Merged
Merged
Conversation
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.
Sprint plan — 2026-05-03 — sprint-loop-32
Sprint goal
Raise automated regression coverage for two command scripts that currently lack bats specs:
on-change(file-watch / rerun loop) andminikube-test-environment(cluster bootstrap). Both tickets are test-only work aligned with existing patterns (tests/kind-test-environment.bats,helpers::isolate_home). The Linear shell-scripts project had only two Backlog items after filters; this sprint takes both and moves them to Todo so implementation can proceed without scope creep beyond those scripts.Capacity note: Target selection range was 3–7 issues; only two eligible Backlog issues existed after team/project/status/label/dependency filters, so the sprint is intentionally smaller.
Selected issues
SUR-2179 — Test: add bats coverage for on-change
bash/on-change: polling / forced-rerun loop (wait_for_change,run_command),read -tbehavior,WorkingDirdefaulting, log output, and option wiring. References SUR-1861-class risk (globalCOMMANDclobber). Suggested approach: mockfind/cksumor deterministic hooks; at minimum testoptions::exports and error paths for missingWorkingDir.--, and obvious error paths, reducing regressions before deeper integration tests.tests/on-change.bats(or agreed sprint test) exists and follows repo bats conventions (setuploadshelpers.bash,helpers::isolate_home).WatchDir,WorkingDir,WaitTimeor documented defaults) and failure when required inputs are missing.--command argv is passed through to execution path without mutation (per issue intent).make test/ targeted bats run passes locally and in CI expectations.bash/on-changefully, mirror patterns from similar command tests, then add cases from simplest (help/errors) to argv-through---.SUR-2184 — Test: add bats coverage for minikube-test-environment
tests/minikube-test-environment.bats(none today); parity gap vskind-test-environmentcoverage. Targetbash/minikube-test-environment: help/subcommands, env defaults, array wiring. Use stubs onPATHforminikube/kubectl/helm,MINIKUBE_DRIVER=docker, or source-only paths similar toKIND_TEST_ENVIRONMENT_SOURCE_ONLYpattern if the script supports it.tests/minikube-test-environment.batsexercises help and/or parse-only paths without requiring a real cluster.SOURCE_ONLY-style mode used so CI stays hermetic (document pattern in test comments only if needed).tests/kind-test-environment.bats(stub dir,PATHprefix, temp logs where useful).make test/ targeted bats passes.bash/minikube-test-environmentbeyond what tests require.tests/kind-test-environment.batsfirst, then map analogous entry points inminikube-test-environment.Risks + mitigations
on-changetests may flake on real timing (read -t)minikube-test-environmentmay lack a clean source-only hookPATHtests drift when script renames internalstests/*.batsstyle; runpre-commit run --all-filesor bats + shellcheck as in AGENTS.md before merge.Out of scope
make publish), documentation tarballs, or unrelated script coverage.Linear Evidence
ce9ebfde-ff2b-4f54-90f1-c388591ca110, key SUR)a43901a0-b02b-4009-aae1-a6e8903d127d)list_issueswithproject: "shell-scripts",state: "Backlog"(cross-checked withteam: "Surinis"); per-issueget_issuewithincludeRelations: true;list_issueswithparentIdfor sub-issue checks;list_commentsfor SUR-2179 and SUR-2184 (no comments).[][](open PR file list was empty)Sub-issue Status
No selected issues have sub-issues in Linear. No parents were skipped for incomplete children.
Linear State Transitions