guix-data-service/tests
Christopher Baines 5ed98343d7 Rework loading revision data
These changes were motivated by switching to a mechanism of loading data that
isn't dependent on the big advisory lock that prevents more than one revision
from being processed at a time.

Since INSERT ... RETURNING id; is used, this can block if another transaction
inserts the same data, and then cause an error when that transaction
commits. The solution is to use ON CONFLICT DO NOTHING, but you have to handle
the case when the INSERT doesn't return an id since the other transaction has
inserted it.

This commit rewrites insert-missing-data-and-return-all-ids to do as described
above, as well as being more efficient in how existing data is detected and to
use more vectors. Other utilities for inserting data are added as well.
2024-12-09 10:53:06 +00:00
..
branch-updated-emails.scm Check that the test database is being used in all the tests 2020-02-24 21:16:41 +00:00
driver.scm Add a (tests driver) module 2019-05-12 17:32:21 +01:00
jobs-load-new-guix-revision.scm Start trying to handle GC happening while processing revisions 2024-08-12 09:14:36 +01:00
mock-inferior.scm Put some comments in the mock-inferior module 2019-09-05 16:07:23 +02:00
model-derivation.scm Fetch the list of system values from the database 2021-04-23 11:20:36 +01:00
model-git-branch.scm Partition the package_derivations_by_guix_revision_range table 2022-05-23 19:10:25 +01:00
model-git-commit.scm Partition the package_derivations_by_guix_revision_range table 2022-05-23 19:10:25 +01:00
model-git-repository.scm Check that the test database is being used in all the tests 2020-02-24 21:16:41 +00:00
model-license-set.scm Rework loading revision data 2024-12-09 10:53:06 +00:00
model-license.scm Rework loading revision data 2024-12-09 10:53:06 +00:00
model-lint-checker.scm Rework loading revision data 2024-12-09 10:53:06 +00:00
model-lint-warning-message.scm Rework loading revision data 2024-12-09 10:53:06 +00:00
model-package-metadata.scm Rework loading revision data 2024-12-09 10:53:06 +00:00
model-package.scm Rework loading revision data 2024-12-09 10:53:06 +00:00