Skip to content

chore(camel-test-infra-couchbase): upgrade couchbase.container to 8.0.0#21891

Open
github-actions[bot] wants to merge 4 commits intomainfrom
automated/upgrade-couchbase-container-8.0.0-18
Open

chore(camel-test-infra-couchbase): upgrade couchbase.container to 8.0.0#21891
github-actions[bot] wants to merge 4 commits intomainfrom
automated/upgrade-couchbase-container-8.0.0-18

Conversation

@github-actions
Copy link
Contributor

This PR updates the couchbase.container container image to version 8.0.0.

Update Details

  • Property: couchbase.container
  • Image: mirror.gcr.io/couchbase/server
  • File: /home/runner/work/camel/camel/test-infra/camel-test-infra-couchbase/src/main/resources/org/apache/camel/test/infra/couchbase/services/container.properties
  • Old version: 7.6.2
  • New version: 8.0.0

Verification

Please verify:

  • Container image version is compatible with existing tests
  • No breaking changes in the updated version
  • Tests pass with the new version

Run the following to verify:

mvn clean verify -pl camel-test-infra-couchbase

This PR was automatically created by the Container Version Upgrade workflow.

Update couchbase.container from 7.6.2 to 8.0.0
@github-actions github-actions bot added dependencies Pull requests that update a dependency file container-images For check container upgrades automated For Check Container upgrade labels Mar 10, 2026
@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/component-test camel-couchbase

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/component-test camel-couchbase

Result ✅ The tests passed successfully

@github-actions
Copy link
Contributor Author

🤖 The Apache Camel test robot will run the tests for you 👍

Copy link
Contributor

@apupier apupier left a comment

Choose a reason for hiding this comment

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

requires specific change:

[�[1;31mERROR�[m] �[1;31mErrors: �[m
[�[1;31mERROR�[m] �[1;31m  ConsumeMessagesWithLimitIT>CouchbaseIntegrationTestBase.setUpCouchbase:57 » ViewService View Query Failed: {"error":"not_found","reason":"views are supported only on couchbase buckets with couchstore storage backend"}
�[m
[�[1;31mERROR�[m] �[1;31m  ConsumeResumeStrategyIT>CouchbaseIntegrationTestBase.setUpCouchbase:57 » ViewService View Query Failed: {"error":"not_found","reason":"views are supported only on couchbase buckets with couchstore storage backend"}
�[m

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/component-test camel-couchbase

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/component-test camel-couchbase

Result ✅ The tests passed successfully

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/update-branch

@github-actions
Copy link
Contributor Author

✅ Branch updated successfully by merging main.

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/component-test camel-couchbase

@github-actions
Copy link
Contributor Author

/component-test camel-couchbase tests passed successfully.

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/update-branch

@github-actions
Copy link
Contributor Author

✅ Branch updated successfully by merging main.

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

/component-test camel-couchbase

@github-actions
Copy link
Contributor Author

/component-test camel-couchbase tests passed successfully.

⚠️ Some integration tests are disabled on GitHub Actions (@DisabledIfSystemProperty(named = "ci.env.name")) and require manual verification:

  • components/camel-couchbase: 5 test(s) disabled on GitHub Actions

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

Local test results for Couchbase 8.0.0:

Mixed results — producer tests pass, consumer tests fail:

Test Result
ProduceMessagesSimpleIT ✅ PASSED
ProduceMessagesWithAutoIDIT ✅ PASSED
RemoveMessagesIT ✅ PASSED
ConsumeMessagesWithLimitIT ❌ FAILED
ConsumeResumeStrategyIT ❌ FAILED

The consumer test failures are caused by:

ViewServiceException: views are supported only on couchbase buckets with couchstore storage backend

Couchbase 8.0.0 changed the default storage backend from CouchStore to Magma. Map/Reduce views are not supported on Magma. The test base class CouchbaseIntegrationTestBase creates a bucket with the default storage backend and then upserts a design document (view), which fails.

To fix, either:

  1. Specify StorageBackend.COUCHSTORE when creating the test bucket in CouchbaseIntegrationTestBase.setUpCouchbase()
  2. Or migrate the consumer to use SQL++/N1QL queries instead of views (views are deprecated in Couchbase 7.x+)

This PR is not safe to merge without addressing the storage backend change.

Couchbase 8.0.0 changed the default storage backend from CouchStore to
Magma. Map/Reduce views only work with CouchStore, so explicitly set
StorageBackend.COUCHSTORE when creating the test bucket.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor Author

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@gnodet
Copy link
Contributor

gnodet commented Mar 10, 2026

I've verified the Couchbase 8.0.0 upgrade locally with Docker — all 28 unit tests + 3 integration tests pass.

Issue: Couchbase 8.0.0 changed the default storage backend from CouchStore to Magma. Map/Reduce views (used by the integration tests) only work with CouchStore, so creating a bucket without explicitly setting the storage backend now fails with a ViewServiceException.

Fix: The additional commit (d143a1c) explicitly sets StorageBackend.COUCHSTORE when creating the test bucket in CouchbaseIntegrationTestBase.java.

@apupier could you double-check locally if you have a chance? The CI build passes (JDK 21 + JDK 25).

@gnodet gnodet requested a review from apupier March 11, 2026 09:18
Copy link
Contributor

@apupier apupier left a comment

Choose a reason for hiding this comment

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

Couchbase 8.0.0 changed the default storage backend from CouchStore to Magma. Map/Reduce views (used by the integration tests) only work with CouchStore, so creating a bucket without explicitly setting the storage backend now fails with a ViewServiceException.

Does it mean that the component must be improved to work with default?
Are all tests requiring Map/reduce views? What do you think to have some tests with the Couchstore and some tests using the default magma?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated For Check Container upgrade components container-images For check container upgrades dependencies Pull requests that update a dependency file test-infra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants