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

Add possibility to run pylint-only test #4917

Merged

Conversation

jkonecny12
Copy link
Member

Pylint was recently removed from the default test suite because it caused issues on python 3.12. To be able to verify if that issue was resolved and in general improve state of running just this test this change introduce a possibility to run just pylint test in container or without the container.

Usually this should be solved by make check TESTS=<pylint>, unfortunately this is not possible for pylint for unknown reasons. The same situation works for unit tests but when pylint is used this way it not even try to start the tests. Seems to me like some automake magic fails here. Even automake substition doesn't work here. Seems that pylint test has to be in the TESTS variable hardcoded which can't happen if it is not part of the default runs.

Anyhow, to resolve this issue a new script was introduced to set environment variables correctly to the pylint start so it's easy and consistent to start the pylint tests.

Pylint was recently removed from the default test suite because it
caused issues on python 3.12. To be able to verify if that issue was
resolved and in general improve state of running just this test this
change introduce a possibility to run just pylint test in container or
without the container.

Usually this should be solved by `make check TESTS=<pylint>`,
unfortunately this is not possible for pylint for unknown reasons. The
same situation works for unit tests but when pylint is used this way it
not even try to start the tests. Seems to me like some automake magic
fails here. Even automake substition doesn't work here. Seems that
pylint test has to be in the TESTS variable hardcoded which can't happen
if it is not part of the default runs.

Anyhow, to resolve this issue a new script was introduced to set
environment variables correctly to the pylint start so it's easy and
consistent to start the pylint tests.
@jkonecny12 jkonecny12 added the f39 label Jul 14, 2023
Copy link
Contributor

@VladimirSlavik VladimirSlavik left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@jkonecny12
Copy link
Member Author

/kickstart-test --waive tests only

@jkonecny12
Copy link
Member Author

The test failures are not related - merging.

@jkonecny12 jkonecny12 merged commit 2192fff into rhinstaller:master Jul 14, 2023
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants