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

roachtest: post issues #24894

Closed
tbg opened this issue Apr 18, 2018 · 11 comments
Closed

roachtest: post issues #24894

tbg opened this issue Apr 18, 2018 · 11 comments
Assignees
Labels
A-build-system C-cleanup Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior. S-3-productivity Severe issues that impede the productivity of CockroachDB developers.
Milestone

Comments

@tbg
Copy link
Member

tbg commented Apr 18, 2018

We run roachtest regularly on both master and release-2.0. A few tests are failing regularly, and with the expected growth in the number of tests this is unlikely to become better anytime soon.

roachtest failures should match the experience from our unit and acceptance testing in that they open issues for failed runs. This makes these failures visible to triage and assignable.

We do have notifications in a slack channel, but that does not create the same sense of responsiblity and is already not working well. These notifications are an auxiliary tool at best.

@tbg tbg assigned benesch and tbg Apr 18, 2018
@tbg tbg added this to the 2.0.x milestone Apr 18, 2018
@vilterp
Copy link
Contributor

vilterp commented Apr 18, 2018

How do we create GH issues for unit test runs currently? Is it a script that runs inside of TC, triggered by failed runs?

@benesch
Copy link
Contributor

benesch commented Apr 18, 2018 via email

@tbg
Copy link
Member Author

tbg commented Apr 19, 2018

I'm putting this in CF&S for now, but once the builddevelopment support team is ramping up, feel free to steal this from me (if it's still open -- we need to do this ASAP).

@knz knz added C-cleanup Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior. S-3-productivity Severe issues that impede the productivity of CockroachDB developers. and removed high priority labels Apr 24, 2018
@tbg
Copy link
Member Author

tbg commented May 15, 2018

@petermattis bumping this. Triaging is hard without it.

@petermattis
Copy link
Collaborator

I wonder if we can just pipe the roachtest output through cmd/github-post, similar to what build/teamcity-stress.sh does.

@petermattis
Copy link
Collaborator

github-post works if we're using the normal output, but not if we're using the --teamcity output. Hrmm. I suppose I could extract the logic from github-post into a library and use it directly in roachtest. @benesch probably has a better idea.

@benesch
Copy link
Contributor

benesch commented May 15, 2018 via email

@petermattis
Copy link
Collaborator

@benesch Thanks for the pointer. Looks like it should work, though teamcity-post-failures.py doesn't do the de-duplication that github-post does.

One advantage to having roachtest post issues directly is that we could distinguish between stable and unstable failures.

@benesch
Copy link
Contributor

benesch commented May 16, 2018 via email

@petermattis
Copy link
Collaborator

My thought was to pull the guts of github-post into a library and use that directly from roachtest. Converting teamcity-post-failures would be a natural follow-on step when I rewrite that python script in Go. (The xml parsing in Go looks real easy, so I don't expect that to take much time at all).

@benesch
Copy link
Contributor

benesch commented May 16, 2018 via email

petermattis added a commit to petermattis/cockroach that referenced this issue May 17, 2018
craig bot pushed a commit that referenced this issue May 17, 2018
25596: cmd/github-post: refactor issue posting into a library r=tschottdorf a=petermattis

See #24894

Release note: None

Co-authored-by: Peter Mattis <petermattis@gmail.com>
petermattis added a commit to petermattis/cockroach that referenced this issue May 17, 2018
Refactored determination of the issue assignee, splitting it up between
determining the author of the failing line of code and the mapping the
author email to a github login.

Fixes cockroachdb#24894

Release note: None
craig bot pushed a commit that referenced this issue May 17, 2018
25621: roachtest: post github issues on failure r=tschottdorf a=petermattis

Refactored determination of the issue assignee, splitting it up between
determining the author of the failing line of code and the mapping the
author email to a github login.

Fixes #24894

Release note: None

Co-authored-by: Peter Mattis <petermattis@gmail.com>
@craig craig bot closed this as completed in #25621 May 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-system C-cleanup Tech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior. S-3-productivity Severe issues that impede the productivity of CockroachDB developers.
Projects
None yet
Development

No branches or pull requests

5 participants