Skip to content

fix: test_sets_default_sess_options fails if compiling with globally enabled cuda - #17516

Merged
mertalev merged 1 commit into
immich-app:mainfrom
Pleune:patch-1
Apr 10, 2025
Merged

mertalev merged 1 commit into
immich-app:mainfrom
Pleune:patch-1

Conversation

@Pleune

@Pleune Pleune commented Apr 10, 2025

Copy link
Copy Markdown
Contributor

Coming from nixos, this test fails when cuda is enabled. NixOS/nixpkgs#382896

Solution as proposed by @mertalev

Description

I'm not super familiar with how the plumbing of this all works, but in nixos tests are failing when we build the system with cuda support, so lets limit this test to the CPU provider only. I think that makes sense to only assume sess options when using the cpu provider, anyways.

Fixes NixOS/nixpkgs#352113

How Has This Been Tested?

Running my builds with this PR as patch now. I will update here when finished.

  • Test A
  • Test B

Screenshots (if appropriate)

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

…enabled cuda

Coming from nixos, this test fails when cuda is enabled. NixOS/nixpkgs#382896

Solution as proposed by @mertalev
@mertalev
mertalev merged commit 9fd2c52 into immich-app:main Apr 10, 2025
savely-krasovsky pushed a commit to savely-krasovsky/immich that referenced this pull request Jun 8, 2025
…enabled cuda (immich-app#17516)

Coming from nixos, this test fails when cuda is enabled. NixOS/nixpkgs#382896

Solution as proposed by @mertalev
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.

Build failure: immich-machine-learning-1.118.2

3 participants