Skip to content

backrest: 1.8.1 -> 1.9.2 - #443695

Merged
GaetanLepage merged 1 commit into
NixOS:masterfrom
iedame:backrest-update
Sep 23, 2025
Merged

GaetanLepage merged 1 commit into
NixOS:masterfrom
iedame:backrest-update

Conversation

@iedame

@iedame iedame commented Sep 17, 2025 •

Copy link
Copy Markdown
Contributor

diff: garethgeorge/backrest@v1.8.1...v1.9.2
Changelog: https://github.com/garethgeorge/backrest/releases/tag/v1.9.2

Version bump to latest version, darwin sandbox required a fix.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Sep 17, 2025
@iedame

iedame commented Sep 17, 2025

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 443695
Commit: 1ae882f49c70edd258b3af725d6247d592a106e4 (subsequent changes)
Merge: 320a7307a8f423b608967521ea3464ccb18b5f6a

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/17794139529


x86_64-linux

✅ 1 package built:
  • backrest

aarch64-linux

✅ 1 package built:
  • backrest

x86_64-darwin (sandbox = true)

❌ 1 package failed to build:
  • backrest

Error logs: `x86_64-darwin`
backrest
Building subPackage ./internal/orchestrator/logging
Building subPackage ./internal/orchestrator/repo
Building subPackage ./internal/orchestrator/tasks
Building subPackage ./internal/protoutil
Building subPackage ./internal/queue
Building subPackage ./internal/resticinstaller
Building subPackage ./internal/testutil
Building subPackage ./pkg/restic
Building subPackage ./test/helpers
Building subPackage ./webui
buildPhase completed in 3 minutes 51 seconds
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
panic: open /etc/protocols: operation not permitted

goroutine 1 [running]:
modernc.org/libc/honnef.co/go/netdb.init.0()
/nix/build/nix-build-backrest-1.9.2.drv-9079-3653977858/source/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go:700 +0x713
FAIL github.com/garethgeorge/backrest/internal/api 1.324s
FAIL


aarch64-darwin (sandbox = true)

❌ 1 package failed to build:
  • backrest

Error logs: `aarch64-darwin`
backrest
Building subPackage ./internal/orchestrator/logging
Building subPackage ./internal/orchestrator/repo
Building subPackage ./internal/orchestrator/tasks
Building subPackage ./internal/protoutil
Building subPackage ./internal/queue
Building subPackage ./internal/resticinstaller
Building subPackage ./internal/testutil
Building subPackage ./pkg/restic
Building subPackage ./test/helpers
Building subPackage ./webui
buildPhase completed in 53 seconds
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
panic: open /etc/protocols: operation not permitted

goroutine 1 [running]:
modernc.org/libc/honnef.co/go/netdb.init.0()
/nix/build/nix-build-backrest-1.9.2.drv-13865-3702401323/source/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go:700 +0x5b8
FAIL github.com/garethgeorge/backrest/internal/api 0.025s
FAIL

@iedame

iedame commented Sep 17, 2025

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 443695
Commit: e09e8365c4ddc71d01d6b77afb856b2790a4b0ec (subsequent changes)
Merge: cb16f8a719c22a4816624b63068214e52c15b4d0

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/17794897656


x86_64-linux

✅ 1 package built:
  • backrest

aarch64-linux

✅ 1 package built:
  • backrest

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • backrest

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • backrest

@iedame
iedame marked this pull request as draft September 18, 2025 11:07
@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Sep 18, 2025
@iedame
iedame force-pushed the backrest-update branch 2 times, most recently from b139272 to c34d11f Compare September 18, 2025 11:29
@iedame

iedame commented Sep 18, 2025

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 443695
Commit: c34d11fbc990acc7d32b2162262328cf8528e03a (subsequent changes)
Merge: 4c731020c74dcdd1942297b2f6d3d115d1de8276

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/17827334701


x86_64-linux

✅ 1 package built:
  • backrest

aarch64-linux

✅ 1 package built:
  • backrest

x86_64-darwin (sandbox = true)

❌ 1 package failed to build:
  • backrest

Error logs: `x86_64-darwin`
backrest
Building subPackage ./internal/orchestrator/logging
Building subPackage ./internal/orchestrator/repo
Building subPackage ./internal/orchestrator/tasks
Building subPackage ./internal/protoutil
Building subPackage ./internal/queue
Building subPackage ./internal/resticinstaller
Building subPackage ./internal/testutil
Building subPackage ./pkg/restic
Building subPackage ./test/helpers
Building subPackage ./webui
buildPhase completed in 3 minutes 23 seconds
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
panic: open /etc/protocols: operation not permitted

goroutine 1 [running]:
modernc.org/libc/honnef.co/go/netdb.init.0()
/nix/build/nix-build-backrest-1.9.2.drv-6928-1740158750/source/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go:700 +0x713
FAIL github.com/garethgeorge/backrest/internal/api 1.351s
FAIL


aarch64-darwin (sandbox = true)

❌ 1 package failed to build:
  • backrest

Error logs: `aarch64-darwin`
backrest
Building subPackage ./internal/orchestrator/logging
Building subPackage ./internal/orchestrator/repo
Building subPackage ./internal/orchestrator/tasks
Building subPackage ./internal/protoutil
Building subPackage ./internal/queue
Building subPackage ./internal/resticinstaller
Building subPackage ./internal/testutil
Building subPackage ./pkg/restic
Building subPackage ./test/helpers
Building subPackage ./webui
buildPhase completed in 35 seconds
Running phase: checkPhase
@nix { "action": "setPhase", "phase": "checkPhase" }
panic: open /etc/protocols: operation not permitted

goroutine 1 [running]:
modernc.org/libc/honnef.co/go/netdb.init.0()
/nix/build/nix-build-backrest-1.9.2.drv-7983-658002823/source/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go:700 +0x5b8
FAIL github.com/garethgeorge/backrest/internal/api 0.033s
FAIL

@iedame

iedame commented Sep 18, 2025 •

Copy link
Copy Markdown
Contributor Author

Tested functionality on x86_64-linux and everything is working, but Darwin fails in sandbox. Needs investigating what would be the best approach to fix this.

panic: open /etc/protocols: operation not permitted

goroutine 1 [running]:

modernc.org/libc/honnef.co/go/netdb.init.0()

/nix/build/nix-build-backrest-1.9.2.drv-6928-1740158750/source/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go:700 +0x713

FAIL	github.com/garethgeorge/backrest/internal/api	1.351s

@iedame
iedame force-pushed the backrest-update branch 2 times, most recently from 319c6c1 to eb4d9b1 Compare September 21, 2025 00:07
@iedame
iedame marked this pull request as ready for review September 21, 2025 00:08
@iedame

iedame commented Sep 21, 2025 •

Copy link
Copy Markdown
Contributor Author

After further testing and building the package locally on my Macs with the sandbox enabled, I can confirm it builds successfully when using the following expression:
doCheck = !stdenv.isDarwin;

I've also tested the core functionality, including backup and restore to S3, and it works as expected without any issues.

This confirms that the problem is specifically related to the test environment under the Darwin sandbox. I'm open to suggestions from the community on how to properly fix this panic: open /etc/protocols: operation not permitted error. Any help or pointers would be greatly appreciated.

__darwinAllowLocalNetworking = true; did not work.

@iedame

iedame commented Sep 21, 2025

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 443695
Commit: eb4d9b1cc24766d0b18dd94ae07f0390462bef01 (subsequent changes)
Merge: 9aa64a60e2ac9d9972f6fbf9087876692502fa46

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/17886589930


x86_64-linux

✅ 1 package built:
  • backrest

aarch64-linux

✅ 1 package built:
  • backrest

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • backrest

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • backrest

@nixpkgs-ci nixpkgs-ci Bot added the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Sep 21, 2025

@mdaniels5757 mdaniels5757 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not aware of a great way to avoid that sandboxing issue. It's not uncommon (see https://github.com/search?q=repo%3ANixOS%2Fnixpkgs+%22%2Fetc%2Fprotocols%22+darwin&type=code), and the other way to avoid it seems to be a patch, so that may be a possibility. But simply disabling the tests on Darwin seems to also be a common fix.

In any case, LGTM.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Sep 22, 2025
Comment thread pkgs/by-name/ba/backrest/package.nix Resolved
@GaetanLepage
GaetanLepage added this pull request to the merge queue Sep 23, 2025
Merged via the queue into NixOS:master with commit abbb61c Sep 23, 2025
@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Sep 23, 2025
@iedame
iedame deleted the backrest-update branch September 23, 2025 22:18
@mdaniels5757 mdaniels5757 mentioned this pull request Sep 26, 2025
2 of 13 tasks
@iedame iedame mentioned this pull request Oct 20, 2025
2 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants