-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
jellyfin: update to 10.4.1, port test to python #73064
Conversation
Please check the release note about the base URL change: https://github.com/jellyfin/jellyfin/releases/tag/v10.4.1
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.
The test looks good, though the issues with base url look pretty difficult.
Every person on unstable and 20.03 in the future would have to do the steps outlined in the Release Note?
I'm not sure how we could handle this migration in nixos. Ideally the module will perform this when jellyfin matches the version constraint it which it needs to be performed.
@minijackson Perhaps in
and condition it on the jellyfin version. |
I'm not feeling very well with adding that migration code, and keeping it around forever. It might also have undesired side effects. I'd prefer adding a nixos release note mentioning the jellyfin upgrade, and asking people to update their config, with a link to the upstream changelog. |
Release notes don’t help unstable users much. Even if we put the upgrade in for a few months, that would give unstable users, who probably don’t read the release notes, a chance to have their configuration fixed. Stable users will likely read the release notes on upgrade and can make this change themselves. |
On the more technical side of things, how would we proceed on implementing this? I think the best would be to remove the BaseUrl only if we upgraded from 10.4.0, and only if the BaseUrl is I don't know how you would check that we just did the upgrade path 10.4.0 -> 10.4.1 I'm not really fond of adding code that modifies user settings without their knowledge I just checked using the nixos test, the default BaseUrl for 10.4.1 is empty, so it really seems that any user that does any other upgrade path than 10.4.0 -> 10.4.1 shouldn't be affected. I'm not familiar with the rules of the unstable channel, but I think it should be reasonnable to leave it as is, and let affected users look for the release notes or this PR, instead of introducing changes that would potentially affect everyone. I'm open for discussion though ^^ |
hum, I did some more speluking, and I found that the version in NixOS master (10.4.0) is borked? using this config: { ... }:
{
services.jellyfin.enable = true;
networking.firewall.enable = false;
} And from the VM terminal: [root@machine:~]# curl -v localhost:8096
* Trying ::1:8096...
* TCP_NODELAY set
* Connected to localhost (::1) port 8096 (#0)
> GET / HTTP/1.1
> Host: localhost:8096
> User-Agent: curl/7.66.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Found
< Date: Sat, 09 Nov 2019 09:24:05 GMT
< Server: Kestrel
< Content-Length: 0
< Location: //web/index.html
<
* Connection #0 to host localhost left intact This redirects to |
One of the things I liked about nixos was manual migration could usually be handled in nixos. but since this involves user settings, I don't think there's much we can do aside from users having to figure this out. Though as @alyssais mentioned, having a release note isn't going to help people using unstable. I'm not sure what to do for unstable users... The only thing better I can think of is opening an issue with these details. We lack a way to give I can think of a bunch of more ugly options, but I don't think I would want to request someone to actually pursue them. As this stands, we lack a way to support unstable users in this way, so likely they're familiar with traversing github 😄 Issue title could be something like
|
I think "unstable" implies things might break, and we aim to add release notes in the same PRs that change behaviour.
People using the unstable channel should be able to traverse GitHub, at least open an issue, better, use the search functionality ;-)
I have some ideas in terms of improving the docs, including the unstable docs, so release notes for unstable could be shown there, too.
|
I had (wrongly?) assumed that migrating here would be a simple XML
modification we could detect the need for in a preStart and do
idempotently. If that's not the case here then I agree just not
attempting to do any migration is the best.
|
For me, the summary is that:
Considering that, if we're deciding on not doing the migration script, I think the best course of action would be to merge the upgrade as fast as possible, to prevent more people from going to 10.4.0, and hence encountering the bug. |
I agree. Let's merge this in. |
Thanks! |
Motivation for this change
Release notes:
https://github.com/jellyfin/jellyfin/releases/tag/v10.4.1
Please note that there is a potential compatibility issue with the base URL (explained in detail, with fix in the release notes).
Link to python "meta" PR: #72828
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @nyanloutre