Skip to content

Fix MySQL backwards compatibility test failure#5085

Merged
philippthun merged 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-mysql-test-sequel-postgres-constant
May 5, 2026
Merged

Fix MySQL backwards compatibility test failure#5085
philippthun merged 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-mysql-test-sequel-postgres-constant

Conversation

@philippthun
Copy link
Copy Markdown
Member

@philippthun philippthun commented May 4, 2026

Sequel::Postgres::Dataset is only defined when the postgres adapter is loaded. In regular CI, the case_insensitive_string_monkeypatch requires sequel/adapters/postgres unconditionally, making the constant available even in MySQL runs. The backwards compatibility tests skip migrations (NO_DB_MIGRATION=true), so the monkeypatch is never loaded and the constant is undefined.

Use Sequel::Dataset instead, which is always available and sufficient for the mock (it only needs .update).

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

Sequel::Postgres::Dataset is only defined when the postgres adapter is
loaded. In regular CI, the case_insensitive_string_monkeypatch requires
sequel/adapters/postgres unconditionally, making the constant available
even in MySQL runs. The backwards compatibility tests skip migrations
(NO_DB_MIGRATION=true), so the monkeypatch is never loaded and the
constant is undefined.

Use Sequel::Dataset instead, which is always available and sufficient
for the mock (it only needs .update).
@philippthun philippthun marked this pull request as ready for review May 4, 2026 15:45
@philippthun philippthun requested a review from kathap May 4, 2026 15:45
@philippthun philippthun merged commit 2083904 into cloudfoundry:main May 5, 2026
11 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request May 5, 2026
Changes in cloud_controller_ng:

- Fix MySQL backwards compatibility test failure
    PR: cloudfoundry/cloud_controller_ng#5085
    Author: Philipp Thun <philipp.thun@sap.com>
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.

2 participants