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

travis.yml: add race detector job for Swarm #19148

Merged
merged 5 commits into from
Feb 22, 2019

Conversation

frncmx
Copy link
Contributor

@frncmx frncmx commented Feb 21, 2019

We had more than a dozen of Data Races in Swarm code base. Go has a nice builtin race detector tool. So we should have a CI job that leverages the tool.

Notes:

  • Some jobs are freshly restricted to repo = ethereum/go-ethereum . That is just an improvement, I can let go. I noticed the mentioned job run on my fork, they still passed (strangely), but I did not have the credentials.
  • The most important part is only (intended) to impact [ethersphere/go-ethereum], but this is still a common code base so we need more reviewers.

resolves ethersphere/swarm#741
resolves ethersphere/swarm#1102

Ferenc Szabo added 5 commits February 20, 2019 20:59
`go test -race ./swarm...` sometimes fails because there is no
output produced for 10 minutes and Travis just aborts the build.
As `t.Log()` holds the buffer until the test does not pass or fail.
We had more than a dozen of Data Races in our code base. Go has
a nice builtin race detector tool. So we should have a CI job
that at least notifies us timely if we introduce a new race.

1st let's just have a daily CRON job triggered on
ethersphere/go-ethereum. Later as the job gets stable, we can start
using it for ethersphere PRs.

resolves: #741
As we only deal with artifacts in the upstream repo.
As we only deal with artifacts there and secretes are not even
available on our forks.
As the completion time is around ~15m currently, so we can run
it against every push/PR. Still, just on ethersphere.
@skylenet skylenet added this to the 1.9.0 milestone Feb 22, 2019
@fjl fjl changed the title travis: Add CI race detector job for Swarm travis.yml: add race detector job for Swarm Feb 22, 2019
@fjl fjl merged commit d9adcd3 into ethereum:master Feb 22, 2019
@frncmx frncmx deleted the ci-race-detector branch February 22, 2019 13:21
kiku-jw pushed a commit to kiku-jw/go-ethereum that referenced this pull request Mar 29, 2019
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.

Make and Keep Swarm's Code Race Free Create a separate CI job for race detection
6 participants