go: cmd/go/internal/modfetch: TestCodeRepo failures due to external repo changes
$ gotip version
go version devel +fe562cebf1 Sun Nov 18 16:13:13 2018 +0000 linux/amd64
To reproduce:
$ cd src/cmd/go/internal/modfetch
$ gotip test -run=TestCodeRepo
--- FAIL: TestCodeRepo (58.16s)
--- FAIL: TestCodeRepo/gopkg.in_yaml.v2/v2 (3.32s)
coderepo_test.go:368: info.Version = "v2.2.2-0.20181115110504-51d6538a90f8", want "v2.2.1"
coderepo_test.go:371: info.Name = "51d6538a90f86fe93ac480b35f37b2be17fef232", want "5420a8b6744d3b0345ab293f6fcba19c978f1183"
coderepo_test.go:374: info.Short = "51d6538a90f8", want "5420a8b6744d"
coderepo_test.go:377: info.Time = 2018-11-15 11:05:04 +0000 UTC, want 2018-03-28 19:50:20 +0000 UTC
FAIL
exit status 1
FAIL cmd/go/internal/modfetch 60.812s
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 1
- Comments: 30 (17 by maintainers)
Commits related to this issue
- cmd/go/internal/modfetch: update TestCodeRepo for gopkg.in/yaml.v2 v2.2.2 I think we ought to make these tests hermetic, but in the meantime we should at least make them pass. Fixes #27692 Updates #... — committed to golang/go by bcmills 6 years ago
- cmd/go/internal/modfetch: update TestCodeRepo for gopkg.in/yaml.v2 New release, it broke again the longtest builder. Align the expected data with the current release. Making these tests independent ... — committed to golang/go by ALTree 5 years ago
- cmd/go/internal/modfetch: update TestCodeRepo for gopkg.in/yaml.v2 The new yaml.v2 release broke the longtest builder. Update the expected data. Updates #28856 Change-Id: I98ec9e32e55bdb6b26b67e46d... — committed to golang/go by andybons 5 years ago
- cmd/go/internal/modfetch: update TestCodeRepo for gopkg.in/yaml.v2 again Update the expected data to fix the longtest builder. Updates #28856 Change-Id: I7fb6ee72e8469d974561b4b4057f40142f5b3654 Re... — committed to golang/go by tklauser 5 years ago
- [release-branch.go1.13] cmd/go/internal/modfetch: update TestCodeRepo for gopkg.in/yaml.v2 again Update the expected data to fix the longtest builder. Updates #28856 Change-Id: I7fb6ee72e8469d97456... — committed to golang/go by tklauser 5 years ago
- [release-branch.go1.12] cmd/go/internal/modfetch: update TestCodeRepo for gopkg.in/yaml.v2 again Update the expected data to fix the longtest builder. Updates #28856 Change-Id: I7fb6ee72e8469d97456... — committed to golang/go by tklauser 5 years ago
- cmd/go/internal/modfetch: remove non-hermetic test The test for gopkg.in/yaml.v2@v2 assumes that there are no future upstream releases. That assumption empirically does not hold. Backporting fixes to... — committed to golang/go by bcmills 5 years ago
- [release-branch.go1.13] cmd/go/internal/modfetch: remove non-hermetic test The test for gopkg.in/yaml.v2@v2 assumes that there are no future upstream releases. That assumption empirically does not ho... — committed to golang/go by bcmills 5 years ago
- [release-branch.go1.12] cmd/go/internal/modfetch: remove non-hermetic test The test for gopkg.in/yaml.v2@v2 assumes that there are no future upstream releases. That assumption empirically does not ho... — committed to golang/go by bcmills 5 years ago
- cmd/go/internal/modfetch: update expected tags for TestCodeRepoVersions Updates #28856 Change-Id: I89c564cefd7c5777904bc00c74617dab693373bf Reviewed-on: https://go-review.googlesource.com/c/go/+/265... — committed to golang/go by tklauser 4 years ago
- cmd/go/internal/modfetch: drop gopkg.in/russross/blackfriday.v2 from TestCodeRepoVersions Follow-up for CL 265819. Given the -pre tag added recently, a new stable version is likely tagged soon. This... — committed to golang/go by tklauser 4 years ago
- [release-branch.go1.15] cmd/go/internal/modfetch: drop gopkg.in/russross/blackfriday.v2 from TestCodeRepoVersions Follow-up for CL 265819. Given the -pre tag added recently, a new stable version is ... — committed to golang/go by tklauser 4 years ago
- [release-branch.go1.14] cmd/go/internal/modfetch: drop gopkg.in/russross/blackfriday.v2 from TestCodeRepoVersions Follow-up for CL 265819. Given the -pre tag added recently, a new stable version is ... — committed to golang/go by tklauser 4 years ago
Happened again, I sent the patch above to align the expected data for now, waiting for the test to become independent from external repositories.
longtest builders broken again: https://build.golang.org/log/f95a05162e528c34983f8d4604d76a6f427f86e6
@dmitshur, this issue is specifically about
TestCodeRepo
, so separate issues would probably be good. Ideally, we should resolve these by starting up a test-local server rather than merely moving the tests tovcs-test.golang.org
, but that’s a lot of work…Happened again, see https://build.golang.org/log/8f1046f8a9e1125cfab4e50441e865afc7aafa72
Sent https://golang.org/cl/198557
Happened again.
From https://build.golang.org/log/b73d1e539a95bac69fec321f90c305f4b69944fe
Why are we running tests against repos that are active and not controlled by us? Seems that we should be hitting repos that we control and are pre-baked.
@bradfitz