Skip to content

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 20 Oct 21:25
· 43 commits to main since this release
d6aa903

Fixes that make impact find tests it was missing, found by breaking code on purpose in cobra and Kubernetes and checking Sprout picked every failing test.

Fixed

  • --symbol missed packages that call a method on the changed type. A call like cmd.Name() names no package, so its file and tests were left out: for NewResource in Kubernetes, 67 test packages instead of 95. They're found now. (#105)
  • Tests that reach code through pytest fixtures were missed. pytest gives a conftest.py's fixtures to every test below it without an import, so changing a FastAPI route found no tests. impact, dependents and context now follow conftest.py to those tests. (#106)
  • impact --commit in a shallow clone said "Nothing changed". CI checkouts are shallow by default, so CI silently got nothing affected. It now says to fetch the parent; a repository's first commit lists its files; an unknown commit is named as you typed it. (#107)
  • Imports inside template literals counted as real imports. Code a test builds in a backtick string isn't the file's own import: release-drafter's false links went from 6 to 0. (#104)
  • The narrowed go test -run broke in Windows cmd: it's now double-quoted, which works in every shell. (#104)

Improved

  • --symbol works in every language Sprout reads, by name: the files importing the changed one that mention it, and what depends on them. Go keeps its function-by-function trace. (#106)
  • go test -run narrows packages importing the change too, not only the changed package, when they reach it directly. (#105)
  • --symbol on a widely used type is faster: ObjectMeta in Kubernetes takes 4.6 s, down from 7.75 s on main before this release. (#109)
  • MCP: passing symbol without one file explains the files argument, in the agent's terms. (#108)

Install: brew install sprout-devlabs/tap/sprout · scoop bucket add sprout https://github.com/Sprout-DevLabs/scoop-bucket; scoop install sprout · .deb/.rpm/.apk below · go install github.com/Sprout-DevLabs/sprout@v0.5.1 · or curl -fsSL https://sprout-devlabs.github.io/sprout-web/install.sh | sh