aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
Commit message (Collapse)AuthorAge
* Print out the system tests as the derivations are being computedChristopher Baines2020-04-07
| | | | This might help with debugging failures in the load jobs around this point.
* Guard against errors loading system testsChristopher Baines2020-04-07
|
* Guard against errors when inserting log dataChristopher Baines2020-04-07
| | | | | | PostgreSQL seems to be unhappy with some data, I guess because it gets a bit jumbled. Rather than failing the job, or getting stuck not inserting logs, try and capture the error, log the details, and then keep going.
* Use the config options when creating the default paramstringChristopher Baines2020-04-07
|
* Add option to change language of lint messages for the revision pageDanjela lura2020-04-04
| | | | Signed-off-by: Christopher Baines <mail@cbaines.net>
* Fix the new package-versions-for-branch queryChristopher Baines2020-03-31
| | | | | | | This recent change simply didn't work, the ordering was bad and the window function wasn't properly defined. It now should hopefully work, although there's an interesting case where different versions are available for different systems/targets, which isn't handled particularly well.
* Improve the insert-guix-revision-package-derivation-entries queryChristopher Baines2020-03-31
| | | | | Somewhat untested improvements, but these make the query a bit more rigorous in the case of multiple branches and git repositories.
* Improve filtering for no targetChristopher Baines2020-03-31
| | | | | | Previously, the select option label was empty that's not particularly informative. These changes also fix the next page link behaviour for the target parameter.
* Store output of most-recent-commits-for-branch in a local variableDanjela lura2020-03-29
| | | | Signed-off-by: Christopher Baines <mail@cbaines.net>
* Handle NULL better insert-missing-data-and-return-all-ids queriesChristopher Baines2020-03-29
| | | | | | | | Actually check if fields can be NULL, and if they can be then include some extra conditions for the comparison. This will at least make the queries smaller, I'm not sure if it will have an effect on performance.
* Add a function to fetch information about a tableChristopher Baines2020-03-29
| | | | Mostly so whether a field can contain NULL values can be determined.
* Include data in JSON response for the branch pagespf502020-03-28
| | | | Signed-off-by: Christopher Baines <mail@cbaines.net>
* Add an unimplemented JSON response for the branch pageChristopher Baines2020-03-26
|
* Remove redundant DISTINCT from the derivation range INSERT queryChristopher Baines2020-03-24
| | | | This was redundant and slow, so don't do it.
* Pass #:store to checkers that support itChristopher Baines2020-03-24
| | | | | | The derivation checker currently opens a store connection on its own, but by passing the already open connection in, it won't have to do that, and hopefully this will make checking all the packages faster.
* Stop using package_versions_by_guix_revision_rangeChristopher Baines2020-03-24
| | | | It's been replaced by the package_derivations_by_guix_revision_range table.
* Implement version history using the derivations tableChristopher Baines2020-03-24
| | | | | | | | | Rather than having two big tables looking at the history, just use the derivations table as it has all the information. This will allow deleting the package_versions_by_guix_revision_range table which should help save time when importing revisions, and reduce the size of the database.
* Fix the date ordering on the package output history pageChristopher Baines2020-03-24
|
* Sort the lint-warning-message-ids when queryingChristopher Baines2020-03-23
| | | | | This might solve errors where the Guix Data Service is trying to insert a lint_warning_message_set that already exists.
* Say that there are no lint warningsChristopher Baines2020-03-21
| | | | Rather than having an empty table.
* Change the sort order for derivations on the package version pageChristopher Baines2020-03-21
| | | | Put the non-cross built derivations first.
* Add a page for package output history on a branchChristopher Baines2020-03-21
| | | | | | | This complements the existing pages for the version history, and derivation history. As well as the new page, the buttons and styling of the two existing pages has been made to match better to enable easier navigation between the pages.
* Add a new function to get the outputs for a package on a branchChristopher Baines2020-03-21
| | | | | Similar to the one above for derivations, this just looks at outputs. This filters out equivalent derivations, which can be useful.
* Generate and store system test derivations for all supported systemsChristopher Baines2020-03-20
| | | | | | | Rather than just the native system. I'm not quite sure of the value here, as I guess system tests should behave the same regardless of the way the software is compiled, but this seems like it could be useful, and being explicit about the system the derivation is for is good.
* Fix marking jobs as failed when exceptions are raisedChristopher Baines2020-03-19
| | | | | The switch away from catch broke this, I obviously still don't quite get how with-exception-handler works. Therefore, use it twice as that seems to help.
* Provide more information if the server can't bind the portChristopher Baines2020-03-14
| | | | As this could be a common problem.
* Improve the 404 pagesChristopher Baines2020-03-14
| | | | Render some HTML rather than the plain response.
* Improve handling of errorsChristopher Baines2020-03-14
| | | | | Adjust the previously unused error page code, and start to use it. Only show the error if configured to do so, to avoid leaking secret information.
* Increase the batch size for fetching builds/narinfo filesChristopher Baines2020-03-14
| | | | | To increase the likelyhood that all the builds and narinfo files for the latest revisions are fetched.
* Set an order for select-outputs-without-known-nar-entriesChristopher Baines2020-03-14
| | | | Pulling out the recent entries first.
* Query for more recent derivation outputs by defaultChristopher Baines2020-03-12
| | | | | Rather than looking for the oldest unknown outputs, as the new ones are generally more useful.
* Remove peek call that snuck in to the builds moduleChristopher Baines2020-03-02
|
* Update http-multiple-getChristopher Baines2020-03-02
| | | | Update this by copying the code from Guix again.
* Improve the builds verbose outputChristopher Baines2020-03-01
|
* Make the dumps page work when dumps is a symlinkChristopher Baines2020-03-01
|
* Order build statuses by id, not timestampChristopher Baines2020-03-01
| | | | | Some builds from Cuirass change status at the same timestamp, so use the id for ordering instead.
* Redirect to the latest version of a fileChristopher Baines2020-02-29
|
* Support customising the latest branch revision max processesChristopher Baines2020-02-28
| | | | | This makes it possible to set a higher or lower value depending on what you want.
* Log the time spent in a locked sectionChristopher Baines2020-02-28
|
* Improve the locking around fetching channel instancesChristopher Baines2020-02-28
| | | | | | | I think there's still the potential for a race condition when working with the cached checkout of the repository, but this lock was far too wide. The sensitive section is just the latest-channel-instances call, as it adds the relevant files to the store, and that's what's returned.
* Improve the error reporting within process-load-new-guix-revision-jobChristopher Baines2020-02-27
| | | | By including a backtrace.
* Prevent inlining for a number of proceduresChristopher Baines2020-02-27
| | | | So that the load-new-guix-revision tests work with Guile 3.
* Add some syntax to prevent inlining within modulesChristopher Baines2020-02-27
| | | | | This is relevant, as it prevents the mock function used in tests working with Guile 3.
* Add a few imports in preparation for Guile 3Christopher Baines2020-02-27
|
* Clean up some time logging codeChristopher Baines2020-02-24
|
* 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.
* Switch to using some shorter syntax for logging time takenChristopher Baines2020-02-24
| | | | In the load-new-guix-revision module.
* Add a new utils module, containing a with-time-logging syntax ruleChristopher Baines2020-02-24
|
* Add a function to check if the test database is being usedChristopher Baines2020-02-24
| | | | | This helps avoid problems when running the tests, and the test database not being used.
* Add missing ROLLBACK for transactionChristopher Baines2020-02-24
|