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

Get rid of dependency to SQLite #737

Merged
merged 3 commits into from Apr 15, 2020
Merged

Get rid of dependency to SQLite #737

merged 3 commits into from Apr 15, 2020

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Apr 10, 2020

SQLite isn't officially supported for a while. Since it's still used by default, it can lead to confusion by end-users.

@Ma27
Copy link
Member Author

Ma27 commented Apr 10, 2020

Build seems to fail due to a configuration issue in github CI:

error: a 'x86_64-linux' with features {kvm, nixos-test} is required to build '/nix/store/1b0yqi55h8jh0vdgl6iasbgh6rzh22v9-vm-test-run-unnamed.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, nixos-test}

cc @edolstra @grahamc anything else to do here? :)

flake.nix Outdated Show resolved Hide resolved
SQLite isn't properly supported by Hydra for a few years now[1], but
Hydra still depends on it. Apart from a slightly bigger closure this can
cause confusion by users since Hydra picks up SQLite rather than
PostgreSQL by default if HYDRA_DBI isn't configured properly[2]

[1] 78974ab
[2] https://logs.nix.samueldr.com/nixos-dev/2020-04-10#3297342;
To quote the function's comment:

  Awful hack to handle timeouts in SQLite: just retry the transaction.
  DBD::SQLite *has* a 30 second retry window, but apparently it
  doesn't work.

Since SQLite is now dropped entirely, this wrapper can be removed
completely.
@Ma27
Copy link
Member Author

Ma27 commented Apr 15, 2020

After rebasing onto latest master which fixes GitHub-CI, the PR appears fine to me now.

@edolstra anything else to get this merged? :)

@edolstra edolstra merged commit 87837f1 into NixOS:master Apr 15, 2020
@edolstra
Copy link
Member

Thanks!

@Ma27 Ma27 deleted the rm-sqlite branch April 15, 2020 22:56
@ajs124
Copy link
Member

ajs124 commented Apr 18, 2020

With this merged #355 can be closed as well, right?

@Ma27
Copy link
Member Author

Ma27 commented Apr 18, 2020

From my PoV yes (don't have sufficient rights here though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants