Skip to content

dbeaver/pro#9991 Support PostgreSQL in CloudBeaver platform tests - #4646

Open
dgr-dbeaver wants to merge 15 commits into
develfrom
9991-support-postgres-for-cloudbeaver-platform-tests
Open

dgr-dbeaver wants to merge 15 commits into
develfrom
9991-support-postgres-for-cloudbeaver-platform-tests

Conversation

@dgr-dbeaver

@dgr-dbeaver dgr-dbeaver commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Closes dbeaver/pro#9991

Summary

  • add an isolated PostgreSQL 17 user-datasource test environment
  • cover metadata, SQL execution, data editing, PostgreSQL types, and execution plans
  • add a dedicated Maven profile and a shared fixture for CE and EE tests
  • run the same Docker-managed launcher locally and in GitHub Actions

Testing

  • mvn verify --file server/product/aggregate/pom.xml --define headless-platform
  • 66 default CE tests passed
  • Maven suite profile selection verified
  • launcher syntax and git diff --check verified
  • live PostgreSQL run is delegated to the new CI job because Docker is unavailable in the development environment

Related PR

  • dbeaver/cloudbeaver-ee#2659

This PR was generated with AI assistance.

@codacy-production

codacy-production Bot commented Sep 9, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 100 complexity

Metric Results
Complexity 100

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@dgr-dbeaver

Copy link
Copy Markdown
Contributor Author

@codex

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T17:48:28.081397Z 6e9a6df Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e9a6df6b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

POSTGRES_USER: cloudbeaver_test
POSTGRES_PASSWORD: cloudbeaver_test
ports:
- target: 5432

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Default the PostgreSQL binding to an ephemeral port

When port 5432 is already occupied—such as by a developer's local PostgreSQL instance—or two launchers run concurrently, compose up --detach postgres in test-postgres-datasource.sh fails before the tests start. The randomized Compose project name does not isolate a fixed host port. Default the published port to an ephemeral port while retaining the environment-variable override; the script already discovers the selected port with compose port.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Port 5432 is intentionally used as the default for predictable local and IDE runs. Port conflicts and concurrent executions are supported through the CLOUDBEAVER_TEST_POSTGRES_PORT override, as documented in dbeaver/pro#9991. The randomized Compose project name isolates container resources, while host port selection remains explicit.

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.

1 participant