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

chore: Make pytest CI runs more verbose #719

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

aiven-anton
Copy link
Contributor

About this change - What it does

Increase pytest verbosity, by removing the quiet flag as well as the --tb=short flag.

Why this way

In this failing CI run, the fact that we use --tb short makes it impossible to tell what code path triggered the breaking call to read_config().

https://github.com/Aiven-Open/karapace/actions/runs/6239301084/job/16936931606

@aiven-anton aiven-anton marked this pull request as ready for review September 19, 2023 18:51
@aiven-anton aiven-anton requested review from a team as code owners September 19, 2023 18:51
@juha-aiven
Copy link
Contributor

Are you sure about removing --tb short? I always use that together with -vv and it gives me enough traceback info, at least I don't remember ever missing anything important.

@aiven-anton
Copy link
Contributor Author

@juha-aiven Yeah I really don't see the point of shortening tracebacks, especially not in CI for a parallelized test suite (due to hard to deterministically recreate exact order of execution). In the case mentioned I can't tell where the call originated due to tb short.

It's still easy to override these settings in dev envs to have differing behavior there.

@juha-aiven
Copy link
Contributor

Yeah I really don't see the point of shortening tracebacks,

OK, just wanted to double-check this is intentional.

Copy link
Contributor

@juha-aiven juha-aiven left a comment

Choose a reason for hiding this comment

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

Fine for me.

Copy link
Contributor

@juha-aiven juha-aiven left a comment

Choose a reason for hiding this comment

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

👍🏻

@tvainika tvainika merged commit 101d69e into main Oct 26, 2023
8 checks passed
@tvainika tvainika deleted the aiven-anton/more-verbose-pytest branch October 26, 2023 07:23
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.

3 participants