Skip to content

Conversation

@nibix
Copy link
Contributor

@nibix nibix commented Oct 31, 2025

Description

This is a follow up to #18523 and fixes an issue with the analyze action.

The analyze action has one special property that distinguishes it from all other actions extending TransportSingleShardAction: it can be executed without an index. This is a bit surprising, as we do not have a shard, while being in a class called "SingleShardAction". For this, the TransportAnalyzeAction does use a number of special cases. Thus, we also need to add a special case for the index resolution here.

Check List

  • Functionality includes testing.

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.

@nibix nibix requested a review from a team as a code owner October 31, 2025 10:20
@nibix
Copy link
Contributor Author

nibix commented Oct 31, 2025

I have added no change log, as this fixes an issue in an unreleased change. I guess, no changelog is necessary then.

@github-actions
Copy link
Contributor

❌ Gradle check result for 02e0a2e: null

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@nibix nibix force-pushed the analyze-action-index-resolution branch from 02e0a2e to 31dcb1b Compare October 31, 2025 19:52
@github-actions
Copy link
Contributor

❌ Gradle check result for 31dcb1b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

…ests.

The analyze action has one special property that distinguishes it from all other actions extending TransportSingleShardAction: it can be executed without an index. This is a bit surprising, as we do not have a shard, while being in a class called "SingleShardAction". For this, the TransportAnalyzeAction does use a number of special cases. Thus, we also need to add a special case for the index resolution here.

Signed-off-by: Nils Bandener <[email protected]>
@github-actions
Copy link
Contributor

✅ Gradle check result for 4762380: SUCCESS

@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.20%. Comparing base (6b35c7c) to head (4762380).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19849      +/-   ##
============================================
+ Coverage     73.08%   73.20%   +0.12%     
- Complexity    71063    71135      +72     
============================================
  Files          5754     5754              
  Lines        325262   325265       +3     
  Branches      47033    47033              
============================================
+ Hits         237732   238126     +394     
+ Misses        68380    67959     -421     
- Partials      19150    19180      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cwperks cwperks merged commit b67d076 into opensearch-project:main Nov 4, 2025
36 of 37 checks passed
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