Skip to content

Add unit and regression tests for conformance tests - #531

Merged
martinmo merged 34 commits into
mainfrom
issue/476-qa-for-conformance-tests
Mar 22, 2024
Merged

martinmo merged 34 commits into
mainfrom
issue/476-qa-for-conformance-tests

Conversation

@martinmo

@martinmo martinmo commented Mar 20, 2024 •

Copy link
Copy Markdown
Member

This PR adds basic unit and regression test infrastructure for our conformance tests in ./Tests using the pytest tool.

Included are

  • a new GitHub workflow that runs pytest tests and blocks merging if tests fail,
  • unit and regression tests for the most important bits of the version policy and flavor naming conformance tests,
  • a section in Tests/README.md explaining how to use the unit tests,
  • bug fixes for bugs found by the new tests,
  • and last but not least some refactorings I couldn't resist to perform already.

Resolves #476.

@martinmo martinmo added the SCS-VP10 Related to tender lot SCS-VP10 label Mar 20, 2024
@martinmo martinmo self-assigned this Mar 20, 2024
martinmo added 17 commits March 20, 2024 15:41
Signed-off-by: Martin Morgenstern <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
@martinmo
martinmo force-pushed the issue/476-qa-for-conformance-tests branch from 8653e22 to 5ca8589 Compare March 20, 2024 14:41
@martinmo
martinmo force-pushed the issue/476-qa-for-conformance-tests branch from fbca1fa to 15948b5 Compare March 21, 2024 07:43
@mbuechse

Copy link
Copy Markdown
Contributor

This seems to be progressing nicely. Will you remove the Draft state soon?

@martinmo
martinmo marked this pull request as ready for review March 22, 2024 10:05
@martinmo
martinmo requested a review from mbuechse March 22, 2024 10:05
@martinmo

Copy link
Copy Markdown
Member Author

This seems to be progressing nicely. Will you remove the Draft state soon?

Thank you! It is ready for review now. I've updated the PR description accordingly.

I took a bit longer because of layer 8 problem on my part – I spent a lot of time debuggig an issue which turned out to be caused by a tiny typo 🙈

@mbuechse mbuechse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work! I have a few minor remarks, as usual... but that is not meant to diminish anything!

Comment thread Tests/README.md Resolved
Comment thread Tests/README.md Resolved
Comment thread Tests/iaas/flavor-naming/check_yaml.py Resolved
martinmo and others added 3 commits March 22, 2024 13:17
Co-authored-by: Matthias Büchse <[email protected]>
Signed-off-by: Martin Morgenstern <[email protected]>
@martinmo
martinmo requested a review from mbuechse March 22, 2024 12:33
@martinmo

Copy link
Copy Markdown
Member Author

The markdown linter complains, I'm on it...

Signed-off-by: Martin Morgenstern <[email protected]>
@martinmo
martinmo marked this pull request as draft March 22, 2024 13:12
@martinmo

Copy link
Copy Markdown
Member Author

Converted to draft again to block merging, I found another bug when testing with minikube, unfortunately...

CRITICAL: '<=' not supported between instances of 'NoneType' and 'K8sVersion'

I'm currently investigating.

@martinmo
martinmo marked this pull request as ready for review March 22, 2024 13:58
@martinmo

Copy link
Copy Markdown
Member Author

The issue is now resolved. TL;DR: it was bad handling of the case when the lower version of the affected version range was not specified. (The bigger picture is that the VersionRange class is not the best abstraction to cover all use cases – but because this PR is scoped to the tests, I don't want to change it completely. This will be done in #526.)

@mbuechse

Copy link
Copy Markdown
Contributor

You are GO for launch!
https://www.youtube.com/watch?v=lMtWWls4oas

@martinmo
martinmo merged commit 2cf8efd into main Mar 22, 2024
@martinmo
martinmo deleted the issue/476-qa-for-conformance-tests branch March 22, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SCS-VP10 Related to tender lot SCS-VP10

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression and unit tests for the standards testsuite

2 participants