You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "adoroszlai (via GitHub)" <gi...@apache.org> on 2024/01/10 19:01:18 UTC

[PR] HDDS-10102. Replace Awaitility with existing utils [ozone]

adoroszlai opened a new pull request, #5977:
URL: https://github.com/apache/ozone/pull/5977

   ## What changes were proposed in this pull request?
   
   Awaitility (third-party library) is used 7 times in 4 test classes.
   
   Alternatives:
    * `GenericTestUtils.waitFor`, used by 268 callers.
    * `LambdaTestUtils.await`, used by 19 callers.
    * `JavaUtils.attempt` (prod. utility in Ratis)
   
   This PR replaces most `Awaitility.await` calls with `LambdaTestUtils.await`, and one with `attempt` (where a void assertion is used).
   
   We can then remove this dependency (and need to add `hamcrest`, which is also required by other tests, and was a transitive dependency of Awaitility).
   
   https://issues.apache.org/jira/browse/HDDS-10102
   
   ## How was this patch tested?
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/7478683757


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-10102. Replace Awaitility with existing utils [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #5977:
URL: https://github.com/apache/ozone/pull/5977


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


Re: [PR] HDDS-10102. Replace Awaitility with existing utils [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #5977:
URL: https://github.com/apache/ozone/pull/5977#issuecomment-1887063022

   Thanks @hemantk-12, @kerneltime for the review.


-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org