-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
nixos/syncthing: add missing --fail
to curl
#390742
Conversation
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.
LGTM, but please update commit message to have "nixos/syncthing:" prefix.
In case of an incorrect ID, the behavior of this script is quite tricky. See: NixOS#326704 (comment) for more info.
I've added one more change to help with debugging. If something's wrong with please let me know, I can always remove. |
--fail
to curl
--fail
to curl
Hey @dpc Wanted to chime in and say, that a rebuild would fail because of this when having the following options set to false: services.syncthing.settings = {
overrideDevice = false;
overrideFolder = false;
} I get an error for the Console Output of manually running the service command
I'm not entirely sure if it's really related to my syncthing settings, as I wouldn't want my current devices and folders to get removed by testing it on At least removing the It could be that it's just me. If that is the case, please let me know. |
I'm seeing the same in my local integration tests (repeated |
Revert here: #392178. Please review. |
This reverts commit a8b8f8f. It introduced a failure in the syncthing service, where it hangs at the curl step, repeatedly printing this: l3ijkvb20h5nnffg5q25i4nmcsbf7glx-merge-syncthing-config[1458]: curl: (22) The requested URL returned error: 404 l3ijkvb20h5nnffg5q25i4nmcsbf7glx-merge-syncthing-config[1458]: curl: (22) The requested URL returned error: 404 l3ijkvb20h5nnffg5q25i4nmcsbf7glx-merge-syncthing-config[1458]: curl: (22) The requested URL returned error: 404 [...] This is unfortunately not detected by `nix-build -A syncthing.tests`. Ref #390742
This is to address a problem I've found when debugging: #326704 (comment)
Without
--fail
, curl does not seem to set exit code, and I'm under suspicion all the other retry flags etc. are doing nothing as well.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.