Skip to content

python3Packages.sentence-transformers: disable test that segfaults on Darwin#422742

Merged
GaetanLepage merged 1 commit intoNixOS:masterfrom
sarahec:sentence-transformers-segfault-goodbye
Jul 6, 2025
Merged

python3Packages.sentence-transformers: disable test that segfaults on Darwin#422742
GaetanLepage merged 1 commit intoNixOS:masterfrom
sarahec:sentence-transformers-segfault-goodbye

Conversation

@sarahec
Copy link
Contributor

@sarahec sarahec commented Jul 5, 2025

Disabled tests/test_sparse_tensor.py on Darwin due to a segfault.

Requires #422747

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/)
  • Nixpkgs 25.11 Release Notes (or backporting 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 25.05 NixOS Release notes)
    • (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, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Jul 5, 2025
@sarahec
Copy link
Contributor Author

sarahec commented Jul 5, 2025

Discovered in nixpkgs-review of #420628

@nixpkgs-ci nixpkgs-ci bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jul 5, 2025
@nix-owners nix-owners bot requested a review from dit7ya July 5, 2025 17:15
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jul 5, 2025
@sarahec sarahec force-pushed the sentence-transformers-segfault-goodbye branch from 4e363fc to 75b51f1 Compare July 5, 2025 17:26
@sarahec sarahec requested a review from GaetanLepage July 5, 2025 18:47
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Segment fault
# Segmentation fault

(or Segfault).

Nit: feel free to ignore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Silly autodefect got me. Fixed.

@sarahec sarahec force-pushed the sentence-transformers-segfault-goodbye branch from 75b51f1 to 781b235 Compare July 5, 2025 22:22
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, last nit if you don't mind. Can you move stdenv just below lib please?

Otherwise, LGTM!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries. Done.

@sarahec sarahec force-pushed the sentence-transformers-segfault-goodbye branch from 781b235 to 2ae3d1a Compare July 5, 2025 23:08
@GaetanLepage
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 422742
Commit: 2ae3d1aacf7520d853dd4ca8cbbc53a4394a5e0d

@sarahec
Copy link
Contributor Author

sarahec commented Jul 6, 2025

Taking this to draft while its prerequisites get merged.

@sarahec sarahec marked this pull request as draft July 6, 2025 05:01
@sarahec
Copy link
Contributor Author

sarahec commented Jul 6, 2025

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 422742
Commit: 2ae3d1aacf7520d853dd4ca8cbbc53a4394a5e0d


aarch64-darwin

✅ 27 packages built:
  • aider-chat-full
  • aider-chat-full.dist
  • aider-chat-with-help
  • aider-chat-with-help.dist
  • python312Packages.langchain-huggingface
  • python312Packages.langchain-huggingface.dist
  • python312Packages.llama-index-embeddings-huggingface
  • python312Packages.llama-index-embeddings-huggingface.dist
  • python312Packages.llm-sentence-transformers
  • python312Packages.llm-sentence-transformers.dist
  • python312Packages.manifest-ml
  • python312Packages.manifest-ml.dist
  • python312Packages.sentence-transformers
  • python312Packages.sentence-transformers.dist
  • python313Packages.langchain-huggingface
  • python313Packages.langchain-huggingface.dist
  • python313Packages.llama-index-embeddings-huggingface
  • python313Packages.llama-index-embeddings-huggingface.dist
  • python313Packages.llm-sentence-transformers
  • python313Packages.llm-sentence-transformers.dist
  • python313Packages.manifest-ml
  • python313Packages.manifest-ml.dist
  • python313Packages.sentence-transformers
  • python313Packages.sentence-transformers.dist
  • vectorcode
  • vectorcode.dist
  • vimPlugins.vectorcode-nvim

@sarahec sarahec marked this pull request as ready for review July 6, 2025 15:09
@sarahec
Copy link
Contributor Author

sarahec commented Jul 6, 2025

@GaetanLepage this one's good to go.

@GaetanLepage GaetanLepage merged commit 6721e98 into NixOS:master Jul 6, 2025
29 of 31 checks passed
@sarahec sarahec deleted the sentence-transformers-segfault-goodbye branch July 6, 2025 18:32
@sarahec
Copy link
Contributor Author

sarahec commented Jul 13, 2025

Reverted in #424873 due to underlying cause in torch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants