Skip to content

immich: 1.136.0 -> 1.137.3 - #430306

Merged
Scrumplex merged 1 commit into
NixOS:masterfrom
Scrumplex:pkgs/immich/update-2025-08-001
Aug 11, 2025
Merged

Scrumplex merged 1 commit into
NixOS:masterfrom
Scrumplex:pkgs/immich/update-2025-08-001

Conversation

@Scrumplex

@Scrumplex Scrumplex commented Aug 2, 2025 •

Copy link
Copy Markdown
Member

https://github.com/immich-app/immich/releases/tag/v1.137.0
https://github.com/immich-app/immich/releases/tag/v1.137.1
https://github.com/immich-app/immich/releases/tag/v1.137.3

1.137.0 requires updating from Immich 1.132.0 or later.

I don't know how to ensure this elegantly.

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.

@Scrumplex
Scrumplex marked this pull request as ready for review August 2, 2025 07:59
@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. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Aug 2, 2025
@Scrumplex

Copy link
Copy Markdown
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 430306
Commit: fd7f4874296be9666a8d3bc84e18c16eabe1fcdd


x86_64-linux

✅ 4 packages built:
  • immich
  • immich-cli
  • immich-machine-learning
  • immich-machine-learning.dist

@nixpkgs-ci nixpkgs-ci Bot removed the 9.needs: reviewer This PR currently has no reviewers requested and needs attention. label Aug 2, 2025
@ISibboI

ISibboI commented Aug 2, 2025 •

Copy link
Copy Markdown

It may make sense to handle it similarly as nextcloud with a "state version" variable. But since immich is not breaking with each version, with ranges of versions for each state.

The state is simply an integer. Whenever immich gets a non-breaking update, the version corresponding to the latest state is simply incremented. Whenever there is a breaking update, then the version assigned to the current state number is frozen instead, and a new state number is added with the breaking immich version.

The user then increments the state version one by one, and is not allowed to skip any state version without starting immich in between.

I hope this makes a bit of sense.

@Scrumplex

Copy link
Copy Markdown
Member Author

But that would mean we would have to maintain multiple versions of Immich at the same time :/

@emmertex

emmertex commented Aug 3, 2025 •

Copy link
Copy Markdown

I have in one VM not been able to build this since about 1.131, even though once the cache is available it has worked fine.
It turned out I missed setting the microarchitecture on the machine, and unless at least x86-64-v2 is available, it will not build.

This is not a bug, but until now, it has never been clear why, but this time vite build specifically told me.

I went back to 1.135 PR and tested, and no, it is an ambiguous build failure, that works fine after setting the micro-architecture to x64-64-v3.

Given it is Vite and not immich, this probably does not belong here, but I was wondering if it was possible to do something like if ! cat /proc/cpuinfo | awk "/cx16/&&/lahf/&&/popcnt/&&/sse4_1/&&/sse4_2/&&/ssse3/" | grep -q .; then echo "microarchitecture must support x86-64-v2 instructions to buils"; fi as a warning?

@ISibboI

ISibboI commented Aug 3, 2025 •

Copy link
Copy Markdown

But that would mean we would have to maintain multiple versions of Immich at the same time :/

@Scrumplex I have limited understanding of nixos. But wouldn't old versions of immich be maintenance-free because they don't change anymore?

Well, at least every time nixos stable gets upgraded and the old nixos stable gets deprecated, all the older immich state versions can be deprecated or simply removed as well.

@Alper-Celik

Copy link
Copy Markdown
Member

But that would mean we would have to maintain multiple versions of Immich at the same time :/

@Scrumplex I have limited understanding of nixos. But wouldn't old versions of immich be maintenance-free because they don't change anymore?

Well, at least every time nixos stable gets upgraded and the old nixos stable gets deprecated, all the older immich state versions can be deprecated or simply removed as well.

i mean there needs to be extra code to support multiple versions like in the nextcloud case.

and even if old immich version isn't moving its dependencies might and it might require to be fixed by removing old version or by doing more maintainence to its dependencies.

@ISibboI

ISibboI commented Aug 8, 2025

Copy link
Copy Markdown

But that would mean we would have to maintain multiple versions of Immich at the same time :/

@Scrumplex I have limited understanding of nixos. But wouldn't old versions of immich be maintenance-free because they don't change anymore?
Well, at least every time nixos stable gets upgraded and the old nixos stable gets deprecated, all the older immich state versions can be deprecated or simply removed as well.

i mean there needs to be extra code to support multiple versions like in the nextcloud case.

and even if old immich version isn't moving its dependencies might and it might require to be fixed by removing old version or by doing more maintainence to its dependencies.

These are good points.

It may be the easiest to write in the docs everywhere that immich requires regular NixOS upgrades. Immich does not have these kind of unskippable upgrades that often anyways, so it may just be fine.

If someone really wants to implement a state version system for immich, they can of course still make a pull request :)

@Alper-Celik

Alper-Celik commented Aug 8, 2025 •

Copy link
Copy Markdown
Member

But that would mean we would have to maintain multiple versions of Immich at the same time :/

@Scrumplex I have limited understanding of nixos. But wouldn't old versions of immich be maintenance-free because they don't change anymore?
Well, at least every time nixos stable gets upgraded and the old nixos stable gets deprecated, all the older immich state versions can be deprecated or simply removed as well.

i mean there needs to be extra code to support multiple versions like in the nextcloud case.
and even if old immich version isn't moving its dependencies might and it might require to be fixed by removing old version or by doing more maintainence to its dependencies.

These are good points.

It may be the easiest to write in the docs everywhere that immich requires regular NixOS upgrades. Immich does not have these kind of unskippable upgrades that often anyways, so it may just be fine.

If someone really wants to implement a state version system for immich, they can of course still make a pull request :)

i feel like it is good idead too we can even provide git hash of nixpkgs upgrade you need to do before fully updating if you were updating from old version

also it should be fine to update from lastest stable to new stable fine but this shouldnt be a problem since versions seems to be backported.

@dotlambda dotlambda 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.

Since the stable channel already has a version people can update from, I don't see a need to provide any other versions or choose the version based on an option.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Aug 11, 2025
@Scrumplex
Scrumplex merged commit e989c23 into NixOS:master Aug 11, 2025
@nixpkgs-ci

nixpkgs-ci Bot commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Aug 11, 2025
@purcell purcell mentioned this pull request Aug 14, 2025
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 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. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants