-
Notifications
You must be signed in to change notification settings - Fork 687
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
Updates pytest pluggy testinfra molecule and the universe #5585
Updates pytest pluggy testinfra molecule and the universe #5585
Conversation
05531b1
to
8ff1fb1
Compare
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.
Thanks @kushaldas , went though the test plan and observe a few failures in some scenarios. Also, I did not test all the cases (Qubes and Virtualbox scenarios)
- make build-debs
- make build-debs-focal
- make fetch-tor-packages
- molecule test -s libvirt-staging-xenial
- molecule test -s libvirt-staging-focal
- molecule converge virtualbox-staging-xenial (did not test)
- molecule converge -s qubes-staging-focal (did not test)
- molecule converge -s qubes-staging-xenial (did not test)
- ❗
make testinfra
on prod VMs looks like testinfra version needs to be updated in https://github.com/freedomofpress/securedrop/blob/updates_pytest_pluggy_testinfra_molecule_and_the_universe/admin/requirements-testinfra.txt - ❗
make upgrade-start
Molecule syntax error - ❗
make upgrade test-local
can't run because start command above doesn't work - ❗
make upgrade-start-qa
Molecule syntax error - ❗
make upgrade-test-qa
cant run because start command above doesn't work
Confirmed that the following pass:
|
Wondering if I should update this? @emkll what do you think? |
It seems like it just consists of renaming the files, I think it's worth addressing as part of this PR, good catch |
We need the newer version of pluggy and pytest to make sure that the tests are running on Focal and Xenial in the same way.
Also updates pluggy+molecule-vagrant as dependency Why? Because the testinfra updates requires molecule update. Updated the molecule files for the new molecule in the `libvirt-staging-xenial` scenario. Also contains all testinfra tests update, as pytest_namespace is dropped in the pytest. `molecule test -s libvirt-staging-xenial` now works.
Updates the pytest tests for the newer version of pytest and also molecule.yml as required for newer version of molecule.
It updates two molecule scenario: - fetch-tor-packages - libvirt-staging-focal In libvirt-staging-focal create.yml also updated for molecule_vagrant update.
958c778
to
a11647a
Compare
Hey @kushaldas was just testing the libvirt-focal scenario, is it expected that tests not run? After running
|
@emkll can you please paste the output of |
|
This is the problem, as the host is already Python3.7 on Buster. @emkll can you please create a fresh virtualenv and install develop-requirements.txt from this branch and try? |
I ran through all the test scenarios. All but
|
That worked, thanks! My mistake was installing the updated requirements in an existing virtualenv. Developers will need to recreate a new virtualenv or manually remove |
I retried the failures on
I'm inclined to merge this and address the failures separately, since two out of three are happening on |
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.
Based on @rmol and @zenmonkeykstop 's review, I second @rmol 's comment, good to merge as-is, to unblock work on Focal. Let's identify any problems that may arise from these major version bumps, and open follow-up issues as needed
All changes here are to test requirements and therefore should not need a diff review.
Status
Ready for review
Description of Changes
Fixes #5584
Testing
We have to test each and every scenario. Note: we have to update each of the below points with proper test steps.
make testinfra
on prod VMsmake upgrade-start
make upgrade test-local
make upgrade-start-qa
make upgrade-test-qa
Deployment
Any special considerations for deployment? Consider both:
Checklist
If you made changes to the server application code:
make lint
) and tests (make test
) pass in the development containerIf you made changes to
securedrop-admin
:make -C admin test
) pass in the admin development containerIf you made changes to the system configuration:
If you made non-trivial code changes:
If you made changes to documentation:
make docs-lint
) passed locallyIf you added or updated a code dependency:
Choose one of the following: