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

Intermittent build failures in CI #1179

Closed
wolffcm opened this issue Apr 16, 2019 · 2 comments · Fixed by #1180
Closed

Intermittent build failures in CI #1179

wolffcm opened this issue Apr 16, 2019 · 2 comments · Fixed by #1180
Assignees

Comments

@wolffcm
Copy link

wolffcm commented Apr 16, 2019

The build seems to be failing, but only sometimes, since the compiler was upgraded:

https://circleci.com/gh/influxdata/workflows/flux/tree/master

I attempted to fix new errors reported by staticcheck and go vet, but there are still mysterious build failures when running tests.

At this time the most recent build passed, but the previous one failed test-race with only this:

...
ok  	github.com/influxdata/flux/stdlib/http	5.265s
FAIL	github.com/influxdata/flux/stdlib/influxdata/influxdb [build failed]
ok  	github.com/influxdata/flux/stdlib/influxdata/influxdb/v1	5.368s
...
@mark-rushakoff
Copy link
Contributor

/usr/local/go/pkg/tool/linux_amd64/link: signal: killed

See golang/go#26186 (comment). Last I checked, CircleCI environment reports 36 CPUs available, but then the Docker environment only has 2 available. That makes Go try to do too much in parallel during go test.

Assuming you don't want to modify the Makefile, you can edit .circle/config.yml to set the environment variable GOFLAGS=-p=8 (8 being an arbitrary guess at a value high enough to run and still pass).

@wolffcm
Copy link
Author

wolffcm commented Apr 16, 2019

Thanks for this tip, I'll try that.

@wolffcm wolffcm self-assigned this Apr 16, 2019
wolffcm pushed a commit that referenced this issue Apr 16, 2019
davidgs pushed a commit to davidgs/flux that referenced this issue May 1, 2019
brew0722 pushed a commit to Finschia/finschia-sdk that referenced this issue Mar 9, 2021
Golang build failure occurs when unit_test in circleci.
Please refer to the following link.
influxdata/flux#1179
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 a pull request may close this issue.

2 participants