Skip to content

Conversation

@owaiskazi19
Copy link
Member

Description

Fix agent update

{
"error": {
  "root_cause": [
  {
  "type": "illegal_argument_exception",
  "reason": "Agent type cannot be updated"
  }
  ],
  "type": "illegal_argument_exception",
  "reason": "Agent type cannot be updated"
  },
  "status": 400
}

Related Issues

Resolves #4340

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

@owaiskazi19 owaiskazi19 requested a deployment to ml-commons-cicd-env-require-approval October 23, 2025 00:33 — with GitHub Actions Waiting
@owaiskazi19 owaiskazi19 requested a deployment to ml-commons-cicd-env-require-approval October 23, 2025 00:33 — with GitHub Actions Waiting
@owaiskazi19 owaiskazi19 requested a deployment to ml-commons-cicd-env-require-approval October 23, 2025 00:33 — with GitHub Actions Waiting
@owaiskazi19 owaiskazi19 requested a deployment to ml-commons-cicd-env-require-approval October 23, 2025 00:33 — with GitHub Actions Waiting
Copy link
Contributor

@rithin-pullela-aws rithin-pullela-aws left a comment

Choose a reason for hiding this comment

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

LGTM!

Can you rebase your main with current main? Looks like around 27 commits are pushed

@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 01:50 — with GitHub Actions Failure
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 01:50 — with GitHub Actions Error
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 01:50 — with GitHub Actions Error
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 01:50 — with GitHub Actions Failure
Copy link
Collaborator

@pyek-bot pyek-bot left a comment

Choose a reason for hiding this comment

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

rest LGTM, thanks for this!

@owaiskazi19 owaiskazi19 requested a review from pyek-bot October 23, 2025 17:28
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 17:29 — with GitHub Actions Failure
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 17:29 — with GitHub Actions Error
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 17:29 — with GitHub Actions Failure
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 23, 2025 17:29 — with GitHub Actions Error
@owaiskazi19
Copy link
Member Author

Netty errors. Dependent on #4339

 * What went wrong:
Could not determine the dependencies of task ':opensearch-ml-plugin:dependencyLicenses'.
> Failed to query the value of task ':opensearch-ml-plugin:dependencyLicenses' property 'dependencies'.
   > Could not resolve all dependencies for configuration ':opensearch-ml-plugin:runtimeClasspath'.
      > Could not resolve io.netty:netty-codec-http:4.1.125.Final.
        Required by:
            project :opensearch-ml-plugin > project :opensearch-ml-algorithms > org.opensearch:opensearch-remote-metadata-sdk-ddb-client:3.4.0.0-SNAPSHOT:20251023.014719-2
            project :opensearch-ml-plugin > project :opensearch-ml-algorithms > org.opensearch:opensearch-remote-metadata-sdk-ddb-client:3.4.0.0-SNAPSHOT:20251023.014719-2 > io.netty:netty-codec-http2:4.1.125.Final
         > Conflict found for module 'io.netty:netty-codec-http': between versions 4.1.125.Final and 4.1.124.Final
      > Could not resolve io.netty:netty-codec-http2:4.1.125.Final.
        Required by:
            project :opensearch-ml-plugin > project :opensearch-ml-algorithms > org.opensearch:opensearch-remote-metadata-sdk-ddb-client:3.4.0.0-SNAPSHOT:20251023.014719-2
         > Conflict found for module 'io.netty:netty-codec-http2': between versions 4.1.125.Final and 4.1.124.Final
      > Could not resolve io.netty:netty-codec:4.1.125.Final

@brianf-aws
Copy link
Contributor

Netty errors. Dependent on #4339

 * What went wrong:
Could not determine the dependencies of task ':opensearch-ml-plugin:dependencyLicenses'.
> Failed to query the value of task ':opensearch-ml-plugin:dependencyLicenses' property 'dependencies'.
   > Could not resolve all dependencies for configuration ':opensearch-ml-plugin:runtimeClasspath'.
      > Could not resolve io.netty:netty-codec-http:4.1.125.Final.
        Required by:
            project :opensearch-ml-plugin > project :opensearch-ml-algorithms > org.opensearch:opensearch-remote-metadata-sdk-ddb-client:3.4.0.0-SNAPSHOT:20251023.014719-2
            project :opensearch-ml-plugin > project :opensearch-ml-algorithms > org.opensearch:opensearch-remote-metadata-sdk-ddb-client:3.4.0.0-SNAPSHOT:20251023.014719-2 > io.netty:netty-codec-http2:4.1.125.Final
         > Conflict found for module 'io.netty:netty-codec-http': between versions 4.1.125.Final and 4.1.124.Final
      > Could not resolve io.netty:netty-codec-http2:4.1.125.Final.
        Required by:
            project :opensearch-ml-plugin > project :opensearch-ml-algorithms > org.opensearch:opensearch-remote-metadata-sdk-ddb-client:3.4.0.0-SNAPSHOT:20251023.014719-2
         > Conflict found for module 'io.netty:netty-codec-http2': between versions 4.1.125.Final and 4.1.124.Final
      > Could not resolve io.netty:netty-codec:4.1.125.Final

@owaiskazi19 you need #4338

the one i linked is for 2.19

Signed-off-by: Owais Kazi <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
@owaiskazi19 owaiskazi19 deployed to ml-commons-cicd-env-require-approval October 24, 2025 06:55 — with GitHub Actions Active
@owaiskazi19 owaiskazi19 had a problem deploying to ml-commons-cicd-env-require-approval October 24, 2025 06:55 — with GitHub Actions Failure
@owaiskazi19 owaiskazi19 temporarily deployed to ml-commons-cicd-env-require-approval October 24, 2025 06:55 — with GitHub Actions Inactive
@owaiskazi19 owaiskazi19 temporarily deployed to ml-commons-cicd-env-require-approval October 24, 2025 06:55 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

❌ Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.12%. Comparing base (eec7179) to head (6b2dad5).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../ml/common/transport/agent/MLAgentUpdateInput.java 63.63% 1 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4341      +/-   ##
============================================
- Coverage     80.13%   80.12%   -0.02%     
+ Complexity    10171    10162       -9     
============================================
  Files           854      854              
  Lines         44219    44230      +11     
  Branches       5113     5117       +4     
============================================
+ Hits          35437    35440       +3     
- Misses         6631     6637       +6     
- Partials       2151     2153       +2     
Flag Coverage Δ
ml-commons 80.12% <63.63%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Update agent API silently fails when changing agent type

4 participants