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

CI: Making benchmark errors easier to find #29907

Merged
merged 6 commits into from
Nov 29, 2019
Merged

CI: Making benchmark errors easier to find #29907

merged 6 commits into from
Nov 29, 2019

Conversation

datapythonista
Copy link
Member

It takes a while to find the failing line of the benchmarks logs at the moment. This should highlight the failing ones, and also publish the log as an artifact so it can be analyzed easier.

CC: @jbrockmendel

@datapythonista datapythonista added CI Continuous Integration Benchmark Performance (ASV) benchmarks labels Nov 27, 2019
@jbrockmendel
Copy link
Member

Looks like the desired error messages did show up, not sure if there are some non-desired ones in there too

@datapythonista
Copy link
Member Author

Cleaned it a bit, errors were being duplicated, not sure why.

The log when not failures were found was not being shown. Not sure why I did that, but I think it makes sense that it's shown, so restored it.

@jbrockmendel
Copy link
Member

Sounds good. Some unwanted errors might go away after #29906.

@datapythonista
Copy link
Member Author

datapythonista commented Nov 28, 2019

@jbrockmendel this looks good to me now. If you can have a look, I'll remove the failure once you're happy.

Error can be seen here: https://github.com/pandas-dev/pandas/pull/29907/checks?check_run_id=324562585#step:13:3037

@jbrockmendel
Copy link
Member

nice!

if [[ $(echo "$ASV_OUTPUT" | grep "failed") ]]; then
echo "##vso[task.logissue type=error]Benchmarks run with errors"
echo "$ASV_OUTPUT"
asv dev | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for using tee here instead of simply redirecting the sed output?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want the log to be shown in the CI, tee gets it printed (besides saving the file later used to see if there are failures and to save the artifact)

@WillAyd WillAyd added this to the 1.0 milestone Nov 29, 2019
@jreback
Copy link
Contributor

jreback commented Nov 29, 2019

ok lets try it out

@jreback jreback merged commit 0056143 into pandas-dev:master Nov 29, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Benchmark Performance (ASV) benchmarks CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants