Skip to content

Support list/query async jobs by resource#12983

Open
sureshanaparti wants to merge 2 commits intoapache:4.22from
shapeblue:async-jobs-resource-filtering
Open

Support list/query async jobs by resource#12983
sureshanaparti wants to merge 2 commits intoapache:4.22from
shapeblue:async-jobs-resource-filtering

Conversation

@sureshanaparti
Copy link
Copy Markdown
Contributor

Description

This PR enhances listAsyncJobs and queryAsyncJobResult API to retrieve asynchronous job for the resources (VM/Volume)

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@sureshanaparti
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

❌ Patch coverage is 21.90476% with 82 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.60%. Comparing base (03de62b) to head (ac17a77).

Files with missing lines Patch % Lines
...cloudstack/framework/jobs/dao/AsyncJobDaoImpl.java 0.00% 21 Missing ⚠️
...in/java/com/cloud/api/query/ResourceIdSupport.java 48.64% 18 Missing and 1 partial ⚠️
...src/main/java/com/cloud/api/ApiResponseHelper.java 5.26% 18 Missing ⚠️
...ain/java/com/cloud/api/query/QueryManagerImpl.java 25.00% 12 Missing ⚠️
...udstack/api/command/user/job/ListAsyncJobsCmd.java 0.00% 6 Missing ⚠️
...k/api/command/user/job/QueryAsyncJobResultCmd.java 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               4.22   #12983   +/-   ##
=========================================
  Coverage     17.60%   17.60%           
- Complexity    15674    15680    +6     
=========================================
  Files          5918     5919    +1     
  Lines        531727   531813   +86     
  Branches      65016    65027   +11     
=========================================
+ Hits          93595    93628   +33     
- Misses       427570   427622   +52     
- Partials      10562    10563    +1     
Flag Coverage Δ
uitests 3.70% <ø> (ø)
unittests 18.67% <21.90%> (+<0.01%) ⬆️

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

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

LGTM

@blueorangutan
Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17400

@nvazquez
Copy link
Copy Markdown
Contributor

nvazquez commented Apr 8, 2026

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@nvazquez a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan
Copy link
Copy Markdown

[SF] Trillian test result (tid-15828)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 51627 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr12983-t15828-kvm-ol8.zip
Smoke tests completed. 149 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

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

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

5 participants