Skip to content
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

Java: Create Workflow to deploy artifacts for all platforms mentioned in build.matrix.json #2285

Merged
merged 42 commits into from
Sep 14, 2024

Conversation

cyip10
Copy link
Collaborator

@cyip10 cyip10 commented Sep 12, 2024

This includes:

  • building and publishing artifacts to maven central
  • deployment testing and validation for all platforms

Testing against 1.0.2-rc1

Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Signed-off-by: Chloe Yip <[email protected]>
Copy link
Collaborator

@GumpacG GumpacG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can revert files irrelevant to your changes by getting the file from main using https://www.freecodecamp.org/news/git-checkout-file-from-another-branch/

java/benchmarks/build.gradle Outdated Show resolved Hide resolved
java/benchmarks/build.gradle Outdated Show resolved Hide resolved
.github/workflows/java-cd.yml Outdated Show resolved Hide resolved
.github/workflows/java-cd.yml Outdated Show resolved Hide resolved
.github/workflows/java-cd.yml Show resolved Hide resolved
.github/workflows/java-cd.yml Outdated Show resolved Hide resolved

runs-on: ${{ matrix.host.RUNNER }}
steps:
- name: Start Redis server
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why redis, not valkey? Why you don't reuse install-valkey action?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it was because the procedure to install redis is easier than valkey. i can try out install-valkey

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really that different? Valkey is just a fork of Redis.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, valkey doesn't have an installer package and you need to install from source.
but the install-valkey workflow is available to do that for us.

.github/workflows/java-cd.yml Outdated Show resolved Hide resolved
@cyip10 cyip10 marked this pull request as ready for review September 13, 2024 19:39
@@ -12,7 +13,7 @@ dependencies {
def releaseVersion = System.getenv("GLIDE_RELEASE_VERSION");

if (releaseVersion) {
implementation "io.valkey:valkey-glide:" + releaseVersion
implementation "io.valkey:valkey-glide:" + releaseVersion + ":${osdetector.classifier}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌟

test-deployment-on-all-architectures:
needs: [set-release-version, load-platform-matrix, publish-to-maven-central-deployment]
env:
JAVA_VERSION: "11"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok - fine. good enough.

Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update PR description and title and merge

@Yury-Fridlyand Yury-Fridlyand dismissed GumpacG’s stale review September 13, 2024 20:09

All comments were addressed

@cyip10 cyip10 changed the title Java: Create Workflow Java: Create Workflow to deploy artifacts for all platforms in build.matrix.json Sep 13, 2024
Copy link
Collaborator

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add to changelog: to the operational changes section

@cyip10 cyip10 changed the title Java: Create Workflow to deploy artifacts for all platforms in build.matrix.json Java: Create Workflow to deploy artifacts for all platforms mentioned in build.matrix.json Sep 13, 2024
Signed-off-by: Chloe Yip <[email protected]>
@Yury-Fridlyand Yury-Fridlyand merged commit c0ccc79 into main Sep 14, 2024
13 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the CI/maven_testing branch September 14, 2024 01:56
acarbonetto pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Sep 18, 2024
acarbonetto pushed a commit to Bit-Quill/valkey-glide that referenced this pull request Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI CI/CD related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants