aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Fix lint checker testsDanjela Lura2020-06-07
| | | | Signed-off-by: Christopher Baines <mail@cbaines.net>
* Update the valid-systems testChristopher Baines2020-04-20
|
* Do some more mocking in the jobs-load-new-guix-revision testsChristopher Baines2020-02-27
| | | | To help with getting them running on Guile 3.
* Remove unused mock-inferior importChristopher Baines2020-02-27
|
* Don't use the (tests driver) moduleChristopher Baines2020-02-27
| | | | | As I forget why I even added it. I'm sure it was to try and make test failures more understandable, but I'm not sure it worked.
* Add a missing importChristopher Baines2020-02-27
|
* Adapt some license related code to work without mock in the testsChristopher Baines2020-02-24
| | | | | With Guile 3, there's a potential for mock to work in even fewer circumstances. So, adapt the code to enable writing the tests without mock.
* Check that the test database is being used in all the testsChristopher Baines2020-02-24
|
* Clear a couple of tables in the load-new-guix-revision testsChristopher Baines2020-02-24
| | | | | As entries from incomplete previous runs can effect the test, so clean out any old data before the test begins.
* Fake the store connection in the testsChristopher Baines2020-02-14
| | | | So that the tests don't require a store connection.
* Use a more long lived store connection for loading dataChristopher Baines2020-02-13
| | | | | As this will enable registering temporary roots, to avoid store items being garbage collected.
* Start storing channel instance derivationsChristopher Baines2020-02-11
| | | | These are the ones that relate to Guix pull.
* Update the load-new-revision-job testsChristopher Baines2020-02-11
|
* Make valid-systems quickerChristopher Baines2020-01-05
| | | | | In the future, it would be good to pull this from the database again, but in some way which is really quick.
* Insert channel news entries when loading new guix revisionsChristopher Baines2019-11-21
| | | | If the channel-news-for-commit function is present.
* Refactor channel handling in the load-new-guix-revision moduleChristopher Baines2019-11-21
| | | | To allow for passing the channel to channel-news-for-commit.
* Improve the package and package-metadata modulesChristopher Baines2019-09-05
| | | | | | | Add tests around the package module, extract out the use of the inferior-package record assessors so that they aren't part of the tests, and switch across the package-metadata module to use insert-missing-data-and-return-all-ids.
* Put some comments in the mock-inferior moduleChristopher Baines2019-09-05
| | | | About mocking the record file accessors not working :(
* Start handling ids as numbers, rather than stringsChristopher Baines2019-09-05
| | | | | | | | | squee, returns all data as strings, and expects strings as inputs to queries. So, keeping the ids as strings was easy initially, but it means that you can't tell from the type whether it should be quoted, or not... Therefore, handle ids as strings, converting them to numbers when they're fetched from the database, and back to strings as part of the queries.
* Store lint warnings in the databaseChristopher Baines2019-09-01
| | | | | | | | | | This commit adds the relevant tables and code to store lint warnings in the database. Currently, only lint checkers which don't require access to the network will be run, as this allows the processing to happen without network access. Also, this functionality won't work in older versions of Guix which don't expose the lint warnings in a compatible way.
* Avoid erroring when processing emails againChristopher Baines2019-08-05
| | | | | These changes allow processing emails again, and just creating job and branch entries where data is missing.
* Remove test data after the tests have ranChristopher Baines2019-08-05
| | | | | The load-new-guix-revision tests aren't transactional, so truncate some tables after running the tests.
* Fix some duplicated values in tablesChristopher Baines2019-08-04
| | | | | | | | | | | | | The licenses table, along with the package_metadata table had duplicate values. This could happen as the unique constraints on those tables didn't properly account for the nullable fields. The duplicates in those tables also affected the license_sets, packages, package_derivations tables in a similar way. Finally, the guix_revision_package_derivations table was also affected. This commit adds a migration to fix the data, as well as the constraints. THe code to populate the licenses and package_metadata tables is also updated.
* Switch to processing jobs in parallelChristopher Baines2019-07-12
| | | | | | This should speed up processing new revisions, reduce latency between finding out about new revisions and processing them, as well as help manage memory usage, by processing each job in a process that then exits.
* Fix the name for the jobs-load-new-guix-revision test moduleChristopher Baines2019-07-12
|
* Associate a name with database connectionsChristopher Baines2019-07-12
| | | | This helps when working out which connection to the database is doing what.
* Add a new test to cover some of the loading new revisions codeChristopher Baines2019-06-02
|
* Fix the package-metadata testsChristopher Baines2019-05-16
|
* Fix how email dates are inserted in to PostgreSQLChristopher Baines2019-05-16
| | | | | Previously, the timezone was stripped off, so the timestamps were off. This commit changes the code to use a Unix timestamp, which avoids this issue.
* Store license information for packagesChristopher Baines2019-05-15
| | | | | | | | | | And display this on the package page. This uses a couple of new tables, and an additional field in the package_metadata table. Currently, the order of the licenses in the package definition isn't stored, as I'm not sure the order in the list is significant.
* Fix type issues with the location idsChristopher Baines2019-05-14
| | | | | | | | On one code path, they were handled as numbers, whereas elsewhere they were handled as strings. This led to the package-metadata code trying to insert duplicate entries. Instead, just handle them as strings everywhere.
* Store and display the location of packagesChristopher Baines2019-05-13
| | | | | | | Store the location a package can be found at, and display this on the package page. If available, link off to the git repository containing the package.
* Remove the sha1_hash from the package_metadata tableChristopher Baines2019-05-12
| | | | | | | | I'm thinking about adding more fields to this table, and the sha1_hash values will make this tricker. Therefore, remove the value, and adjust the existing code to cope. This commit also adds a new test which coveres some of the changed functionality.
* Add a mock-inferior moduleChristopher Baines2019-05-12
| | | | This to help test code which uses the (guix inferior) module.
* Add a (tests driver) moduleChristopher Baines2019-05-12
| | | | | Using the test driver from build-aux/test-driver.scm, as this shows the test errors when tests fail.
* Start to handle information about Git branchesChristopher Baines2019-05-05
| | | | | | Add some new pages /branches and /branch/... as well as a new git_branches table. Also extend the email processing to enter the branch information in to the database.
* Switch to storing Git repositories in a tableChristopher Baines2019-05-05
| | | | | | Rather than just storing the URL in the guix_revisions and load_new_guix_revision_jobs tables. This will help when storing more information like tags and branches in the future.
* Add an initial testChristopher Baines2019-04-14
Along with the buildsystem changes to make `make check` work.