]> Cypherpunks repositories - gostls13.git/commit
cmd/go: redirect vcs-test.golang.org repo URLs to a test-local server
authorBryan C. Mills <bcmills@google.com>
Sat, 30 Jul 2022 06:54:32 +0000 (02:54 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 25 Oct 2022 13:00:34 +0000 (13:00 +0000)
commitd5155f61928a55e570beaa214465bc48ddd2c16c
tree78af44035e9dabe8156d930bb43ff868a2a120af
parent55eaae452cf69df768b2aaf6045db22d6c1a4029
cmd/go: redirect vcs-test.golang.org repo URLs to a test-local server

The new server reconstructs the vcs-test repos on the fly using
scripts that run the actual version-control binaries.

This allows those repos to be code-reviewed using our normal tools —
and, crucially, allows contributors to add new vcs-test contents
as part of a contributed CL.

It also prevents failures due to network errors reaching
vcs-test.golang.org (such as when developing offline), and allows us
to iterate on the repo contents without dealing with annoying and
unpredictable GCS caching behavior.

We can't quite turn down vcs-test.golang.org yet — this server doesn't
yet handle "go-import" metadata (and related authentication behaviors),
and doesn't serve Subversion repos.

But we're getting much closer!

For #27494.

Change-Id: I233fc718617aed287b0f7248bd8cfe1e5cebe96b
Reviewed-on: https://go-review.googlesource.com/c/go/+/421455
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
49 files changed:
src/cmd/go/go_test.go
src/cmd/go/internal/get/get.go
src/cmd/go/internal/modfetch/codehost/git_test.go
src/cmd/go/internal/modfetch/coderepo_test.go
src/cmd/go/internal/modload/query_test.go
src/cmd/go/internal/vcs/vcs.go
src/cmd/go/internal/vcweb/bzr.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/dir.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/fossil.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/git.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/hg.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/script.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/vcstest/vcstest.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/vcstest/vcstest_test.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/vcweb.go [new file with mode: 0644]
src/cmd/go/internal/vcweb/vcweb_test.go [new file with mode: 0644]
src/cmd/go/internal/web/api.go
src/cmd/go/internal/web/bootstrap.go
src/cmd/go/internal/web/http.go
src/cmd/go/script_test.go
src/cmd/go/testdata/script/reuse_git.txt
src/cmd/go/testdata/vcstest/README [new file with mode: 0644]
src/cmd/go/testdata/vcstest/bzr/hello.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/fossil/hello.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/commit-after-tag.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/empty-v2-without-v1.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/emptytest.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/gitrepo1.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/hello.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/insecurerepo.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/mainonly.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/missingrepo.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/modlegacy1-new.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/modlegacy1-old.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/no-tags.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/odd-tags.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/prefixtagtests.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/querytest.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/retract-pseudo.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/semver-branch.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/tagtests.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/v2repo.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/v2sub.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/v3pkg.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/git/vgotest1.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/hg/custom-hg-hello.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/hg/hello.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/hg/hgrepo1.txt [new file with mode: 0644]
src/cmd/go/testdata/vcstest/hg/vgotest1.txt [new file with mode: 0644]