Skip to content

Make envtest offline-capable and factor out TestMain boilerplate - #792

Merged
Dmitry Berkovich (dberkov) merged 1 commit into
agent-substrate:mainfrom
HavenXia:envtest-offline
Aug 7, 2026
Merged

Make envtest offline-capable and factor out TestMain boilerplate#792
Dmitry Berkovich (dberkov) merged 1 commit into
agent-substrate:mainfrom
HavenXia:envtest-offline

Conversation

@HavenXia

@HavenXia Haven Xia (HavenXia) commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

setup-envtest use with no version re-resolves "latest" against the remote release index on every run, so the envtest-backed packages needed network even with fully cached binaries.

This PR pins the control plane to 1.36.x, and fold the three per-package envtest into internal/testenv.Start, which also honors -short: go test -short ./... skips the envtest-backed packages and is the guaranteed-offline path.

Have Claude to help me fix it

Fixes #789

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@dberkov
Dmitry Berkovich (dberkov) merged commit 3d33153 into agent-substrate:main Aug 7, 2026
11 checks passed
Comment thread hack/run-tool.sh
shift

ROOT="$(git rev-parse --show-toplevel)"
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

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.

pervasive envtest makes it hard to run our tests on a plane

3 participants