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

chore(deps) : upgrade to postgres 16.3-alpine #1226

Merged
merged 3 commits into from
May 10, 2024
Merged

Conversation

rajadilipkolli
Copy link
Owner

@rajadilipkolli rajadilipkolli commented May 10, 2024

Summary by CodeRabbit

  • New Features
    • Updated the PostgreSQL Docker container version across various test configurations from "16.2-alpine" to "16.3-alpine" to ensure compatibility and performance improvements.
  • Refactor
    • Standardized the instantiation of PostgreSQL containers using DockerImageName.parse method for better clarity and maintainability in code.

@rajadilipkolli rajadilipkolli self-assigned this May 10, 2024
Copy link
Contributor

coderabbitai bot commented May 10, 2024

Warning

Rate Limit Exceeded

@rajadilipkolli has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 27 seconds before requesting another review.

How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.
Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.
Please see our FAQ for further information.

Commits Files that changed from the base of the PR and between f0ea3f7 and 555e5ed.

Walkthrough

The updates across various test configurations in multiple projects involve upgrading the PostgreSQL Docker image version from older versions (such as "16.2-alpine" or "16.1-alpine") to "16.3-alpine". This change is consistent across files, enhancing consistency and possibly incorporating improvements or bug fixes from the newer PostgreSQL version.

Changes

File Path Change Summary
Various TestContainersConfig.java, ContainersConfig.java, TestApplication.java, DBContainerInitializer.java, ApplicationIntegrationTest.java, SchemaValidationTest.java Updated PostgreSQL Docker image from older versions to "16.3-alpine".
.../boot-jobrunr-sample/src/.../TestApplication.java, .../boot-shedlock-sample/src/.../ContainersConfig.java Updated PostgreSQL Docker image from "16.2-alpine" to "16.3-alpine".

🐇💻🌟
In the code's gentle night,
A rabbit hopped with keen oversight,
From 16.2 to 16.3 it leaped,
Across the docks where data's kept.
Cheers to updates, smooth and bright!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@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.

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 5f36cb3 and af70a80.
Files selected for processing (21)
  • batch-boot-jpa-sample/src/test/java/com/example/bootbatchjpa/common/TestContainersConfig.java (1 hunks)
  • boot-api-archunit-sample/src/test/java/com/example/archunit/common/ContainersConfig.java (1 hunks)
  • boot-choas-monkey/src/test/java/com/example/choasmonkey/TestApplication.java (2 hunks)
  • boot-rest-docs-sample/src/test/java/com/example/restdocs/TestApplication.java (1 hunks)
  • graphql/boot-graphql-querydsl/src/test/java/com/example/graphql/querydsl/common/ContainersConfig.java (1 hunks)
  • graphql/boot-graphql-webflux/src/test/java/com/example/graphql/TestApplication.java (1 hunks)
  • graphql/boot-graphql-webmvc/src/test/java/com/example/graphql/common/TestContainersConfig.java (1 hunks)
  • jpa/boot-data-envers/src/test/java/com/example/envers/common/ContainersConfig.java (1 hunks)
  • jpa/boot-data-keyset-pagination/src/test/java/com/example/keysetpagination/common/ContainersConfig.java (1 hunks)
  • jpa/boot-data-multipledatasources/src/test/java/com/example/multipledatasources/ApplicationIntegrationTest.java (2 hunks)
  • jpa/boot-jpa-locks/src/test/java/com/example/locks/common/ContainersConfig.java (1 hunks)
  • jpa/multitenancy/multidatasource-multitenancy/src/test/java/com/example/multitenancy/common/DBContainerInitializer.java (1 hunks)
  • jpa/multitenancy/multitenancy-db/src/test/java/com/example/multitenancy/db/common/DBContainerInitializer.java (1 hunks)
  • jpa/multitenancy/partition/src/test/java/com/example/multitenancy/partition/common/DBContainerInitializer.java (1 hunks)
  • jpa/multitenancy/schema/src/test/java/com/example/multitenancy/schema/config/TestContainersConfiguration.java (2 hunks)
  • r2dbc/boot-jooq-r2dbc-sample/src/test/java/com/example/jooq/r2dbc/TestApplication.java (2 hunks)
  • r2dbc/boot-r2dbc-sample/src/test/java/com/example/bootr2dbc/TestApplication.java (1 hunks)
  • scheduler/boot-jobrunr-sample/src/test/java/com/example/jobrunr/TestApplication.java (1 hunks)
  • scheduler/boot-scheduler-quartz/src/test/java/com/scheduler/quartz/common/ContainersConfig.java (1 hunks)
  • scheduler/boot-shedlock-sample/src/test/java/com/learning/shedlock/SchemaValidationTest.java (1 hunks)
  • scheduler/boot-shedlock-sample/src/test/java/com/learning/shedlock/common/ContainersConfig.java (1 hunks)
Files skipped from review due to trivial changes (6)
  • batch-boot-jpa-sample/src/test/java/com/example/bootbatchjpa/common/TestContainersConfig.java
  • boot-api-archunit-sample/src/test/java/com/example/archunit/common/ContainersConfig.java
  • jpa/boot-data-keyset-pagination/src/test/java/com/example/keysetpagination/common/ContainersConfig.java
  • jpa/boot-jpa-locks/src/test/java/com/example/locks/common/ContainersConfig.java
  • jpa/multitenancy/multidatasource-multitenancy/src/test/java/com/example/multitenancy/common/DBContainerInitializer.java
  • scheduler/boot-shedlock-sample/src/test/java/com/learning/shedlock/SchemaValidationTest.java
Additional comments not posted (26)
graphql/boot-graphql-webmvc/src/test/java/com/example/graphql/common/TestContainersConfig.java (1)

10-11: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() is correctly implemented.

jpa/boot-data-envers/src/test/java/com/example/envers/common/ContainersConfig.java (1)

15-15: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() is correctly implemented.

scheduler/boot-scheduler-quartz/src/test/java/com/scheduler/quartz/common/ContainersConfig.java (1)

15-15: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() is correctly implemented.

scheduler/boot-shedlock-sample/src/test/java/com/learning/shedlock/common/ContainersConfig.java (1)

15-15: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() is correctly implemented.

graphql/boot-graphql-querydsl/src/test/java/com/example/graphql/querydsl/common/ContainersConfig.java (1)

15-15: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() with container reuse enabled is correctly implemented, enhancing test performance.

jpa/multitenancy/schema/src/test/java/com/example/multitenancy/schema/config/TestContainersConfiguration.java (1)

17-17: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() is correctly implemented. Please verify the intended use of RestartScope in this context to ensure it aligns with your testing strategy.

Verification successful

The usage of @RestartScope is consistent across multiple test configurations in different modules of the repository. This widespread application suggests that it is part of a deliberate testing strategy, likely involving scenarios where application restarts are simulated or required. The initial implementation in the TestContainersConfiguration.java file aligns with this broader usage pattern.

  • Files using @RestartScope:
    • jpa/multitenancy/schema/src/test/java/com/example/multitenancy/schema/config/TestContainersConfiguration.java
    • httpClients/boot-http-proxy/src/test/java/com/example/rest/proxy/TestApplication.java
    • boot-togglz-sample/src/test/java/com/example/featuretoggle/TestApplication.java
    • boot-rabbitmq-thymeleaf/src/test/java/com/poc/boot/rabbitmq/TestRabbitMQApplication.java
    • boot-mongodb-elasticsearch/src/test/java/com/example/mongoes/TestApplication.java (used twice)
    • boot-choas-monkey/src/test/java/com/example/choasmonkey/TestApplication.java
Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the usage of `RestartScope` in test configurations.

# Test: Search for the usage of `RestartScope` in test configurations. Expect: Justified use cases or explanations.
rg --type java '@RestartScope'

Length of output: 762

graphql/boot-graphql-webflux/src/test/java/com/example/graphql/TestApplication.java (1)

16-16: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() is correctly implemented.

scheduler/boot-jobrunr-sample/src/test/java/com/example/jobrunr/TestApplication.java (1)

16-16: Update to PostgreSQL 16.3-alpine using DockerImageName.parse() is correctly implemented.

boot-rest-docs-sample/src/test/java/com/example/restdocs/TestApplication.java (2)

8-8: Import statement for DockerImageName is correctly added to support the new container instantiation method.


16-16: Updated PostgreSQLContainer instantiation using DockerImageName.parse() enhances robustness in handling Docker image names.

r2dbc/boot-r2dbc-sample/src/test/java/com/example/bootr2dbc/TestApplication.java (2)

8-8: Import statement for DockerImageName is correctly added to support the new container instantiation method.


16-16: Updated PostgreSQLContainer instantiation using DockerImageName.parse() enhances robustness in handling Docker image names.

boot-choas-monkey/src/test/java/com/example/choasmonkey/TestApplication.java (3)

18-18: Addition of @RestartScope is appropriate for development environments with frequent live reloads.


9-9: Import statement for DockerImageName is correctly added to support the new container instantiation method.


18-18: Updated PostgreSQLContainer instantiation using DockerImageName.parse() enhances robustness in handling Docker image names.

r2dbc/boot-jooq-r2dbc-sample/src/test/java/com/example/jooq/r2dbc/TestApplication.java (3)

17-17: Addition of withCopyFileToContainer for SQL script initialization enhances the setup process for database testing.


8-8: Import statement for DockerImageName is correctly added to support the new container instantiation method.


17-17: Updated PostgreSQLContainer instantiation using DockerImageName.parse() enhances robustness in handling Docker image names.

jpa/multitenancy/partition/src/test/java/com/example/multitenancy/partition/common/DBContainerInitializer.java (3)

13-13: Setting database name, username, and password directly in the container instantiation is secure and encapsulated.


7-7: Import statement for DockerImageName is correctly added to support the new container instantiation method.


13-13: Updated PostgreSQLContainer instantiation using DockerImageName.parse() enhances robustness in handling Docker image names.

jpa/multitenancy/multitenancy-db/src/test/java/com/example/multitenancy/db/common/DBContainerInitializer.java (3)

15-15: Using Startables.deepStart to start multiple containers concurrently optimizes the startup time of test environments.


9-9: Import statement for DockerImageName is correctly added to support the new container instantiation method.


15-15: Updated PostgreSQLContainer instantiation using DockerImageName.parse() enhances robustness in handling Docker image names.

jpa/boot-data-multipledatasources/src/test/java/com/example/multipledatasources/ApplicationIntegrationTest.java (2)

32-32: Instantiating PostgreSQLContainer with DockerImageName.parse() in a test class using multiple data sources ensures correct database configuration for integration testing.


20-20: Import statement for DockerImageName is correctly added to support the new container instantiation method.

@github-actions github-actions bot added the type: dependency-upgrade Pull requests that update a dependency file label May 10, 2024
Copy link
Contributor

@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.

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between af70a80 and f0ea3f7.
Files selected for processing (3)
  • jpa/multitenancy/partition/pom.xml (2 hunks)
  • jpa/multitenancy/partition/src/test/java/com/example/multitenancy/partition/TestApplication.java (1 hunks)
  • jpa/multitenancy/partition/src/test/java/com/example/multitenancy/partition/common/AbstractIntegrationTest.java (1 hunks)
Files skipped from review due to trivial changes (2)
  • jpa/multitenancy/partition/pom.xml
  • jpa/multitenancy/partition/src/test/java/com/example/multitenancy/partition/common/AbstractIntegrationTest.java
Additional comments not posted (2)
jpa/multitenancy/partition/src/test/java/com/example/multitenancy/partition/TestApplication.java (2)

13-17: Update to PostgreSQL 16.3-alpine is correctly implemented using DockerImageName.parse().


19-21: The main method correctly configures the application to run with TestApplication class.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rajadilipkolli rajadilipkolli merged commit cb6896e into main May 10, 2024
25 checks passed
@rajadilipkolli rajadilipkolli deleted the postgres-version branch May 10, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment