-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[CI:DOCS] logformatter: handle python logs #13241
[CI:DOCS] logformatter: handle python logs #13241
Conversation
Sample log, based on the PR that failed earlier today. (Compare to the original). The "WARNING: Expected NNN" at bottom, there's not much I can do about it: it's caused by python tests whose line does not end in |
We've got some python tests running in CI, and they're really hard to troubleshoot. This PR: 1) colorizes python unittest lines (ok / skipped / fail), and 2) links to source files The color is nice for skimming, but it's the linking that might make it much easier to diagnose future failures. (Context: failure today in test/python/docker/compat/test_images.py) Signed-off-by: Ed Santiago <[email protected]>
6aa295b
to
7a83d16
Compare
@edsantiago Should we just split them into a separate Cirrus test run? Might make your life easier with the logformatter and completely eliminates the chance of confusion like yesterday. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, edsantiago The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Re: Splitting them up. Possible to do, but will need some twiddling with foo_bar_task:
...cut...
env:
TEST_FLAVOR=foobar
setup_script: *setup
main_script: *main
extra_script: 'env TEST_FLAVOR=${TEST_FLAVOR}2 $GOSRC/$SCRIPT_BASE/runner.sh'
always: *runner_stats Wherein, the runner function |
Re: splitting up: whether or not that's done, this PR still seems useful: the python tests will be run regardless, and ISTM useful to have a one-click way to get to the source code. @cevich I believe the context here is that the tests are running twice already. When looking at the CI failures in #13239, there were two CI jobs that had exactly the same python failure: APIv2 tests and something else. From a quick look-see (I'm on PTO today) it looks like |
/lgtm |
Oh! Okay, that sounds like an easily corrected oversight. I'll open an issue. Thanks. |
Ref: #13273 |
We've got some python tests running in CI, and they're really hard
to troubleshoot. This PR:
The color is nice for skimming, but it's the linking that might
make it much easier to diagnose future failures.
(Context: failure today in test/python/docker/compat/test_images.py)
Signed-off-by: Ed Santiago [email protected]