-
Notifications
You must be signed in to change notification settings - Fork 115
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
use packaged pytest, not some venv #16694
use packaged pytest, not some venv #16694
Conversation
trigger: test-robottelo |
@jameerpathan111 given the executed |
PRT Result
|
The PRT failure is expected, you need to run it against an AAP that has my deployment patches in. |
@evgeni Acked. Can you fix pre-commit failures? |
8118b5e
to
50c0935
Compare
Done! |
@@ -74,6 +74,13 @@ def setup_fam(module_target_sat, module_sca_manifest, install_import_ansible_rol | |||
# Edit Makefile to not try to rebuild the collection when tests run | |||
module_target_sat.execute(f"sed -i '/^live/ s/$(MANIFEST)//' {FAM_ROOT_DIR}/Makefile") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, but could we introduce an environment variable for this as well so we can avoid patching code altogether?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, probably. But not today ;)
50c0935
to
d08f66e
Compare
Rebased and updated to match the last version of theforeman/foreman-ansible-modules#1788 -- now only replacing |
(cherry picked from commit ddb3ec1)
(cherry picked from commit ddb3ec1)
(cherry picked from commit ddb3ec1)
use packaged pytest, not some venv (#16694) (cherry picked from commit ddb3ec1) Co-authored-by: Evgeni Golov <[email protected]>
use packaged pytest, not some venv (#16694) (cherry picked from commit ddb3ec1) Co-authored-by: Evgeni Golov <[email protected]>
use packaged pytest, not some venv (#16694) (cherry picked from commit ddb3ec1) Co-authored-by: Evgeni Golov <[email protected]>
Problem Statement
The current FAM test setup relies on being able to reach the Internet, which is "bad design"™ but also actually broken in IPv6-only environments because our lab network has IPv6, but no route to the broader Internet.
Solution
Instead of installing test dependencies via
pip
from the Internet, install them viadnf
from the RH CDN and use them in the tests here.There is an accompanying PR against the repo that carries the setup playbooks.
Related Issues