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

redlib: 0.35.1-unstable-2024-11-01 -> 0.35.1-unstable-2024-11-22 #358226

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

bpeetz
Copy link
Contributor

@bpeetz bpeetz commented Nov 22, 2024

The current version of redlib in nixpkgs is already 20 days old and does no longer work because of a change on reddit's side, see: redlib-org/redlib#324.

I tested this version locally, and it works.

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.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.

@wegank wegank added 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package 12.approvals: 2 This PR was reviewed and approved by two reputable people labels Nov 24, 2024
@rnhmjoj
Copy link
Contributor

rnhmjoj commented Nov 24, 2024

The test is broken:

redlib[825]:  ERROR redlib::oauth > Failed to create OAuth client. Retrying in 5 seconds...
redlib[825]:  ERROR redlib::oauth > Failed to create OAuth client. Retrying in 5 seconds...

but it has been like this since last week. Can you fix it?

@wegank wegank added 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people and removed 12.approvals: 2 This PR was reviewed and approved by two reputable people labels Nov 25, 2024
The current version of redlib in nixpkgs is already 20 days old
and does no longer work because of a change on reddit's side, see:
redlib-org/redlib#324.
@bpeetz
Copy link
Contributor Author

bpeetz commented Nov 30, 2024

@rnhmjoj redlib seems to always try to get a oauth token, which requires sending a request to reddit.com.

We could try to mock the reddit.com host in the test, but this seems rather hacky. Asking upstream, if this auto-connect could be made conditional, would be the other option, but I'm not so sure they would accept something like that, because running redlib offline is probably not a supported configuration.

@Guanran928 as you've reworked the redlib module, do you have an idea on how to avoid this test issue?

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Nov 30, 2024

@bpeetz Ok, fixing the test can wait, then.

@rnhmjoj rnhmjoj merged commit 08ae948 into NixOS:master Nov 30, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 12.approvals: 3+ This PR was reviewed and approved by three or more reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants