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

patch(integration_test_charm.yaml): Add Allure "unknown" status for tests with missing results #183

Merged
merged 20 commits into from
Jun 7, 2024

Conversation

carlcsaposs-canonical
Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical commented Jun 6, 2024

Generate default results with "unknown" status for every test so that if Allure report is missing (because runner set up failed or integration tests timed out) that those tests show up as "unknown" instead of being omitted from Allure report

Breaking change for Allure users (Allure is in beta & not part of public interface, hence patch PR prefix instead of breaking):
allure-pytest-collection-report plugin now required, see .github/workflows/integration_test_charm_allure_beta.md

@carlcsaposs-canonical carlcsaposs-canonical marked this pull request as ready for review June 7, 2024 09:29
Copy link

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

This is massive and long waited. Tnx!

@carlcsaposs-canonical
Copy link
Contributor Author

tested again with rebase on #179 on https://github.com/carlcsaposs-canonical/mysql-router-k8s-operator/actions/runs/9415095490/job/25935868156 (to test that if job is cancelled, that completed tests are reported as passed & only non-completed tests are cancelled)
https://carlcsaposs-canonical.github.io/mysql-router-k8s-operator/82/

@carlcsaposs-canonical
Copy link
Contributor Author

Opened upstream (allure-pytest) feature request: allure-framework/allure-python#821 to replace our custom pytest plugin

Copy link

@paulomach paulomach left a comment

Choose a reason for hiding this comment

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

nice!

@carlcsaposs-canonical carlcsaposs-canonical merged commit bf186d4 into main Jun 7, 2024
1 check passed
@carlcsaposs-canonical carlcsaposs-canonical deleted the allure-collection-report branch June 7, 2024 12:41
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.

4 participants