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

sqlite updates #17658

Merged
merged 9 commits into from
Mar 2, 2023
Merged

sqlite updates #17658

merged 9 commits into from
Mar 2, 2023

Conversation

vrothberg
Copy link
Member

A number of commits to the WIP sqlite backend in libpod. Please see the individual commits for details.

On my machine all but one system test pass. There is one remaining issue with respect to network aliases. Run the tests against test/system/500-networking.bats --filter "connect/disconnect with port forwarding" to reproduce the issue. I am running out of time today, so I prefer to push the current state.

@mheon @baude PTAL

Does this PR introduce a user-facing change?

None

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vrothberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2023
@mheon
Copy link
Member

mheon commented Feb 28, 2023

Code LGTM

@vrothberg
Copy link
Member Author

@mheon @baude now all but 3 tests using a custom containers.conf fail 👍 The flake should be fixed once #17673 gets in.

Use the same error message as the boltdb backend.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <[email protected]>
I wasn't able to find a way to get error-checks working with the sqlite3
library with the time at hand.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <[email protected]>
It's `UPDATE $NAME` not `UPDATE TABLE $NAME`.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <[email protected]>
Wrap the error with the message expexted by the system tests.

[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <[email protected]>
A partial name match is tricky as we want it to be fast but also make
sure there's only one partial match iff there's no full one.

[NO NEW TESTS NEEDED] as it fixes a system test.

Signed-off-by: Valentin Rothberg <[email protected]>
[NO NEW TESTS NEEDED]

Signed-off-by: Valentin Rothberg <[email protected]>
There's a unique constraint in the table, so we shouldn't add the same
volume more than once to the same container.

[NO NEW TESTS NEEDED] as it fixes an existing one.

Signed-off-by: Valentin Rothberg <[email protected]>
Found by golangci-lint.

Signed-off-by: Valentin Rothberg <[email protected]>
@baude
Copy link
Member

baude commented Mar 1, 2023

/hold
/lgtm

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Mar 1, 2023
@vrothberg
Copy link
Member Author

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 2, 2023
@openshift-merge-robot openshift-merge-robot merged commit 96d4399 into containers:main Mar 2, 2023
@vrothberg vrothberg deleted the sqlite branch March 2, 2023 08:28
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants