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

bazel, ci: use test2json format for nightly logging #72611

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

rail
Copy link
Member

@rail rail commented Nov 10, 2021

Fixes #71930

Previously, bazel based nightlies didn't report errors as github issues.

This PR uses a custom feature of rules_go to save the log output in
test2json format. A new shell function is added to post-process the
generated log and ports the run_json_test features to submit failures
to GitHub.

Release note: None

@rail rail added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-dev-inf A-ci Continuous Integration labels Nov 10, 2021
@rail rail self-assigned this Nov 10, 2021
@rail rail requested a review from a team as a code owner November 10, 2021 15:09
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rail rail force-pushed the json_output_file_rules_go branch 5 times, most recently from 34668fc to e047827 Compare November 12, 2021 16:03
@rail rail force-pushed the json_output_file_rules_go branch 15 times, most recently from e268940 to 9c2511c Compare November 25, 2021 15:04
Fixes cockroachdb#71930

Previously, bazel based nightlies didn't report errors as github issues.

This PR uses a custom feature of `rules_go` to save the log output in
`test2json` format. A new shell function is added to post-process the
generated log and ports the `run_json_test` features to submit failures
to GitHub.

Release note: None
@rail rail force-pushed the json_output_file_rules_go branch from 9c2511c to c1861d3 Compare November 25, 2021 15:43
@rail
Copy link
Member Author

rail commented Nov 25, 2021

I think this is ready to be reviewed.

I pushed this rules_go change to the release-0.29 branch, so we can save logs in test2json format.

To be tested (in production): github-post requires GITHUB_TOKEN in order to work, I'll monitor the builder.

This is how it behaves when there is a test failure: artifacts
image

And there is also a green test: artifacts
image

@rail rail requested a review from rickystewart November 25, 2021 15:53
@rail
Copy link
Member Author

rail commented Dec 2, 2021

bors r=rickystewart

@craig
Copy link
Contributor

craig bot commented Dec 2, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Dec 2, 2021

Build succeeded:

@craig craig bot merged commit 328b2e8 into cockroachdb:master Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Continuous Integration C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-dev-inf
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: implement run_json_test for bazel bazed jobs
3 participants