Skip to content
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

[Backport 2.x] Add expand_nested_docs Parameter support to NMSLIB engine #2340

Closed
wants to merge 416 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
416 commits
Select commit Hold shift + click to select a range
6b92dbc
Fix Spotless Transitive Dependency and bump aiohttp to fix CVE (#1323…
opensearch-trigger-bot[bot] Nov 27, 2023
d5db2ae
Add more description about running OpenSearch on MAC M1 to developer …
gaobinlong Dec 1, 2023
06d52d5
Allow nested knn field mapping when train model (#1318) (#1339)
junqiu-lei Dec 7, 2023
fda94bc
[Backport 2.x] Properly designate model state for actively training m…
ryanbogan Dec 13, 2023
8b7f6ad
Increase Lucene max dimension limit to 16,000 (#1346) (#1352)
opensearch-trigger-bot[bot] Dec 14, 2023
77d5da1
Tuned default values for ef_search and ef_construction for better ind…
navneet1v Dec 22, 2023
46d001d
Install security plugin from individual artifacts (#1369)
jmazanec15 Jan 3, 2024
f519fe2
[Backport 2.x] Fix flaky tests (#1370)
ryanbogan Jan 3, 2024
3043ef7
Fix script score queries not getting cached (#1373)
junqiu-lei Jan 4, 2024
bb4976c
Fix TrainingJobRouteDecisionInfo test (#1375)
opensearch-trigger-bot[bot] Jan 5, 2024
722bc63
Enabled Filtering on Nested Vector fields with top level filters (#13…
opensearch-trigger-bot[bot] Jan 5, 2024
7c65643
Throw proper exception to invalid k-NN query (#1380) (#1381)
junqiu-lei Jan 9, 2024
7900dbb
Bump lucene codec to 99 (#1383) (#1386)
naveentatikonda Jan 12, 2024
85fb70f
Add parent join support for faiss hnsw (#1398) (#1400)
heemin32 Jan 19, 2024
f41e44a
Handle multi-vector in exact search scenario (#1399) (#1401)
opensearch-trigger-bot[bot] Jan 19, 2024
4d9da8d
Few changes in integration test (#1395) (#1404)
opensearch-trigger-bot[bot] Jan 22, 2024
8513952
Fix KNNScorer to apply boost (#1403) (#1405)
opensearch-trigger-bot[bot] Jan 23, 2024
adb1f73
Fix equals and hashCode methods for KNNQuery and KNNQueryBuilder (#1407)
opensearch-trigger-bot[bot] Jan 23, 2024
f3d7d49
Skip delete .plugins-ml-config system index during integ test (#1419)…
opensearch-trigger-bot[bot] Jan 26, 2024
50c5256
Remove default admin credential references in DEVELOPER_GUIDE (#1415)…
opensearch-trigger-bot[bot] Jan 26, 2024
e4dda01
Fix markdown formatting in developer guide (#1426) (#1427)
opensearch-trigger-bot[bot] Jan 26, 2024
de9cde3
Refactor integ tests that access model index (#1423) (#1428)
jmazanec15 Jan 26, 2024
c64707c
Fix flaky model tests (#1429) (#1430)
opensearch-trigger-bot[bot] Jan 30, 2024
7a7f76d
Bump aiohttp from 3.8.6 to 3.9.2 in /benchmarks/osb (#1436)
opensearch-trigger-bot[bot] Jan 31, 2024
71b3c53
Pass correct value on IDSelectorBitmap initialization (#1444) (#1446)
opensearch-trigger-bot[bot] Feb 2, 2024
d5b4237
Update Build Script to build libraries with SIMD (#1451) (#1454)
opensearch-trigger-bot[bot] Feb 5, 2024
0e17711
Add support for Faiss SQFP16 Quantization and enable AVX2 Optimizatio…
naveentatikonda Feb 5, 2024
fc2c154
Set Default value for SIMD_ENABLED in CMakeList (#1455)
naveentatikonda Feb 5, 2024
042de0d
Update spotless and eclipse dependencies (#1450) (#1456)
opensearch-trigger-bot[bot] Feb 5, 2024
b899ed0
Change eclipse version to latest (#1457) (#1458)
opensearch-trigger-bot[bot] Feb 6, 2024
543834a
Revert "Update Build Script to build libraries with SIMD (#1451) (#14…
naveentatikonda Feb 6, 2024
83a2d1e
Add release notes for 2.12.0 release (#1463) (#1464)
opensearch-trigger-bot[bot] Feb 7, 2024
29279dc
Disable warning checks in k-NN test case (#1442) (#1471)
opensearch-trigger-bot[bot] Feb 8, 2024
34e58bd
Use valid data for sqfp16 test (#1474) (#1476)
opensearch-trigger-bot[bot] Feb 9, 2024
5e8a1c6
Fix a bug on sqfp16 test (#1477) (#1478)
opensearch-trigger-bot[bot] Feb 10, 2024
cfd3875
Update faiss commit and resolve conflict (#1443) (#1482)
opensearch-trigger-bot[bot] Feb 13, 2024
6be0f0c
Remove unnecessary dataset (#1485) (#1486)
opensearch-trigger-bot[bot] Feb 20, 2024
1d08467
Sync benchmark folder from main (#1497)
heemin32 Feb 23, 2024
5d0ceaa
Fix FieldInfo Parameters Mismatch (#1490) (#1492)
opensearch-trigger-bot[bot] Feb 27, 2024
513e496
Increment version to 2.13.0-SNAPSHOT (#1470)
opensearch-trigger-bot[bot] Feb 27, 2024
d9bd869
Optimize Faiss Query With Filters: Reduce iteration and memory for id…
opensearch-trigger-bot[bot] Mar 4, 2024
fd83164
Manually install zlib for win CI (#1514)
opensearch-trigger-bot[bot] Mar 6, 2024
9df8e20
Upgrade faiss to 12b92e9 (#1516)
opensearch-trigger-bot[bot] Mar 6, 2024
0400f2c
Disable sdc table for HNSWPQ read-only indices (#1519)
opensearch-trigger-bot[bot] Mar 7, 2024
65545a3
Raise gcc version requirement to 9.0.0 for SIMD Neon support on ARM64…
opensearch-trigger-bot[bot] Mar 7, 2024
9a952fc
Switch spacetype similarity function to MAXIMUM_INNER_PRODUCT (#1533)
jmazanec15 Mar 13, 2024
7307480
Detect AVX2 Dynamically on the System (#1503) (#1531)
opensearch-trigger-bot[bot] Mar 13, 2024
e3e3aa1
Bump jinja2 dependency from 2.11.3 to 3.1.3 (#1535) (#1536)
opensearch-trigger-bot[bot] Mar 13, 2024
b61da1f
Validate zero vector when using cosine metric (#1538)
jmazanec15 Mar 14, 2024
f4380e4
Add patch to fix segfault in nmslib during ingestion (#1541) (#1542)
opensearch-trigger-bot[bot] Mar 14, 2024
a9f783b
Fix AppSec Findings CWE-22 (Path Traversal) and CWE-476 (Null Pointer…
opensearch-trigger-bot[bot] Mar 14, 2024
a4479e4
Update k-NN build artifact script to enable SIMD on ARM for Faiss (#1…
opensearch-trigger-bot[bot] Mar 15, 2024
06d395f
[Backport 2.x] Persist model definition in model metadata (#1548)
ryanbogan Mar 15, 2024
67b54c0
Enabled Inner Product Space Type support for Lucene Engine (#1551) (#…
opensearch-trigger-bot[bot] Mar 18, 2024
ae6faa8
Introduce faiss patch to share ivfpq precomp table (#1520)
jmazanec15 Mar 7, 2024
35a4eb4
Add ability to share IVFPQ-l2 state in JNI (#1529)
jmazanec15 Mar 14, 2024
715b79d
Integrate index state sharing into mem management (#1545)
jmazanec15 Mar 18, 2024
6329f5f
Remove faiss CI patch (#1560) (#1561)
opensearch-trigger-bot[bot] Mar 18, 2024
1d712da
[Backport 2.x] Faiss SQFP16 Range Validation and Clipping (#1563)
opensearch-trigger-bot[bot] Mar 18, 2024
5cd2ab8
Add release notes for 2.13.0 release (#1564) (#1565)
opensearch-trigger-bot[bot] Mar 19, 2024
5748b8c
Upgrade byte-buddy version to 1.14.9 (#1567) (#1568)
opensearch-trigger-bot[bot] Mar 19, 2024
3ec60af
Add no new development notice to perf tool (#1578) (#1579)
opensearch-trigger-bot[bot] Mar 27, 2024
5afbbc0
Increment version to 2.14.0-SNAPSHOT (#1574)
opensearch-trigger-bot[bot] Apr 3, 2024
4c960a0
Add micro-benchmarks module in k-NN plugin for benchmark streaming ve…
opensearch-trigger-bot[bot] Apr 3, 2024
551068b
Make the HitQueue size more appropriate for exact search (#1549) (#1580)
opensearch-trigger-bot[bot] Apr 3, 2024
bc14182
Fix script to pick up correct zip (#1596)
opensearch-trigger-bot[bot] Apr 8, 2024
d4e91e0
Support script score when doc value is disabled (#1573) (#1587)
bugmakerrrrrr Apr 9, 2024
172dc84
Implemented the Streaming Feature to stream vectors from Java to JNI …
navneet1v Apr 10, 2024
cee100f
Remove unnecessary toString conversion of vector field and added some…
opensearch-trigger-bot[bot] Apr 12, 2024
78a489a
[Backport 2.x] [k-NN] Add Clear Cache API (#1055)
opensearch-trigger-bot[bot] Apr 13, 2024
028f289
Separate common lib jni and non-jni into 2 libs (#1624)
opensearch-trigger-bot[bot] Apr 18, 2024
4abe91f
Add arm64 check when SIMD is disabled (#1618) (#1626)
opensearch-trigger-bot[bot] Apr 18, 2024
529c5de
Support radial search in k-NN (#1627)
junqiu-lei Apr 18, 2024
579bbb1
Fix flaky faiss integration tests (#1635) (#1637)
opensearch-trigger-bot[bot] Apr 22, 2024
ec9ddb4
Add stored fields for knn_vector type (#1640)
jmazanec15 Apr 22, 2024
d9d2d10
Serialize all models into cluster metadata (#1499) (#1644)
opensearch-trigger-bot[bot] Apr 23, 2024
e65a310
Update gcc restrictions to version 12.0.0 (#1643)
opensearch-trigger-bot[bot] Apr 23, 2024
e4cc592
Skip rebuild from scratch after cmake is ran (#1648)
opensearch-trigger-bot[bot] Apr 23, 2024
4fc0cff
Ensure ignore_unmapped is set to correct value (#1655)
ryanbogan Apr 24, 2024
d15e250
Add flag for whether patches should be committed (#1656)
opensearch-trigger-bot[bot] Apr 24, 2024
6a77cfc
Updates Developer guide (#1642) (#1657)
opensearch-trigger-bot[bot] Apr 25, 2024
0366620
* Support filter and nested field in faiss engine radial search (#165…
junqiu-lei Apr 29, 2024
2ac4903
Fixing KNNCodecServiceTests as reported in the gh issue:[#1593] (#160…
opensearch-trigger-bot[bot] Apr 29, 2024
bfe4600
Enable script score to work with model based indices (#1661)
ryanbogan Apr 30, 2024
34e55f2
Revert 'Support script score when doc value is disabled' (#1662) (#1666)
opensearch-trigger-bot[bot] Apr 30, 2024
143b27b
Ensure blas is statically linked (#1667)
opensearch-trigger-bot[bot] Apr 30, 2024
5487264
Ensure gcc is newer >= 11.2.1 < 12.0.0 when building knn lib (#1669)
opensearch-trigger-bot[bot] Apr 30, 2024
3498870
Remove odfe release notes (#1673)
opensearch-trigger-bot[bot] Apr 30, 2024
c58ba53
Add 2.14 release notes (#1675)
jmazanec15 Apr 30, 2024
9eb0985
Revert #1634 #1664 to switch back to CentOS7 (#1674) (#1676)
opensearch-trigger-bot[bot] Apr 30, 2024
04f23ae
Update 2.14 release notes (#1679) (#1680)
opensearch-trigger-bot[bot] May 1, 2024
b36ba45
Update DEVELOPER_GUIDE.md for M Chip Mac (#1682) (#1683)
opensearch-trigger-bot[bot] May 2, 2024
23ecce5
Fix build CI failure on MacOS (#1685) (#1689)
opensearch-trigger-bot[bot] May 6, 2024
144d2bf
Block commas in model description (#1695)
ryanbogan May 9, 2024
46e4051
Add KnnCircuitBreakerException and modify exception message (#1688) (…
opensearch-trigger-bot[bot] May 13, 2024
bf8d2a9
Add stats for radial search (#1684) (#1701)
junqiu-lei May 14, 2024
81b514b
Increment version to 2.15.0-SNAPSHOT (#1686)
opensearch-trigger-bot[bot] May 15, 2024
e6c5047
Updating security reachout email (#1702)
opensearch-trigger-bot[bot] May 15, 2024
2890521
Add luyuncheng as maintainer (#1628) (#1704)
VijayanB May 16, 2024
2e3da54
Fix flaky test in Faiss JNI range search (#1705) (#1706)
opensearch-trigger-bot[bot] May 17, 2024
c2c1660
Support script score when doc value is disabled and fix misusing DISI…
opensearch-trigger-bot[bot] May 21, 2024
40bf388
Update threshold value after new result is added (#1715) (#1716)
opensearch-trigger-bot[bot] May 23, 2024
1ef0974
Use the Lucene Distance Calculation Function in Script Scoring for do…
opensearch-trigger-bot[bot] May 24, 2024
8150a07
Add validation for pq m parameter before training starts (#1713) (#1721)
opensearch-trigger-bot[bot] May 30, 2024
5ffdb42
Refractor createParseField function in mappers for code reusability (…
opensearch-trigger-bot[bot] Jun 7, 2024
71deaf4
Bump idna from 3.3 to 3.7 in /benchmarks/osb (#1612) (#1739)
opensearch-trigger-bot[bot] Jun 11, 2024
e932570
Bump idna from 3.2 to 3.7 in /benchmarks/perf-tool (#1611) (#1740)
opensearch-trigger-bot[bot] Jun 11, 2024
5b3c4f8
Bump aiohttp from 3.9.2 to 3.9.4 in /benchmarks/osb (#1625) (#1741)
opensearch-trigger-bot[bot] Jun 11, 2024
cd311af
Add 2.15.0 release notes (#1738) (#1744)
opensearch-trigger-bot[bot] Jun 11, 2024
0738439
[Backport 2.x] Block delete model requests if an index uses the model…
opensearch-trigger-bot[bot] Jun 11, 2024
b532fa0
Bump jinja2 from 2.11.3 to 3.1.3 (#1750) (#1751)
opensearch-trigger-bot[bot] Jun 12, 2024
cf5a754
Optimize logic and tests for blocking model deletion when in use (#17…
opensearch-trigger-bot[bot] Jun 17, 2024
4ab5339
Increment version to 2.16.0-SNAPSHOT (#1749)
opensearch-trigger-bot[bot] Jun 28, 2024
946b99f
Adds ef_search as a query parameter for Lucene, FAISS and NMSLIB (#17…
shatejas Jul 4, 2024
ef5489e
Support ef_search parameter in radial search faiss engine (#1790) (#1…
junqiu-lei Jul 5, 2024
bd2dea3
Fix linux build CI error due to action runner env upgrade node 20 (#1…
opensearch-trigger-bot[bot] Jul 8, 2024
c47fba1
Fixing the arithmetic to find the number of vectors to stream from ja…
opensearch-trigger-bot[bot] Jul 9, 2024
67b4fa9
Setting locale to Locale.ROOT while using String.format to ensure tha…
navneet1v Jul 10, 2024
8b63d1d
Add jni interface to use a binary hnsw index with faiss (#1778) (#1817)
heemin32 Jul 11, 2024
af8f04d
Release memory properly for an array type (#1820) (#1821)
opensearch-trigger-bot[bot] Jul 12, 2024
c5da4ec
[BUG] FIX Same Suffix Cause Recall Drop to zero (#1802) (#1832)
opensearch-trigger-bot[bot] Jul 16, 2024
73ede54
[feature to main branch] Add binary format support with HNSW method i…
heemin32 Jul 16, 2024
27a3b37
Bump faiss commit to 33c0ba5 (#1796) (#1814)
opensearch-trigger-bot[bot] Jul 16, 2024
3e9e5cf
Switch from byte stream to byte ref (#1835)
opensearch-trigger-bot[bot] Jul 16, 2024
a7603e8
Fixed LeafReaders casting errors to SegmentReaders when segment repli…
opensearch-trigger-bot[bot] Jul 16, 2024
765e9eb
Implement script scoring for knn field with binary data type (#1826) …
opensearch-trigger-bot[bot] Jul 16, 2024
87733a3
Adds Nprobe as a method parameter in knn query (#1841)
shatejas Jul 17, 2024
ee4b37b
Apply custom patch only once by comparing the last patch id (#1833) (…
opensearch-trigger-bot[bot] Jul 17, 2024
5c4fad3
Add painless script support for hamming with binary vector data type …
opensearch-trigger-bot[bot] Jul 18, 2024
4cc44fd
Fix build failure due to patch conflict (#1851) (#1852)
opensearch-trigger-bot[bot] Jul 18, 2024
2c6e0bf
Fix few bugs on binary index with Faiss HNSW (#1850) (#1856)
opensearch-trigger-bot[bot] Jul 19, 2024
39b9cd8
Switch space type name from hammingbit to hamming for binary index (#…
opensearch-trigger-bot[bot] Jul 19, 2024
2091af3
Add binary format support with IVF method in Faiss Engine (#1784) (#1…
junqiu-lei Jul 22, 2024
c7cbba4
Adds release notes for 2.16 (#1866)
opensearch-trigger-bot[bot] Jul 23, 2024
bfed576
Block PQ support when data type is binary format (#1868) (#1869)
opensearch-trigger-bot[bot] Jul 23, 2024
f84caf8
Add support for Lucene inbuilt Scalar Quantizer (#1848) (#1871)
opensearch-trigger-bot[bot] Jul 23, 2024
deea892
Removes benchmark folder from 2.x branch to resolve CVEs from the fol…
shatejas Jul 24, 2024
222737b
Corrected search logic for scenario with non-existent fields in filte…
martin-gaievski Jul 25, 2024
59bb71a
Apply https://github.com/opensearch-project/k-NN/pull/1804 (#1882) (#…
opensearch-trigger-bot[bot] Jul 25, 2024
c1450cd
Introduce NativeEngineKNNVectorsFormat as a KNNVectorsFormat for Nati…
opensearch-trigger-bot[bot] Jul 27, 2024
29dcadd
Refactor parsing of KNNQueryBuilder (#1895)
jmazanec15 Jul 29, 2024
812255d
Fix idea xml file (#1902)
opensearch-trigger-bot[bot] Jul 30, 2024
d5b9fab
Add triage.md based off of security (#1904)
opensearch-trigger-bot[bot] Jul 30, 2024
4ff9849
Limit tests run based on changed path (#1905)
opensearch-trigger-bot[bot] Jul 30, 2024
a22184c
Adding integration tests for binary index (#1876) (#1910)
opensearch-trigger-bot[bot] Jul 30, 2024
5703206
[Backport 2.x] Refactor engine package structure (#1915)
opensearch-trigger-bot[bot] Jul 31, 2024
f9de176
Introduced KNNVectorValues interface to iterate on different types of…
navneet1v Aug 1, 2024
4e7c56d
Refactor method structure and definitions (#1923)
opensearch-trigger-bot[bot] Aug 2, 2024
0d2945e
Fix a flaky unit test:testMultiFieldsKnnIndex, which was failing due …
opensearch-trigger-bot[bot] Aug 2, 2024
ec9fe9f
Generalize lib interface to return context objects (#1927)
opensearch-trigger-bot[bot] Aug 2, 2024
39061a0
Refactor KNNVectorFieldType from KNNVectorFieldMapper to a separate c…
opensearch-trigger-bot[bot] Aug 5, 2024
4b5e210
Increment version to 2.17.0-SNAPSHOT (#1922)
opensearch-trigger-bot[bot] Aug 8, 2024
05e9779
Fix graph merge stats size calculation (#1844) (#1941)
ryanbogan Aug 9, 2024
20039d0
Introduces NativeEngineKNNQuery which executes ANN on rewrite (#1877)…
shatejas Aug 9, 2024
ede3665
Refactor Around Mapper and Mapping (#1947)
opensearch-trigger-bot[bot] Aug 10, 2024
1527f11
Integrate Lucene Vector field with native engines to use KNNVectorFor…
opensearch-trigger-bot[bot] Aug 12, 2024
fc64e30
[Backport 2.x] Quantization Framework Implementation with 1bit and Mu…
Vikasht34 Aug 13, 2024
1ca7e5e
Integrate KNNVectorValues with vector ANN Search flow (#1952) (#1958)
navneet1v Aug 14, 2024
3e9cecc
BackPort Java Doc Fix with Code Improvements (#1959) (#1961)
opensearch-trigger-bot[bot] Aug 15, 2024
d783300
Quantization Framework Code Structure Improvement (#1967) (#1968)
opensearch-trigger-bot[bot] Aug 15, 2024
bf93ce7
[Backport 2.x] Adds rescore parameter to KNNQuery (#1974)
opensearch-trigger-bot[bot] Aug 15, 2024
f3e644c
Block a vector field to have invalid characters for a physical file n…
0ctopus13prime Aug 16, 2024
ee534fb
Encapsulate dimension, vector data type validation/processing inside …
jmazanec15 Aug 16, 2024
7ad7d2f
Fixing the dimension for the vector when using Lucene field in ModelF…
opensearch-trigger-bot[bot] Aug 19, 2024
3a0363f
Disables rewrite code path to debug latency issues (#1987) (#1988)
opensearch-trigger-bot[bot] Aug 20, 2024
81e9587
Add quantization state cache (#1960) (#1990)
opensearch-trigger-bot[bot] Aug 20, 2024
c633d3f
Add script_fields context to KNNAllowlist (#1917) (#1966)
VijayanB Aug 20, 2024
8dffc2b
Add support for qframework from interface (#1998)
jmazanec15 Aug 21, 2024
ebd8a82
Fix string for qframe parser key (#2000)
opensearch-trigger-bot[bot] Aug 22, 2024
c5365de
k-NN query rescore support for native engines (#2001)
opensearch-trigger-bot[bot] Aug 22, 2024
020ab1f
Integrates FAISS iterative builds with NativeEngines990KnnVectorsForm…
shatejas Aug 22, 2024
abce10e
Add HNSW changes to support Faiss byte vector (#1823) (#2003)
opensearch-trigger-bot[bot] Aug 26, 2024
9da1a77
Integration of Quantization Framework for Binary Quantization with In…
opensearch-trigger-bot[bot] Aug 26, 2024
e751cad
Align dimensions to the nearest multiple of 8 in QuantizationState (#…
opensearch-trigger-bot[bot] Aug 29, 2024
3e19b9d
Parallelize make to reduce build time (#2006) (#2008)
opensearch-trigger-bot[bot] Aug 29, 2024
85af51c
Changes NativeEngineKNNQuery to execute search and rescore in (#2014)…
shatejas Aug 30, 2024
0410e37
Add IVF changes to support Faiss byte vector (#2002) (#2017)
opensearch-trigger-bot[bot] Aug 30, 2024
2fb9bb9
Makes NativeEngines990KnnVectorFormat as default for index version (#…
shatejas Sep 3, 2024
2bb26e5
Fixes the build (#2024)
shatejas Sep 4, 2024
b04bb3a
Adds graph build time metrics in NativeEngines990KnnVectorsWriter (#2…
opensearch-trigger-bot[bot] Sep 4, 2024
d48b6ed
Fixing the format name for NativeEngines990KnnVectorsFormat (#2025) (…
opensearch-trigger-bot[bot] Sep 4, 2024
10c5e29
Introduce compression and mode mapping parms (#2028)
opensearch-trigger-bot[bot] Sep 4, 2024
5858d1c
Fix memory overflow caused by cache behavior (#2015) (#2032)
kotwanikunal Sep 4, 2024
4417428
Add release notes for 2.17 (#2039)
naveentatikonda Sep 5, 2024
cc74ca9
Add quantization state reader and writer (#1997) (#2041)
opensearch-trigger-bot[bot] Sep 5, 2024
91b2858
[Backport 2.x] Introduce mode and compression param resolution (#2042)
opensearch-trigger-bot[bot] Sep 5, 2024
2f523b8
Fix tests related to quantization state (#2045) (#2047)
opensearch-trigger-bot[bot] Sep 5, 2024
9689a37
Add spaceType as a top level parameter while creating vector field. (…
opensearch-trigger-bot[bot] Sep 5, 2024
f3d38bc
Fix the force merge with Quantization failures when a segment has del…
opensearch-trigger-bot[bot] Sep 5, 2024
4dbc115
Bounds the transferLimit in OffheapVectorTransfer (#2070) (#2073)
opensearch-trigger-bot[bot] Sep 9, 2024
9ddfed5
Add tests for top level spaceType parameter with different combinatio…
opensearch-trigger-bot[bot] Sep 9, 2024
77eb37f
Throws and exception for radial search when mapping is for on-disk mo…
opensearch-trigger-bot[bot] Sep 9, 2024
0eaa5a0
[BugFix] Fixing KNNMethodContext resolution when documents are ingest…
navneet1v Sep 9, 2024
ed5d7d1
Re-Call Issue Fix with Binary Quantized Vectors (#2071) (#2078)
opensearch-trigger-bot[bot] Sep 9, 2024
d69a038
[Backport 2.x] Add model version to model metadata and change model …
ryanbogan Sep 9, 2024
ff6097e
Fixing filtered vector search when quantization is applied (#2076) (#…
opensearch-trigger-bot[bot] Sep 10, 2024
107ac0e
Fix mode/comp params so parameter overrides work (#2084)
opensearch-trigger-bot[bot] Sep 10, 2024
9717e4c
Use correct type for binary vector in ivf training (#2086) (#2088)
opensearch-trigger-bot[bot] Sep 11, 2024
3c40b93
Switch MINGW32 to MINGW64 (#2090) (#2091)
opensearch-trigger-bot[bot] Sep 11, 2024
e4a5914
[Backport 2.x] Add recall test with small dataset (#2093)
opensearch-trigger-bot[bot] Sep 11, 2024
c4445d0
Improving Defaults Hyper Parameter for Binary Quantization Indexes (#…
opensearch-trigger-bot[bot] Sep 11, 2024
7972f08
Adds index and query BWC tests for missing engines (#2035) (#2096)
shatejas Sep 12, 2024
cddbded
Add short circuit if no live docs are in segments (#2059) (#2104)
opensearch-trigger-bot[bot] Sep 13, 2024
5529a26
Adds Unit tests for NativeEngines990KnnVectorsWriter (#2097) (#2108)
opensearch-trigger-bot[bot] Sep 14, 2024
cd4e75d
Add DocValuesProducers for releasing memory when close index (#1946) …
opensearch-trigger-bot[bot] Sep 14, 2024
7ff8dd0
Fix native engine vector format test (#2103) (#2107)
opensearch-trigger-bot[bot] Sep 14, 2024
d96f227
Fix bug where quantization framework does not work with training (#21…
opensearch-trigger-bot[bot] Sep 14, 2024
b4896e3
Remove outdated comment in integration tests (#2118)
opensearch-trigger-bot[bot] Sep 18, 2024
097278b
Change min oversample to 1 (#2117) (#2119)
opensearch-trigger-bot[bot] Sep 18, 2024
662100f
Increment version to 2.18.0-SNAPSHOT (#2057)
opensearch-trigger-bot[bot] Sep 18, 2024
87ca73a
Add log message for quantization state cache eviction due to size (#2…
opensearch-trigger-bot[bot] Sep 18, 2024
3967d19
Remove benchmarks folder from k-NN repo (#2129)
opensearch-trigger-bot[bot] Sep 19, 2024
9601677
Integrates KNN plugin with ConcurrentSearchRequestDecider interface (…
shatejas Sep 20, 2024
550e8a1
Add changes for AVX-512 support in k-NN. (#2110) (#2130)
opensearch-trigger-bot[bot] Sep 23, 2024
33c05ea
Makes sure KNNVectorValues aren't recreated unnecessarily when quanti…
opensearch-trigger-bot[bot] Sep 23, 2024
5bad05c
Add space_type as acceptable field in train API (#2141) (#2143)
opensearch-trigger-bot[bot] Sep 25, 2024
4447a43
KNN80DocValues should only be considered for BinaryDocValues fields (…
opensearch-trigger-bot[bot] Sep 26, 2024
db37c93
Update Default Rescore Context based on Dimesion (#2149) (#2150)
opensearch-trigger-bot[bot] Sep 26, 2024
af02da5
Add Release Notes for 2.17.1.0 (#2154) (#2156)
opensearch-trigger-bot[bot] Sep 27, 2024
47d47c0
KNNIterators should support with and without filters (#2155) (#2166)
opensearch-trigger-bot[bot] Sep 28, 2024
7f7ea59
Optimize reduceToTopK in ResultUtil by removing pre-filling and reduc…
opensearch-trigger-bot[bot] Sep 30, 2024
035e5da
Fix Faiss efficient filter exact search using byte vector datatype (#…
opensearch-trigger-bot[bot] Oct 1, 2024
4b6472d
Adding Support to Enable/Disble Share level Rescoring and Update Over…
opensearch-trigger-bot[bot] Oct 1, 2024
ec58837
Refactor and Update unit test to include field with no live docs (#21…
opensearch-trigger-bot[bot] Oct 1, 2024
c271ef7
Update release notes 2.17.1 (#2159)
opensearch-trigger-bot[bot] Oct 2, 2024
eb80222
Added NMSLIB patched allowing load/write APIs with a stream object. (…
opensearch-trigger-bot[bot] Oct 2, 2024
642fdf4
Introducing a loading layer in FAISS native engine. (#2139) (#2179)
opensearch-trigger-bot[bot] Oct 3, 2024
2caae12
Fix sed command in DEVELOPER_GUIDE to append a new line character '\n…
0ctopus13prime Oct 3, 2024
1c77c92
[Backport 2.x] Score Fix for Binary Quantized Vector and Setting Defa…
opensearch-trigger-bot[bot] Oct 7, 2024
f9af48d
[Backport 2.x] Fix lucene codec after lucene version bumped to 9.12 (…
opensearch-trigger-bot[bot] Oct 9, 2024
5900aa1
Fix changelog (#2198) (#2199)
opensearch-trigger-bot[bot] Oct 9, 2024
425687b
[Backport 2.x] Add support to build vector data structures greedily a…
opensearch-trigger-bot[bot] Oct 10, 2024
cbc7dac
Bump byte-buddy to 1.15.4 (#2204) (#2205)
opensearch-trigger-bot[bot] Oct 11, 2024
75f9a18
Bump Faiss commit from 33c0ba5 to 4eecd91 (#2194) (#2203)
opensearch-trigger-bot[bot] Oct 15, 2024
a142d2b
Add CompressionLevel Calculation for PQ (#2216)
opensearch-trigger-bot[bot] Oct 16, 2024
4a224e3
[Backport 2.x] Introduce a loading layer in NMSLIB. (#2185) (#2220)
0ctopus13prime Oct 21, 2024
8e07928
Bump Faiss commit from 4eecd916 to 1f42e815 (#2224) (#2226)
opensearch-trigger-bot[bot] Oct 22, 2024
ee00593
Remove FileWatcher from KNN (#2182) (#2225)
0ctopus13prime Oct 22, 2024
be0837d
Add Release Notes for 2.18.0.0 (#2227) (#2228)
naveentatikonda Oct 22, 2024
bdbddcf
[Backport 2.x] Update approximate_threshold to 15K documents (#2229) …
VijayanB Oct 24, 2024
1944783
Update bwc test to update index setting (#2236) (#2238)
VijayanB Oct 25, 2024
7d02040
Added 'j' option to use multiple cpus to build JNI library. (#2244) (…
opensearch-trigger-bot[bot] Nov 5, 2024
2851844
Increment version to 2.19.0-SNAPSHOT (#2237)
opensearch-trigger-bot[bot] Nov 7, 2024
3d1649d
Fix backport branch deletion on merge (#2255)
opensearch-trigger-bot[bot] Nov 7, 2024
2e603a1
Introduced writing layer, getting rid of writing logic that uses an a…
0ctopus13prime Nov 7, 2024
1873211
Update default engine to FAISS (#2221) (#2258)
opensearch-trigger-bot[bot] Nov 8, 2024
5556117
Bump up C++ version in JNI from c++11 to c++17. (#2259) (#2261)
opensearch-trigger-bot[bot] Nov 8, 2024
8676685
Upgrade bytebuddy and objenesis version to match OpenSearch core and,…
opensearch-trigger-bot[bot] Nov 18, 2024
67bd9b7
Fixing the bug when a segment has no vector field present for disk ba…
opensearch-trigger-bot[bot] Nov 20, 2024
4e1a8f6
Added null checks for fieldInfo in ExactSearcher to avoid NPE while r…
opensearch-trigger-bot[bot] Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams
* @opensearch-project/k-nn
* @heemin32 @navneet1v @VijayanB @vamshin @jmazanec15 @naveentatikonda @junqiu-lei @martin-gaievski @ryanbogan @luyuncheng
207 changes: 159 additions & 48 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,79 +6,190 @@ on:
branches:
- "*"
- "feature/**"
paths:
- 'build.gradle'
- 'settings.gradle'
- 'src/**'
- 'build-tools/**'
- 'buildSrc/**'
- 'gradle/**'
- 'jni/**'
- 'micro-benchmarks/**'
- '.github/workflows/CI.yml'
pull_request:
branches:
- "*"
- "feature/**"
paths:
- 'build.gradle'
- 'settings.gradle'
- 'src/**'
- 'build-tools/**'
- 'buildSrc/**'
- 'gradle/**'
- 'jni/**'
- 'micro-benchmarks/**'
- '.github/workflows/CI.yml'
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

jobs:
Build-k-NN:
Get-CI-Image-Tag:
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
with:
product: opensearch

Build-k-NN-Linux:
strategy:
matrix:
java: [11, 17]
java: [11, 17, 21]

name: Build and Test k-NN Plugin
name: Build and Test k-NN Plugin on Linux
runs-on: ubuntu-latest
needs: Get-CI-Image-Tag
container:
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
# this image tag is subject to change as more dependencies and updates will arrive over time
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
# need to switch to root so that github actions can install runner binary on container without permission issues.
options: --user root

steps:
- name: Checkout k-NN
uses: actions/checkout@v1

# Setup git user so that patches for native libraries can be applied and committed
- name: Setup git user
run: |
su `id -un 1000` -c 'git config --global user.name "github-actions[bot]"'
su `id -un 1000` -c 'git config --global user.email "github-actions[bot]@users.noreply.github.com"'

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Install dependencies
run: |
sudo apt-get install libopenblas-dev gfortran -y

- name: Run build
# switching the user, as OpenSearch cluster can only be started as root/Administrator on linux-deb/linux-rpm/windows-zip.
run: |
./gradlew build
chown -R 1000:1000 `pwd`
if lscpu | grep -i avx512f | grep -i avx512cd | grep -i avx512vl | grep -i avx512dq | grep -i avx512bw
then
echo "avx512 available on system"
su `id -un 1000` -c "whoami && java -version && ./gradlew build -Dnproc.count=`nproc`"
elif lscpu | grep -i avx2
then
echo "avx2 available on system"
su `id -un 1000` -c "whoami && java -version && ./gradlew build -Dnproc.count=`nproc` -Davx512.enabled=false"
else
echo "avx512 and avx2 not available on system"
su `id -un 1000` -c "whoami && java -version && ./gradlew build -Davx2.enabled=false -Davx512.enabled=false -Dnproc.count=`nproc`"
fi


- name: Upload Coverage Report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

# - name: Pull and Run Docker for security tests
# run: |
# plugin=`ls build/distributions/*.zip`
# version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-3`
# plugin_version=`echo $plugin|awk -F- '{print $4}'| cut -d. -f 1-4`
# echo $version
# cd ..
# if docker pull opendistroforelasticsearch/opendistroforelasticsearch:$version
# then
# echo "FROM opendistroforelasticsearch/opendistroforelasticsearch:$version" >> Dockerfile
# echo "RUN if [ -d /usr/share/elasticsearch/plugins/opendistro-knn ]; then /usr/share/elasticsearch/bin/elasticsearch-plugin remove opendistro-knn; fi" >> Dockerfile
# echo "RUN yum -y update \ && yum -y groupinstall "Development Tools" \ && yum install -y unzip glibc.x86_64 cmake \ && yum clean all" >> Dockerfile
# echo "RUN git clone --recursive --branch ${GITHUB_REF##*/} https://github.com/opendistro-for-elasticsearch/k-NN.git /usr/share/elasticsearch/k-NN \ " >> Dockerfile
# echo "&& cd /usr/share/elasticsearch/k-NN/jni \ && sed -i 's/-march=native/-march=x86-64/g' external/nmslib/similarity_search/CMakeLists.txt \ && cmake . \ && make \ " >> Dockerfile
# echo "&& mkdir /tmp/jni/ && cp release/*.so /tmp/jni/ && ls -ltr /tmp/jni/ \ && cp /tmp/jni/libKNNIndex*.so /usr/lib \ && rm -rf /usr/share/elasticsearch/k-NN" >> Dockerfile
# echo "RUN cd /usr/share/elasticsearch/" >> Dockerfile
# echo "ADD k-NN/build/distributions/opendistro-knn-$plugin_version.zip /tmp/" >> Dockerfile
# echo "RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install --batch file:/tmp/opendistro-knn-$plugin_version.zip" >> Dockerfile
# docker build -t odfe-knn:test .
# echo "imagePresent=true" >> $GITHUB_ENV
# else
# echo "imagePresent=false" >> $GITHUB_ENV
# fi
# - name: Run Docker Image
# if: env.imagePresent == 'true'
# run: |
# cd ..
# docker run -p 9200:9200 -d -p 9600:9600 -e "discovery.type=single-node" odfe-knn:test
# sleep 90
# - name: Run k-NN Test
# if: env.imagePresent == 'true'
# run: |
# security=`curl -XGET https://localhost:9200/_cat/plugins?v -u admin:admin --insecure |grep opendistro_security|wc -l`
# if [ $security -gt 0 ]
# then
# echo "Security plugin is available. Running tests in security mode"
# ./gradlew :integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin
# else
# echo "Security plugin is NOT available. Skipping tests as they are already ran part of ./gradlew build"
# fi
Build-k-NN-MacOS:
strategy:
matrix:
java: [ 11, 17, 21 ]

name: Build and Test k-NN Plugin on MacOS
needs: Get-CI-Image-Tag
runs-on: macos-13

steps:
- name: Checkout k-NN
uses: actions/checkout@v1

# Setup git user so that patches for native libraries can be applied and committed
- name: Setup git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Install dependencies on macos
run: |
brew install libomp
brew reinstall gcc
export FC=/usr/local/Cellar/gcc/12.2.0/bin/gfortran

# TODO: Detect processor count and set the value of nproc.count
- name: Run build
run: |
if sysctl -n machdep.cpu.features machdep.cpu.leaf7_features | grep -i AVX2
then
echo "avx2 available on system"
./gradlew build -Dnproc.count=3
else
echo "avx2 not available on system"
./gradlew build -Davx2.enabled=false -Davx512.enabled=false -Dnproc.count=3
fi

Build-k-NN-Windows:
strategy:
matrix:
java: [ 11, 17, 21 ]

name: Build and Test k-NN Plugin on Windows
needs: Get-CI-Image-Tag
runs-on: windows-latest

steps:
- name: Checkout k-NN
uses: actions/checkout@v1

# Setup git user so that patches for native libraries can be applied and committed
- name: Setup git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Install MinGW Using Scoop
run: |
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"
scoop bucket add main
scoop install mingw

- name: Add MinGW to PATH
run: |
echo "C:/Users/runneradmin/scoop/apps/mingw/current/bin" >> $env:GITHUB_PATH
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
refreshenv

- name: Install Zlib Using Scoop
run: |
echo "C:/Users/runneradmin/scoop/shims" >> $env:GITHUB_PATH
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
refreshenv
scoop bucket add extras
scoop install zlib
regedit /s "C:\\Users\\runneradmin\\scoop\\apps\\zlib\\current\\register.reg"

- name: Download OpenBLAS
run: |
curl -L -O https://github.com/xianyi/OpenBLAS/releases/download/v0.3.21/OpenBLAS-0.3.21-x64.zip
mkdir OpenBLAS
Expand-Archive -Path .\OpenBLAS-0.3.21-x64.zip -DestinationPath .\OpenBLAS\
mkdir ./src/main/resources/windowsDependencies
cp ./OpenBLAS/bin/libopenblas.dll ./src/main/resources/windowsDependencies/
rm .\OpenBLAS-0.3.21-x64.zip
rm -r .\OpenBLAS\

# TODO: Detect processor count and set the value of nproc.count
- name: Run build
run: |
./gradlew.bat build -D'avx2.enabled=false' -D'avx512.enabled=false' -D'nproc.count=4'
28 changes: 28 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Releases

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: GitHub App token
id: github_app_token
uses: tibdex/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
installation_id: 22958780
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
- uses: actions/checkout@v2
- uses: ncipollo/release-action@v1
with:
github_token: ${{ steps.github_app_token.outputs.token }}
bodyFile: release-notes/opensearch-knn.release-notes-${{steps.tag.outputs.tag}}.md
71 changes: 62 additions & 9 deletions .github/workflows/backwards_compatibility_tests_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,38 @@ on:
branches:
- "*"
- "feature/**"
paths:
- 'build.gradle'
- 'settings.gradle'
- 'src/**'
- 'build-tools/**'
- 'buildSrc/**'
- 'gradle/**'
- 'jni/**'
- 'qa/**'
- '.github/workflows/backwards_compatibility_tests_workflow.yml'
pull_request:
branches:
- "*"
- "feature/**"
paths:
- 'build.gradle'
- 'settings.gradle'
- 'src/**'
- 'build-tools/**'
- 'buildSrc/**'
- 'gradle/**'
- 'jni/**'
- 'qa/**'
- '.github/workflows/backwards_compatibility_tests_workflow.yml'

jobs:
Restart-Upgrade-BWCTests-k-NN:
strategy:
matrix:
java: [ 11, 17 ]
bwc_version : [ "1.0.0", "1.1.0", "1.2.4", "1.3.2", "2.0.0" ]
opensearch_version : [ "2.1.0-SNAPSHOT" ]
bwc_version : [ "1.1.0", "1.2.4", "1.3.8", "2.0.1", "2.1.0", "2.2.1", "2.3.0", "2.4.1", "2.5.0", "2.6.0", "2.7.0", "2.8.0", "2.9.0", "2.10.0", "2.11.0", "2.12.0", "2.13.0", "2.14.0", "2.15.0", "2.16.0", "2.17.0", "2.18.0" ]
opensearch_version : [ "2.19.0-SNAPSHOT" ]

name: k-NN Restart-Upgrade BWC Tests
runs-on: ubuntu-latest
Expand All @@ -26,6 +46,12 @@ jobs:
- name: Checkout k-NN
uses: actions/checkout@v1

# Setup git user so that patches for native libraries can be applied and committed
- name: Setup git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
Expand All @@ -38,26 +64,42 @@ jobs:

- name: Run k-NN Restart-Upgrade BWC Tests from BWCVersion-${{ matrix.bwc_version }} to OpenSearch Version-${{ matrix.opensearch_version }}
run: |
echo "Running restart-upgrade backwards compatibility tests ..."
./gradlew :qa:restart-upgrade:testRestartUpgrade -Dtests.bwc.version=$BWC_VERSION_RESTART_UPGRADE

echo "Running restart-upgrade backwards compatibility tests ..."
if lscpu | grep -i avx512f | grep -i avx512cd | grep -i avx512vl | grep -i avx512dq | grep -i avx512bw
then
echo "avx512 available on system"
./gradlew :qa:restart-upgrade:testRestartUpgrade -Dtests.bwc.version=$BWC_VERSION_RESTART_UPGRADE -Dnproc.count=`nproc`
elif lscpu | grep -i avx2
then
echo "avx2 available on system"
./gradlew :qa:restart-upgrade:testRestartUpgrade -Dtests.bwc.version=$BWC_VERSION_RESTART_UPGRADE -Dnproc.count=`nproc` -Davx512.enabled=false
else
echo "avx512 and avx2 not available on system"
./gradlew :qa:restart-upgrade:testRestartUpgrade -Dtests.bwc.version=$BWC_VERSION_RESTART_UPGRADE -Davx2.enabled=false -Davx512.enabled=false -Dsimd.enabled=false -Dnproc.count=`nproc`
fi

Rolling-Upgrade-BWCTests-k-NN:
strategy:
matrix:
java: [ 11, 17 ]
bwc_version: [ "1.3.2", "2.0.0" ]
opensearch_version: [ "2.1.0-SNAPSHOT" ]
bwc_version: [ "1.3.8", "2.0.1", "2.1.0", "2.2.1", "2.3.0", "2.4.1", "2.5.0", "2.6.0", "2.7.0", "2.8.0", "2.9.0", "2.10.0", "2.11.0", "2.12.0", "2.13.0", "2.14.0", "2.15.0", "2.16.0", "2.17.0", "2.18.0"]
opensearch_version: [ "2.19.0-SNAPSHOT" ]

name: k-NN Rolling-Upgrade BWC Tests
runs-on: ubuntu-latest
env:
OPENSEARCH_VERSION_ROLLING_UPGRADE: ${{ matrix.opensearch_version }}
BWC_VERSION_ROLLING_UPGRADE: ${{ matrix.bwc_version }}

steps:
- name: Checkout k-NN
uses: actions/checkout@v1

# Setup git user so that patches for native libraries can be applied and committed
- name: Setup git user
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"

- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v1
with:
Expand All @@ -70,4 +112,15 @@ jobs:
- name: Run k-NN Rolling-Upgrade BWC Tests from BWCVersion-${{ matrix.bwc_version }} to OpenSearch Version-${{ matrix.opensearch_version }}
run: |
echo "Running rolling-upgrade backwards compatibility tests ..."
./gradlew :qa:rolling-upgrade:testRollingUpgrade -Drolling.bwctests.opensearch.version=$OPENSEARCH_VERSION_ROLLING_UPGRADE
if lscpu | grep -i avx512f | grep -i avx512cd | grep -i avx512vl | grep -i avx512dq | grep -i avx512bw
then
echo "avx512 available on system"
./gradlew :qa:rolling-upgrade:testRollingUpgrade -Dtests.bwc.version=$BWC_VERSION_ROLLING_UPGRADE -Dnproc.count=`nproc`
elif lscpu | grep -i avx2
then
echo "avx2 available on system"
./gradlew :qa:rolling-upgrade:testRollingUpgrade -Dtests.bwc.version=$BWC_VERSION_ROLLING_UPGRADE -Dnproc.count=`nproc` -Davx512.enabled=false
else
echo "avx512 and avx2 not available on system"
./gradlew :qa:rolling-upgrade:testRollingUpgrade -Dtests.bwc.version=$BWC_VERSION_ROLLING_UPGRADE -Davx2.enabled=false -Davx512.enabled=false -Dsimd.enabled=false -Dnproc.count=`nproc`
fi
Loading
Loading