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: improve test jenkins error reporting #10145

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

michal-shalev
Copy link
Contributor

What?

Improves error reporting in contrib/test_jenkins.sh to indicate what happened in the Azure DevOps CI pipeline, and how to reproduce it.

Why?

Currently, there is no specific contrib/test_jenkins.sh failure message. This change helps to quickly identify which test failed, improving debugging efficiency, without scrolling through the logs.

How?

Modifies the script to add a failure message at the end, making the cause of the failure and reproduction info immediately clear in the CI logs.

Before

image

@michal-shalev michal-shalev changed the title Ci improve test jenkins error reporting CI: improve test jenkins error reporting Sep 11, 2024
@michal-shalev michal-shalev removed the request for review from brminich September 11, 2024 11:51
@@ -1161,11 +1161,26 @@ then
set_ucx_common_test_env

if [[ "$PROTO_ENABLE" == "no" ]]; then
run_test_proto_disable
run_test_proto_disable || {
Copy link
Contributor

Choose a reason for hiding this comment

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

we can see that it's address sanitizer or proto_disable from the test step description in CI, why need also this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because if you want to debug this kind of scenario (happened to me recently), you need to go to the test_jenkins.sh script and find the exact flag (for example: "ASAN_CHECK=yes") to reproduce it with.
By adding this error log, you can just copy-paste and reproduce it.

@michal-shalev michal-shalev force-pushed the ci-improve-test-jenkins-error-reporting branch from 4a4706f to 86215e9 Compare September 11, 2024 15:05
@michal-shalev michal-shalev force-pushed the ci-improve-test-jenkins-error-reporting branch from 86215e9 to d8b8b97 Compare September 11, 2024 15:14
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.

2 participants