Add Eclipse P2 mirror to avoid download.eclipse.org outages (neural-search) - #1940
Conversation
|
expected mirror update. |
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit f285ee5. ⛔ Hard block: Issues at High severity or above will block this PR from merging.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1940 +/- ##
============================================
+ Coverage 83.42% 83.43% +0.01%
- Complexity 3883 3886 +3
============================================
Files 291 291
Lines 13821 13821
Branches 2295 2295
============================================
+ Hits 11530 11532 +2
Misses 1457 1457
+ Partials 834 832 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
f285ee5 to
df918d1
Compare
PR Reviewer Guide 🔍(Review updated until commit d0f19a4)Here are some key observations to aid the review process:
|
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
|
Persistent review updated to latest commit d0f19a4 |
…earch) (#1940) (#1945) * Add Eclipse P2 mirror to avoid download.eclipse.org outages * Fix indentation in CI.yml integMultiNodeTest job --------- (cherry picked from commit f4e975e) Signed-off-by: Peter Zhu <zhujiaxi@amazon.com> Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com> Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
|
The backport to |
…2 mirror The withP2Mirrors(... -> https://ci.opensearch.org/) mirror added in opensearch-project#1940 started timing out at project-configuration time: A problem occurred configuring root project 'neural-search'. > java.io.IOException: Failed to load eclipse jdt formatter: java.lang.RuntimeException: java.net.SocketTimeoutException: timeout Because Spotless resolves the formatter during configuration, every Gradle task (integTest, BWC, pre-commit, ...) fails on any runner that cannot reach the mirror, independent of the change under test. Drop withP2Mirrors and let the formatter resolve directly from download.eclipse.org, matching the OpenSearch 3.x resolution documented in opensearch-project/OpenSearch#20826. Signed-off-by: Yizhe Liu <yizheliu@amazon.com>
…rg P2 mirror Same change as opensearch-project#1964, applied here so opensearch-project#1919 CI can run past the eclipse-jdt SocketTimeoutException that the ci.opensearch.org P2 mirror (added in opensearch-project#1940) is currently throwing at configuration time. Revert once opensearch-project#1964 lands on main. See opensearch-project/OpenSearch#20826. Signed-off-by: Yizhe Liu <yizheliu@amazon.com>
…lve model id from cluster settings (#1919) * Add model_selection parameter to semantic field to resolve model id from cluster settings (#1918) Introduces a `model_selection` nested object (language_option + model_type) on the semantic field. The model id is resolved from operator-configured cluster settings `plugins.neural_search.model_selection.model_id.<model_type>.<language_option>` (an affix setting, flexible for future dimensions). No model is auto-deployed and there is no cache: the operator deploys the model and configures the setting. - ModelSelection DTO validates language_option (ENGLISH|MULTILINGUAL) and model_type (SPARSE|DENSE). - ClusterSettingSemanticModelResolver reads the configured model id, fails with a clear error when unset, and verifies the model exists and its type matches the requested model_type. - SemanticMappingTransformer resolves model_selection fields; when both model_id and model_selection are provided they must resolve to the same model id, otherwise the request is rejected. Signed-off-by: Yizhe Liu <yizheliu@amazon.com> * [temporary] CI: resolve Eclipse JDT formatter without ci.opensearch.org P2 mirror Same change as #1964, applied here so #1919 CI can run past the eclipse-jdt SocketTimeoutException that the ci.opensearch.org P2 mirror (added in #1940) is currently throwing at configuration time. Revert once #1964 lands on main. See opensearch-project/OpenSearch#20826. Signed-off-by: Yizhe Liu <yizheliu@amazon.com> --------- Signed-off-by: Yizhe Liu <yizheliu@amazon.com>
…lve model id from cluster settings (opensearch-project#1919) * Add model_selection parameter to semantic field to resolve model id from cluster settings (opensearch-project#1918) Introduces a `model_selection` nested object (language_option + model_type) on the semantic field. The model id is resolved from operator-configured cluster settings `plugins.neural_search.model_selection.model_id.<model_type>.<language_option>` (an affix setting, flexible for future dimensions). No model is auto-deployed and there is no cache: the operator deploys the model and configures the setting. - ModelSelection DTO validates language_option (ENGLISH|MULTILINGUAL) and model_type (SPARSE|DENSE). - ClusterSettingSemanticModelResolver reads the configured model id, fails with a clear error when unset, and verifies the model exists and its type matches the requested model_type. - SemanticMappingTransformer resolves model_selection fields; when both model_id and model_selection are provided they must resolve to the same model id, otherwise the request is rejected. Signed-off-by: Yizhe Liu <yizheliu@amazon.com> * [temporary] CI: resolve Eclipse JDT formatter without ci.opensearch.org P2 mirror Same change as opensearch-project#1964, applied here so opensearch-project#1919 CI can run past the eclipse-jdt SocketTimeoutException that the ci.opensearch.org P2 mirror (added in opensearch-project#1940) is currently throwing at configuration time. Revert once opensearch-project#1964 lands on main. See opensearch-project/OpenSearch#20826. Signed-off-by: Yizhe Liu <yizheliu@amazon.com> --------- Signed-off-by: Yizhe Liu <yizheliu@amazon.com>
Description
Add
withP2Mirrorsto Spotless eclipse formatter to useci.opensearch.org/eclipse/CloudFront mirror instead of hittingdownload.eclipse.orgdirectly. This prevents CI failures when Eclipse's download server is down or slow.Issues Resolved
opensearch-project/opensearch-build#6421 (comment)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.