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

backend/pg: Stop using legacy helper/schema #34987

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

apparentlymart
Copy link
Member

The legacy SDK is a very heavy dependency that this backend was only using tiny parts of.

We'll now instead use our new "backendbase" package, which aims to provide a smaller set of helper functions that cover the main use-cases that the existing backends were relying on the SDK to meet, but with considerably less code and fewer layers of abstraction.

In the long run we're still planning to move all of the state storage backends out to provider plugins, but the legacy SDK is quite a liability because few people know how to maintain it while hopefully this interim backendbase package is easier to maintain (if needed) due to its relative simplicity.

I don't have any test environment for this backend, so I've only tested this through its unit tests. I'd appreciate if a backend maintainer could, along with reviewing this code, also run the acceptance test suite in case there are regressions that the unit tests aren't able to catch. Thanks!

The legacy SDK is a very heavy dependency that this backend was only using
tiny parts of.

We'll now instead use our new "backendbase" package, which aims to provide
a smaller set of helper functions that cover the main use-cases that the
existing backends were relying on the SDK to meet, but with considerably
less code and fewer layers of abstraction.
There were two failing ACC tests with this update. One from from a newer
version of pg, which causes a different auth error message. The other is
is directly related to this PR, which was checking for a specific schema
error, which is now `invalid value for "skip_schema_creation"` when a
non-bool argument is present.
@jbardin
Copy link
Member

jbardin commented Apr 15, 2024

Since we don't have an active in-house maintainer for this backend, in order to expedite review and prevent this from becoming stale, I updated the PR to pass all acceptance tests with a current postgresql version. There were only 2 minor test scenario changes, both unrelated to functionality. The auth error checked by one test changed in the past few years, and the schema error checked by another test changed with the removal of the legacy SDK.

@crw
Copy link
Collaborator

crw commented Apr 15, 2024

@remilapeyre Just an FYI, I do not think an action is needed at this time.

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.

None yet

3 participants