awen11123 opened a new pull request, #13368:
URL: https://github.com/apache/cloudstack/pull/13368

   🤖
   
   ### Description
   
   The `create_iso()` helper in `test/integration/component/test_tags.py` calls 
`Iso.create()` and immediately returns, but the ISO may still be downloading 
when tagging tests proceed. This causes tests 7, 16, and 17 to fail 
intermittently when the ISO upload hasn't completed.
   
   This PR adds a call to `iso.download()` after creation. The `download()` 
method (on the `Iso` class in marvin) already has a built-in retry loop (300 
retries × 5s interval) that waits for the ISO to reach `Successfully Installed` 
and `isready` state.
   
   If the download fails after the retry period, the test is skipped with a 
clear message rather than failing with an opaque upload error.
   
   ### Types of changes
   
   - [x] Bug fix (non-breaking change which fixes an issue)
   
   ### Fixes
   
   Fixes #7041
   
   ### Affected tests
   
   - `test_07_iso_tag`
   - `test_16_query_tags_other_account`
   - `test_17_query_tags_admin_account`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to