-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add 2b-generate-java-client.yaml #359
Add 2b-generate-java-client.yaml #359
Conversation
Signed-off-by: Yasumasa Suenaga <[email protected]>
As I wrote in description, this PR contains code to publish Javadoc (API document) to I keep this PR as draft until the location of API document is clarified. |
Signed-off-by: Yasumasa Suenaga <[email protected]>
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## dev #359 +/- ##
=======================================
Coverage 74.21% 74.21%
=======================================
Files 77 77
Lines 2637 2637
Branches 266 266
=======================================
Hits 1957 1957
Misses 598 598
Partials 82 82 |
Hi @YaSuenag, are you able to update that PR now? Let me know if you need me. |
@danuw I could deploy Java API document (Javadoc) to Thus I'm waiting for #344. |
I'm considering release timing of client libraries. I think it might be better to trigger this workflow (generate client libraries) manually. OpenAPI document is different from CASDK release. The document wouldn't be updated if API spec is not changed. For example, if CASDK v2.0 provides WebAPI which compliant to API v1.0 (same with CASDK v1.1) ongoingly, we don't need to update OpenAPI document. OpenAPI document has
What do you think? |
I agree though we were going to have pre release too tight cause supposedly you want to test this is all still working as expected whether tests are automated or manual right? We should connect to discuss how we want to test these things so we can progress this quickly. |
API version does not synchronize with the SDK release as I said before. It means new client libraries might be released even if the new SDK is not released. So I don't know yet what is the best trigger to release client libraries. I think to kick the workflow is the best when the SDK maintainer acknowledge to update the API version. |
I continue this work in #471 |
Pull Request
#252
Summary
Add GitHub workflow to generate Java client library of WebAPI.
2b-generate-java-client.yaml would be kicked by 2-pre-release.yaml to generate Java client library of WebAPI. It would be generated via OpenAPI generator, and OpenAPI document comes from WebAPI container made by 2-pre-release.yaml .
Artifact of 2b-generate-java-client.yaml would be published to GitHub Packages as a Maven library, so we can write dependency into pom.xml in your project. Artifact version (version number which is identified in file name) comes from OpenAPI document version - it is different from CASDK version. If the document comes from pre-release container, it would be handled as SNAPSHOT which means upstream dev version.
https://github.com/YaSuenag/carbon-aware-sdk/packages/1814194
This workflow also generates Javadoc (API document of Java library), so it should be published into
doc-website
branch.This PR would pass following configuration to OpenAPI generator:
Changes
Checklist
Are there API Changes?
No
Is this a breaking change?
No