-
Notifications
You must be signed in to change notification settings - Fork 277
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
Release SQL JDBC driver #2692
Comments
Before releasing new drivers, we need to update the JDBC version number in the gradle build file: |
@bbarani can we move this to maven and setup a process for this, thnks |
Hey @Yury-Fridlyand we have some publish scripts handy, could use them, but quick question, do you have a proper project or gradle task when executed publishes SQL JDBC driver jar to local maven repo (~/.m2) with proper maven group Id like
Thank you |
Thanks, I will have a look and make all preparations. We need to do few minor fix in the driver prior to release. |
@prudhvigodithi yes there's a One quirk with JDBC driver is that it can build two jars -- normal one, and one with all dependencies shadow copied. The second one is what can be used right now by just dropping the jar in the classpath. We want to publish the first one. |
Notes from our discussion. Examples to follow:
Someone with admin permissions on sql repo will need to setup a webhook used by Jenkins to publish releases when a release tag is made. |
@peterzhuamazon since JDBC driver is in the sql repo, what git tag pattern should its releases have? The Jenkins pipelines currently assume |
Also @peterzhuamazon do you know if JDBC driver will be kept in the plugin repo or split out? The discussion happened here but it's not clear what will happen to drivers. If JDBC driver stays in a monorepo with something else, will there be one Jenkinsfile for each product in the repo or one Jenkinsfile for all of repo? |
Hi @MaxKsyunz I added several comments to @Yury-Fridlyand PR there. Thanks. |
@MaxKsyunz Is there an issue on extracting the JDBC driver into its own repo with pros/cons already? Care to open one so we can discuss that there? My uneducated opinion is that it looks like the JDBC driver should follow its own semver, and have its own CI/CD that publishes it to maven similar to how we do this now in opensearch-java and other repos. Sounds to me like it should live in its own repo, but I don't know what its dependencies are. |
Raised:
|
is repo split a blocker for maven release now on this issue or is it a separate issue ? |
Separate issue. At least until I'm informed otherwise. |
AFAIK if we were able to release the driver before I don't see why splitting should be a blocker, however to setup automation you'll need to queue off a tag, and that becomes more difficult in a monorepo (you'd have to queue of a tag format, unclear which branch to tag, etc.). |
Hi, Have new discussion with @MaxKsyunz @Yury-Fridlyand @penghuo here is the method we are going to use:
Thanks. |
thanks peter, can you provide n estimate on this. |
Release automation is tracked in #2505. This ticket is to track the current JDBC release. I created a JDBC driver pre-release on SQL repo: https://github.com/opensearch-project/sql/releases/tag/JDBC-2.0.0.0 |
We recently separated SQL into multiple repositories - this issue is now referred to the appropriate (SQL-JDBC) repo |
Hi, |
Hi, @MaxKsyunz @YANG-DB @anirudha, Looks like |
hi and only have the next workflow ? |
The jenkins file will be replaced similar by the ones similar to https://github.com/opensearch-project/spring-data-opensearch/blob/main/jenkins/release.jenkinsFile |
OK
I will replace the jenkins file with a similar to the one you suggested -
can u plz take care for the creation of the appropriate
tokenIdCredential: 'jenkins-sql-jdbc-opensearch-generic-webhook-token' ?
Thanks
|
Hey! Looks like there is some confusion. Sorry for not being clear. I'll take care of adding release workflows (GHA workflow as well as jenkins), also will set up other things like webhook and stuff. However, before we proceed with any of that, jdbc team needs to fix what I mentioned here in above comment. |
@gaiksaya,
It produces following files in
ref: opensearch-project/sql#957 |
Thanks @Yury-Fridlyand , that would be great! So as far I understand this is what we want to publish on maven right? |
@gaiksaya, please, see opensearch-project/sql-jdbc#45 |
@gaiksaya - plz add the 'release_drafter.yml' workflow to the following branches
|
Hey @YANG-DB , |
Few questions:
|
hi
|
Thanks, One more question: |
lets go with java 11 |
Yes |
Hi @YANG-DB , @joshuali925 , @anirudha |
sql-jdbc 1.2.0.0 is out https://aws.oss.sonatype.org/content/repositories/releases/org/opensearch/driver/opensearch-sql-jdbc/1.2.0.0/ |
The SQL 2.5 release, 2.x and main branches are now depended on this maven artifact |
Hi @YANG-DB, @joshuali925 You can now publish snaphots to maven using GHA directly. See the PR[1] as an example on what all needs to be added to make that happen. You can add me as a reviewer once PR is ready so that I can make changes at the backend and add the required role to retrieve the credentials. |
Is your feature request related to a problem? Please describe
JDBC driver was never released on Maven. The one published on artifacts page is a bit old already and should be updated.
Describe the solution you'd like
Publish most recent JDBC driver on Maven and on artifacts page.
Driver build is available as GHA artifact: https://github.com/opensearch-project/sql/actions/workflows/sql-jdbc-test-and-build-workflow.yml?query=branch%3A2.x
Describe alternatives you've considered
N/A
Additional context
#794
opensearch-project/sql#401
CC: @anirudha
The text was updated successfully, but these errors were encountered: