Skip to content

Sync CMake tests with BUCK and remove flaky test#4782

Closed
algoriddle wants to merge 1 commit intofacebookresearch:mainfrom
algoriddle:export-D91814033
Closed

Sync CMake tests with BUCK and remove flaky test#4782
algoriddle wants to merge 1 commit intofacebookresearch:mainfrom
algoriddle:export-D91814033

Conversation

@algoriddle
Copy link
Contributor

Summary:

  • Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
  • Add missing tests to CMakeLists.txt that exist in BUCK:
    • test_NSG_compressed_graph
    • test_pqfs_unaligned
    • test_scalar_quantizer
    • test_factory_tools

Differential Revision: D91814033

@meta-cla meta-cla bot added the CLA Signed label Jan 29, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 29, 2026

@algoriddle has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91814033.

algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 29, 2026
Summary:

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Differential Revision: D91814033
algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 29, 2026
Summary:

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Differential Revision: D91814033
algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookresearch#4782

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Reviewed By: junjieqi

Differential Revision: D91814033
algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookresearch#4782

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Reviewed By: junjieqi

Differential Revision: D91814033
@algoriddle algoriddle force-pushed the export-D91814033 branch 2 times, most recently from 35bbaf4 to bef38a8 Compare January 30, 2026 18:52
algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookresearch#4782

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Reviewed By: junjieqi

Differential Revision: D91814033
algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookresearch#4782

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Reviewed By: junjieqi

Differential Revision: D91814033
algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookresearch#4782

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Reviewed By: junjieqi

Differential Revision: D91814033
algoriddle added a commit to algoriddle/faiss that referenced this pull request Jan 30, 2026
Summary:
Pull Request resolved: facebookresearch#4782

- Remove test_mem_leak.cpp (always skipped, removed from BUCK in D73790172)
- Add missing tests to CMakeLists.txt that exist in BUCK:
  - test_NSG_compressed_graph
  - test_pqfs_unaligned
  - test_scalar_quantizer
  - test_factory_tools

Reviewed By: junjieqi

Differential Revision: D91814033
…bookresearch#4782)

Summary:
Pull Request resolved: facebookresearch#4782

This diff makes several cleanups to prepare for Dynamic Dispatch:

Move factory_tools from cppcontrib to main faiss library:
- Moves factory_tools.cpp/h from faiss/cppcontrib/ to faiss/
- Removes the separate //faiss/cppcontrib:factory_tools target
- Updates all includes to use <faiss/factory_tools.h>
- Updates xplat.bzl to include factory_tools in source/header lists

Fix unaligned SIMD store in simd_result_handlers.h:
- Changes store() to storeu() for potentially unaligned memory
- Fixes crashes in test_pqfs_unaligned when compiled with SIMD flags

Sync CMake tests with BUCK:
- Add missing tests: test_NSG_compressed_graph, test_pqfs_unaligned, test_scalar_quantizer
- Remove test_mem_leak.cpp (already removed from BUCK in D73790172)
- Move test_factory_tools from cppcontrib tests to main tests

Add autodeps-skip to faiss library targets:
- Prevents autodeps from modifying carefully configured SIMD build settings

Reviewed By: junjieqi

Differential Revision: D91814033
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 2, 2026

This pull request has been merged in 31b47ba.

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.

2 participants