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

SecureDrop Workstation 0.3.0~rc1 #550

Merged
merged 2 commits into from
May 12, 2020
Merged

SecureDrop Workstation 0.3.0~rc1 #550

merged 2 commits into from
May 12, 2020

Conversation

emkll
Copy link
Contributor

@emkll emkll commented May 11, 2020

Status

Ready for review

Description of Changes

Fixes #540, towards #548 :

Packaging scripts now support release candidate version strings, increment version to 0.3.0~rc1. We use the same naming conversion as in SecureDrop core, where the ~rcN suffix will specify a (pre)release candidate for a given release.

Testing

  • changelog is accurate
  • changes to update_version.sh work as expected:
    • ./update_version.sh 0.4.0~rc1 increments and proper sdist naming for tarball and source location, and the package builds using make dom0-rpm
    • ./update_version.sh 0.4.0 increments the version correctly, and package builds using make dom0-rpm
  • (Optional, this was already tested) Ensure 0.3.0 > 0.3.0~rc1: Create two rpms (0.3.0~rc1 from this branch, and run ./update_version.sh to bump to 0.3.0), and observe the output of dnf install $RPM and observe the upgrade/downgrade message at the confirmation prompt.
  • (Optional, this was already tested) the resulting rpm on this branch works in dom0 (sudo dnf install and ./securedrop-admin --apply)

emkll added 2 commits May 11, 2020 13:16
Preserving the SecureDrop Core scheme, this will allow us to support release canadidates for the workstation provisioning code.

Pre-release separators for RPMs[1] are `~`, while not supported in Python (per PEP440)[2], and overwriting them to `-`. We should modify the RPM spec to specify the source folder and tarballs to take into account this path change.

Thanks to @kushaldas for recommending the use of `%prep` and `%setup -n <path>` here.

[1]: https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_versioning_prereleases_with_tilde
[2]: https://www.python.org/dev/peps/pep-0440/#pre-release-separators
@emkll emkll requested review from conorsch and kushaldas May 11, 2020 20:04
Copy link
Contributor

@conorsch conorsch left a comment

Choose a reason for hiding this comment

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

  • changelog is accurate
  • changes to update_version.sh work as expected:
    • ./update_version.sh 0.4.0~rc1 increments and proper sdist naming for tarball and source location, and the package builds using make dom0-rpm
    • ./update_version.sh 0.4.0 increments the version correctly, and package builds using make dom0-rpm
  • (Optional, this was already tested) Ensure 0.3.0 > 0.3.0~rc1: Create two rpms (0.3.0~rc1 from this branch, and run ./update_version.sh to bump to 0.3.0), and observe the output of dnf install $RPM and observe the upgrade/downgrade message at the confirmation prompt.
  • (Optional, this was already tested) the resulting rpm on this branch works in dom0 (sudo dnf install and ./securedrop-admin --apply)

@conorsch conorsch merged commit b6bd91c into master May 12, 2020
cfm pushed a commit that referenced this pull request Apr 1, 2024
@legoktm legoktm deleted the bump-to-0.3.0 branch May 28, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create staging release candidate
2 participants