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

Use java 21 to run tests #2174

Merged
merged 3 commits into from Sep 21, 2023
Merged

Use java 21 to run tests #2174

merged 3 commits into from Sep 21, 2023

Conversation

velo
Copy link
Member

@velo velo commented Sep 19, 2023

Summary by CodeRabbit

  • Chore: Updated Java version from 17 to 21 across the project for compatibility with latest features and security updates.
  • Chore: Modified CI pipeline Docker image to "velo/toolchains-4-ci-builds:with-21" and updated cache keys for better dependency management.
  • Test: Added a new test method testVeryLongResponseNullLength() in both GoogleHttpClientTest and JAXRSClientTestInterfaceWithJaxRsContract to validate behavior when response doesn't have a payload.

@coderabbitai
Copy link

coderabbitai bot commented Sep 19, 2023

Walkthrough

This pull request primarily updates the Java version from 17 to 21 across the project. It also modifies the Docker image used in the CI pipeline and introduces changes to cache keys for dependency management. Additionally, new test methods are added to handle scenarios where the JaxRS client hangs if the response doesn't have a payload.

Changes

File Summary
pom.xml Updated latest.java.version property from 17 to 21.
.circleci/config.yml Changed Docker image for Java executor and modified cache keys for dependency management.
.../GoogleHttpClientTest.java, .../JAXRSClientTest.java Added new test method testVeryLongResponseNullLength() to handle specific scenario.

🐇 "In the land of code, where logic intertwines,
A rabbit hops along the lines.
Java's version takes a leap,
In Docker's hold, new secrets we keep.
Tests grow stronger, cover more ground,
In this pull request, improvements abound!" 🎉


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • Mention @coderabbitai in any review comment for bot assistance.
  • Note: Review comments are made on code diffs or files, not on the PR overview.

Pause Incremental Reviews

  • Insert @coderabbitai: ignore in the PR description to halt the bot's ongoing reviews. Remove the line to resume.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 7480864 and 75b22fe.
Files selected for processing (1)
  • pom.xml (1 hunks)
Files skipped from review due to trivial changes (1)
  • pom.xml

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 7480864 and 3e7e5f4.
Files selected for processing (2)
  • .circleci/config.yml (1 hunks)
  • pom.xml (1 hunks)
Files skipped from review due to trivial changes (2)
  • .circleci/config.yml
  • pom.xml

@coderabbitai
Copy link

coderabbitai bot commented Sep 19, 2023

Rate Limit Exceeded

You have exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 29 minutes and 59 seconds before requesting another review.

To re-trigger a review, convert this PR to a draft and then mark it as ready for review again. Alternatively, you can push a new commit to this PR.

@coderabbitai
Copy link

coderabbitai bot commented Sep 19, 2023

Rate Limit Exceeded

You have exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 29 minutes and 59 seconds before requesting another review.

To re-trigger a review, convert this PR to a draft and then mark it as ready for review again. Alternatively, you can push a new commit to this PR.

@coderabbitai
Copy link

coderabbitai bot commented Sep 19, 2023

Rate Limit Exceeded

You have exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 29 minutes and 59 seconds before requesting another review.

To re-trigger a review, convert this PR to a draft and then mark it as ready for review again. Alternatively, you can push a new commit to this PR.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 2

Commits Files that changed from the base of the PR and between 7480864 and 2d55093.
Files selected for processing (4)
  • .circleci/config.yml (3 hunks)
  • googlehttpclient/src/test/java/feign/googlehttpclient/GoogleHttpClientTest.java (1 hunks)
  • jaxrs2/src/test/java/feign/jaxrs2/JAXRSClientTest.java (1 hunks)
  • pom.xml (1 hunks)
Files skipped from review due to trivial changes (2)
  • .circleci/config.yml
  • pom.xml

Comment on lines +180 to +183
@Override
public void testVeryLongResponseNullLength() {
assumeFalse("JaxRS client hang if the response doesn't have a payload", false);
}
Copy link

Choose a reason for hiding this comment

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

The new test method testVeryLongResponseNullLength() is overriding a method from the parent class and includes an assumption that always fails. This will cause the test to be skipped in all scenarios. If this is intentional, please ensure that it's documented why this test is being skipped for the JaxRS client. If not, the assumption condition should be updated to reflect when the test should be skipped.

-    assumeFalse("JaxRS client hang if the response doesn't have a payload", false);
+    // Update with correct condition
+    boolean condition = ...; 
+    assumeFalse("JaxRS client hang if the response doesn't have a payload", condition);

Comment on lines +85 to +88
@Override
public void testVeryLongResponseNullLength() {
assumeFalse("JaxRS client hang if the response doesn't have a payload", false);
}
Copy link

Choose a reason for hiding this comment

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

The new test method testVeryLongResponseNullLength() is overriding a method from the parent class and making an assumption that always fails. This will cause the test to be skipped in all scenarios. If this is intentional, it's fine. However, if you intended to implement a real test here, you should replace the assumeFalse statement with actual test logic.

-    assumeFalse("JaxRS client hang if the response doesn't have a payload", false);
+    // Implement your test logic here

@velo velo merged commit e36c366 into master Sep 21, 2023
3 checks passed
@velo velo deleted the java21 branch September 21, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant