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

Merge securedrop-sdk #1746

Merged
merged 333 commits into from
Jan 4, 2024
Merged

Merge securedrop-sdk #1746

merged 333 commits into from
Jan 4, 2024

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Dec 15, 2023

Status

Ready for review; depends on freedomofpress/securedrop#7098

Description

  • Merge in the securedrop-sdk repository into the client package itself (with git history).
  • Lower coverage threshold to 90%

Test plan

  • CI passes

vivekanand1101 and others added 30 commits October 23, 2018 15:12
Use urljoin instead of string concat for urls.

Thank you for the patch @vivekanand1101 👍
Enable Replies to be instantiated using only a UUID
Fixes #37, get stderr text in our process in Qubes
fix #30: changed incorrect error msg when downloading a file
(Based on work done during 2018-11-12 documentation sprint
by @redshiftzero @conorsch @emkll @eloquence)
This will ensure pipenv lock command does not update package
versions unless explicitly specified in the Pipfile. Since we have automatic
security checks for vulnerabilities in python libraries, this will ensure more
consistency when building and testing our packages, and avoid drift in our requirements.txt and Pipfile.lock files.
The other SecureDrop Workstation components already use the built-in
"safety" checks via `pipenv check` in CI, adding here for parity.
Adds optional client side uuid selection for replies
Instead of being a separate pip package, this will just be part
of the client itself.
@legoktm legoktm force-pushed the merge-sdk branch 13 times, most recently from fe7d87c to 3f1fe7f Compare December 15, 2023 23:53
@legoktm legoktm marked this pull request as draft December 16, 2023 00:45
@legoktm legoktm marked this pull request as ready for review January 2, 2024 18:19
@legoktm
Copy link
Member Author

legoktm commented Jan 2, 2024

This will need a rebase after #1751 but otherwise ready for review.

Rename all the imports and update the tests to reference
`securedrop_client.sdk` instead of the pip-installed package.
Requiring 100% means we end up writing useless tests for the
purposes of reaching that threshold, let's lower it to 90% as
something that's substantially high but not requiring perfection.
This is the same as the `test-against-latest-api` CircleCI job
in the sdk repository.
@legoktm legoktm requested a review from a team as a code owner January 3, 2024 20:54
Copy link
Member

@cfm cfm left a comment

Choose a reason for hiding this comment

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

CI is happy except for the expected failures on Bookworm. Thanks, @legoktm!

@cfm cfm merged commit 0ac0b89 into main Jan 4, 2024
35 of 40 checks passed
@cfm cfm deleted the merge-sdk branch January 4, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.