Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/build: number of test failures #22254

kevinburke opened this issue Oct 13, 2017 · 2 comments

x/build: number of test failures #22254

kevinburke opened this issue Oct 13, 2017 · 2 comments
Builders x/build issues (builders, bots, dashboards) help wanted


Copy link

kevinburke commented Oct 13, 2017

In lieu of an automated builder, I run the x/build tests in Travis CI. @andybons has fixed two problems with cmd/cl and with depedencies, but this has revealed a number of underlying test failures:

--- FAIL: TestConnAgainstNetTest (2.03s)
	revdial_test.go:236: warning: the revdial's SetWriteDeadline support is not complete; some tests involving write deadlines known to be flaky
    --- PASS: TestConnAgainstNetTest/BasicIO (0.41s)
    --- PASS: TestConnAgainstNetTest/PingPong (0.19s)
    --- PASS: TestConnAgainstNetTest/RacyRead (0.34s)
    --- FAIL: TestConnAgainstNetTest/RacyWrite (0.42s)
    	testing.go:610: race detected during execution of test

TestCorpusCheck causes the entire Go corpus to download to the test instance, which eventually runs out of memory.

2017/10/13 18:26:13 Downloading 9495471 bytes of ...
2017/10/13 18:26:13 wrote /home/travis/.cache/golang-maintner/0027.growing.mutlog
fatal error: runtime: out of memory

Also, we need to update the go-github version for the gitmirror Docker file, I believe; IsPullRequest was added very recently.

src/ d.b.IsPullRequest undefined (type *github.Issue has no field or method IsPullRequest)
Removing intermediate container 65ca938e2dcb
The command '/bin/sh -c go install' returned a non-zero code: 2
make: *** [build0] Error 2
@gopherbot gopherbot added this to the Unreleased milestone Oct 13, 2017
@gopherbot gopherbot added the Builders x/build issues (builders, bots, dashboards) label Oct 13, 2017
Copy link
Contributor Author

These may be good issues for beginners; here's the .travis.yml file I'm using.

sudo: required
language: go

  - docker

  # Hack to work around
  - go get

  - 1.8
  - 1.9
  - tip

  - go vet ./... || true
  - go test -v -race ./...
  - pushd cmd/coordinator && make docker-staging && popd
  - pushd cmd/gitmirror && make docker-staging && popd
  - pushd cmd/gopherbot && make docker-staging && popd
  - pushd cmd/pubsubhelper && make docker-staging && popd
  - pushd devapp && make docker-staging && popd
  - pushd maintner/maintnerd && make docker-staging && popd

Copy link

judepereira commented Oct 20, 2017

What do you think is best for TestCorpusCheck? Maybe generate some fake test data on the fly? I think that'd involve fixing other tests where they're explicitly looking for a particular commit ID, parent and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Builders x/build issues (builders, bots, dashboards) help wanted
None yet

No branches or pull requests

3 participants