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

vaultwarden: 1.30.5 -> 1.31.0 #325711

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

wahjava
Copy link
Contributor

@wahjava wahjava commented Jul 9, 2024

Description of changes

https://github.com/dani-garcia/vaultwarden/releases/tag/1.31.0

https://github.com/dani-garcia/bw_web_builds/releases/tag/v2024.5.1b

Fixes #325679

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

closes #325727


Add a 👍 reaction to pull requests you find important.

@jackyliu16
Copy link
Contributor

You may want to add yourself as maintainers of this packages.

Copy link
Member

@dotlambda dotlambda left a comment

Choose a reason for hiding this comment

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

The backup test fails. Is

cp: cannot copy a directory, '/var/lib/vaultwarden/backups', into itself, '/var/lib/vaultwarden/backups/backups'

expected? It also occurs when I run the test on master but the test doesn't fail.
cc @Scrumplex @caffineehacker

pkgs/tools/security/vaultwarden/default.nix Outdated Show resolved Hide resolved
@Scrumplex
Copy link
Member

The backup test fails. Is

cp: cannot copy a directory, '/var/lib/vaultwarden/backups', into itself, '/var/lib/vaultwarden/backups/backups'

expected? It also occurs when I run the test on master but the test doesn't fail.

This was caused by #318933. For some reason the backup test has its backup directory set to /var/lib/vaultwarden which is now also the default directory for stateVersion >= 24.11. This should only affect the test unless people changed the default /var/backup/vaultwarden path.

@Scrumplex
Copy link
Member

See #325861 for the backup script issue

@ofborg ofborg bot requested a review from dotlambda July 9, 2024 14:26
@ofborg ofborg bot added the 11.by: package-maintainer This PR was created by the maintainer of the package it changes label Jul 9, 2024
@dotlambda
Copy link
Member

This was caused by #318933. For some reason the backup test has its backup directory set to /var/lib/vaultwarden which is now also the default directory for stateVersion >= 24.11. This should only affect the test unless people changed the default /var/backup/vaultwarden path.

That doesn't explain the test succeeding on master but failing for this PR.

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Jul 9, 2024

You may want to add yourself as maintainers of this packages.

No, we don't need more maintainers to defuse ownership just because one update wasn't done immediately. The last release is only 18 hours old.

@@ -42,7 +42,7 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/dani-garcia/vaultwarden";
changelog = "https://github.com/dani-garcia/vaultwarden/releases/tag/${version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ dotlambda SuperSandro2000 ];
maintainers = with maintainers; [ dotlambda SuperSandro2000 abbe ];
Copy link
Member

Choose a reason for hiding this comment

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

Two are fine, we don't need another one.

@Scrumplex
Copy link
Member

That doesn't explain the test succeeding on master but failing for this PR.

In my case the test succeeded on master but showed the same error you mentioned. The test was just faulty IMO

@dotlambda
Copy link
Member

In my case the test succeeded on master but showed the same error you mentioned. The test was just faulty IMO

The test succeeds on master for me too, but fails when I check out 1b8364eb8cfa.

@Scrumplex
Copy link
Member

The test fails in this PR with this output:

Test "Check that backup exists" failed with error: "command `[ -f "/var/lib/vaultwarden/backups/rsa_key.pub.pem" ]` failed (exit code 1)"

Is it possible that this file doesn't exist anymore?

@dotlambda
Copy link
Member

Is it possible that this file doesn't exist anymore?

Indeed: dani-garcia/vaultwarden#4085

@SuperSandro2000
Copy link
Member

Is it possible that this file doesn't exist anymore?

Indeed: dani-garcia/vaultwarden#4085

Thanks for digging that up! When that fixes the test, I push the change to this PR.

I also applied the other review comments.

@github-actions github-actions bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Jul 10, 2024
@Scrumplex
Copy link
Member

@ofborg test vaultwarden.sqlite-backup

@ofborg ofborg bot requested a review from SuperSandro2000 July 10, 2024 14:03
@dotlambda dotlambda merged commit 626ecc4 into NixOS:master Jul 10, 2024
25 of 31 checks passed
@wahjava wahjava deleted the update-vaultwarden branch July 11, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update request: vaultwarden 1.30.5 → 1.31.0
5 participants