-
Notifications
You must be signed in to change notification settings - Fork 42
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
create prod-like dev env #1301
create prod-like dev env #1301
Conversation
06b7c06
to
107375a
Compare
107375a
to
26188ee
Compare
just rebased onto main and added babel to the new dev requirements for debian and then ran |
26188ee
to
a7b303d
Compare
I'm seeing an issue with |
a7b303d
to
6b1c713
Compare
Started review, and appended a commit tweaking the venv creation. Using that commit, I could not reproduce the |
@creviera These changes work well enough for me. As I mentioned in #1286, I need a tor connection (for the latency) to reproduce that particular issue, but otherwise the changes here look great to me. My major question at this point is: what's the value of supporting the old-school, non-system-packages "venv" at all? In other words, shouldn't this new approach to reusing the Debian system packages be the default? I'd expect that the non-debian venv would be useful to folks developing on e.g. macos, but I haven't actuall tested that. Thoughts? |
Signed-off-by: Allie Crevier <[email protected]>
The reminder to use system qt packages is probably better served by a script, but not bothering with that now.
6b1c713
to
15cf0fe
Compare
I pared back my commit to add only comments, since @creviera rightly pointed out that the manually |
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.
Works well enough for me! Will be performing a lot of repro in the future, will follow up with any required changes as they present themselves.
conor and i discussed in person and will leave both |
thanks, conor, for the review and troubleshooting (and for leaving the fun button pushing for me at the end) |
Description
Fixes issues where the gui looks different between prod and dev by supporting a dev env that uses system site-packages that you have to install ahead of time (see https://github.com/freedomofpress/securedrop-debian-packaging/blob/main/securedrop-client/debian/control).
Test Plan
make venv-debian && source .venv-debian/bin/activate
./run.sh
) against a dev serverChecklist
If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:
If these changes add or remove files other than client code, the AppArmor profile may need to be updated. Please check as applicable:
If these changes modify the database schema, you should include a database migration. Please check as applicable:
main
and confirmed that the migration applies cleanlymain
and would like the reviewer to do so