-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(java): replace callbacks by CompletableFuture APIC-421 #452
Conversation
✅ Deploy Preview for api-clients-automation canceled.
|
✗ The generated branch has been deleted.If the PR has been merged, you can check the generated code on the |
d9764ec
to
d8344b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing to say from my Java noob eyes, nice cleanup!
.github/workflows/check.yml
Outdated
run: | | ||
rm -rf ${{ matrix.client.testsOutputPath }}/client || true | ||
rm -rf ${{ matrix.client.testsOutputPath }}/methods || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer paths being defined in createMatrix
to avoid extra logic here, but up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect!!!!!!!
.github/workflows/check.yml
Outdated
@@ -235,7 +236,7 @@ jobs: | |||
if: ${{ needs.setup.outputs.RUN_CTS == 'true' }} | |||
run: | | |||
git --no-pager diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git --no-pager diff | |
git --no-pager diff ${{ matrix.client.testsOutputPathToClean }} |
would make the error less confusing
.github/workflows/check.yml
Outdated
exit $(git diff --name-only --diff-filter=d ${{ matrix.client.testsOutputPath }} | wc -l) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we remove this now, there's no way to ensure pushed tests are the ones that runs, I'd rather only remove this when we make the CI push the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:yes:
🧭 What and Why
🎟 JIRA Ticket: APIC-421
Use
CompletableFuture
to make the async function usable, which are widely used by customers.Thanks to @aallam this allows to remove the custom response for
EchoRequester
and simply pass the value by a different route, thus decoupling the test and the client (very good 😄 ).Changes included:
CompletableFuture
Http
andEcho
requestersInsights
playground🧪 Test