Skip to content

[Cache] Fix expiration time for CouchbaseCollection #53054

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

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

alexandre-daubois
Copy link
Member

@alexandre-daubois alexandre-daubois commented Dec 13, 2023

Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

A refactoring has been done in Couchbase extension 3.0.5 about expiry time: https://github.com/couchbase/php-couchbase/releases/tag/v3.0.5 (see PCBC-715)

In order to put things together, let's constantly use an absolute time point here. This also fixes a failing test of integration tests in 6.3.

Tests skipping messages have been updated to match CouchbaseCollectionAdapter::isSupported().

@carsonbot carsonbot added this to the 6.3 milestone Dec 13, 2023
nicolas-grekas added a commit that referenced this pull request Dec 18, 2023
This PR was merged into the 7.1 branch.

Discussion
----------

[Cache] Fix CI failing tests

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Fixes CI, `AbstractAdapter::createConnection` checks the bucket support before falling back to Collection when the DSN starts with `couchbase`. Should fix CI in all versions with #53054

Commits
-------

578eb29 [Cache] Fix failing test
@alexandre-daubois alexandre-daubois force-pushed the fix-couchbase-tests branch 3 times, most recently from 03c665e to b958250 Compare December 28, 2023 15:45
@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit c7f40f3 into symfony:6.3 Dec 29, 2023
This was referenced Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants