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

gurk-rs: 0.4.3 -> 0.5.1 #340311

Merged
merged 1 commit into from
Sep 8, 2024
Merged

gurk-rs: 0.4.3 -> 0.5.1 #340311

merged 1 commit into from
Sep 8, 2024

Conversation

devhell
Copy link
Contributor

@devhell devhell commented Sep 7, 2024

Description of changes

Related #332957

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.

Add a 👍 reaction to pull requests you find important.

@Scrumplex
Copy link
Member

Result of nixpkgs-review pr 340311 run on x86_64-linux 1

1 package built:
  • gurk-rs

@Scrumplex
Copy link
Member

I tried to link my device but I got the following error:

Error: failed to provision device: Service error: Unexpected response: HTTP 409

Caused by:
    0: Service error: Unexpected response: HTTP 409
    1: Unexpected response: HTTP 409

@devhell
Copy link
Contributor Author

devhell commented Sep 7, 2024

I tried to link my device but I got the following error:

Error: failed to provision device: Service error: Unexpected response: HTTP 409

Caused by:
    0: Service error: Unexpected response: HTTP 409
    1: Unexpected response: HTTP 409

This was fixed in 0.5.1. Are you sure you're executing the built binary and not the old 0.4.3 binary?

@Scrumplex
Copy link
Member

Scrumplex commented Sep 7, 2024

This was fixed in 0.5.1. Are you sure you're executing the built binary and not the old 0.4.3 binary?

I was running it in the shell generated by nixpkgs-review, I don't have gurk in my PATH outside of it :O

I have entered the nixpkgs-review shell again and gurk -V yields gurk 0.5.1

Edit:

debug log output:

2024-09-07T21:32:56.952451Z  INFO presage::manager::linking: generating qrcode from provisioning link: sgnl://linkdevice?uuid=[redacted]&pub_key=[redacted]    
2024-09-07T21:33:07.637036Z  WARN libsignal_service_hyper::websocket: Websocket closing: Some(CloseFrame { code: Normal, reason: "Closed" })
2024-09-07T21:33:07.637085Z ERROR libsignal_service::websocket: SignalWebSocket: Websocket error: end of web request stream; socket closing
2024-09-07T21:33:07.923850Z ERROR put_json{service=Service path="/v1/devices/link" additional_headers=[] credentials_override=Identified(HttpAuth { username: "[redacted]" })}:request{method=PUT endpoint=Service additional_headers=[] credentials_override=Identified(HttpAuth { username: "[redacted]" }) path=/v1/devices/link}: libsignal_service_hyper::push_service: Failed to decode HTTP 409 response: Error decoding JSON response: missing field `missingDevices` at line 1 column 42

@devhell
Copy link
Contributor Author

devhell commented Sep 7, 2024

This was fixed in 0.5.1. Are you sure you're executing the built binary and not the old 0.4.3 binary?

I was running it in the shell generated by nixpkgs-review, I don't have gurk in my PATH outside of it :O

I have entered the nixpkgs-review shell again and gurk -V yields gurk 0.5.1

Edit:

debug log output:

2024-09-07T21:32:56.952451Z  INFO presage::manager::linking: generating qrcode from provisioning link: sgnl://linkdevice?uuid=[redacted]&pub_key=[redacted]    
2024-09-07T21:33:07.637036Z  WARN libsignal_service_hyper::websocket: Websocket closing: Some(CloseFrame { code: Normal, reason: "Closed" })
2024-09-07T21:33:07.637085Z ERROR libsignal_service::websocket: SignalWebSocket: Websocket error: end of web request stream; socket closing
2024-09-07T21:33:07.923850Z ERROR put_json{service=Service path="/v1/devices/link" additional_headers=[] credentials_override=Identified(HttpAuth { username: "[redacted]" })}:request{method=PUT endpoint=Service additional_headers=[] credentials_override=Identified(HttpAuth { username: "[redacted]" }) path=/v1/devices/link}: libsignal_service_hyper::push_service: Failed to decode HTTP 409 response: Error decoding JSON response: missing field `missingDevices` at line 1 column 42

Hmmm, ok, I have had that issue with 0.4.3, and upstream fixed it apparently in this version. I can't reproduce your issue on my side. I can try to have another go at it tomorrow. I think the best way to proceed would be to perhaps open an issue with upstream for your case? Sorry about this.

@devhell
Copy link
Contributor Author

devhell commented Sep 8, 2024

@Scrumplex, so I've tested it again. Removed ~/.config/gurk and started version 0.5.1 again from fresh, which created a QR code, which I then scanned, and it linked successfully. The issue upstream fixed is described in this issue: boxdot/gurk-rs#298

@devhell
Copy link
Contributor Author

devhell commented Sep 8, 2024

@alyssais can this be merged now, please?

Copy link
Member

@Scrumplex Scrumplex left a comment

Choose a reason for hiding this comment

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

Packaging changes LGTM

@alyssais alyssais merged commit 7341768 into NixOS:master Sep 8, 2024
24 of 26 checks passed
@devhell devhell deleted the bump-gurk branch September 9, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants