2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
Commit graph

41 commits

Author SHA1 Message Date
Luciana Lima Brito
767e60b2b3 Change data handling when comparing derivations
comparison.scm: return query data for derivation comparison as an alist,
instead of list.
html.scm: Access derivation differences data using assq-ref.
controller.scm: remove mapping for outputs/inputs/sources.
utils.scm: add group-to-alist/vector function.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2021-04-27 21:18:51 +01:00
Christopher Baines
1f078e1af0 Fix more things for the systems table introduction 2021-04-23 23:10:28 +01:00
Christopher Baines
0175914f79 Fix a null handling issue for system test derivation comparison 2021-03-25 17:49:44 +00:00
Christopher Baines
52ac92e7c7 Handle NULL values when comparing derivation output details set ids
Otherwise this restricts the results to entries where neither value is NULL.
2021-02-12 09:18:50 +00:00
Christopher Baines
146ffbe5eb Fix excluding derivations for unchanged outputs 2021-02-08 22:18:27 +00:00
Christopher Baines
110a3b7ce5 Exclude derviations with unchanged outputs from the comparison page
As these aren't useful to look at. This should probably default to #f and be a
parameter.
2021-02-08 22:04:26 +00:00
Christopher Baines
b4bb92c8a9 Fix a copy paste error in system-test-derivations-differences-data 2021-01-04 22:58:53 +00:00
Christopher Baines
b84014dca5 Remove some left over debugging 2021-01-04 22:58:45 +00:00
Christopher Baines
6f89066355 Support comparing revision system test derivations
This should come in useful for testing patches, as you can see what system
tests are affected, and check the build status.
2021-01-04 19:15:01 +00:00
Christopher Baines
dd044c9f53 Cleanup in the comparison module 2021-01-04 07:58:58 +00:00
Christopher Baines
7b66253639 Add missing build server build ids to various queries 2021-01-03 11:05:29 +00:00
Christopher Baines
64a4058cce Start to add compatibility with squee returning #f for null values
While maintaining compatibility for older versions of squee.
2021-01-02 10:06:27 +00:00
Christopher Baines
1df7b46343 Stop package metadata changes being included
In the package-derivation-differences-data.
2020-12-20 11:27:24 +00:00
Christopher Baines
7b92a6a5b3 Allow the package derivation data procedure to not return all data
By adding after-name and limit-results parameters.
2020-11-20 19:28:39 +00:00
Christopher Baines
31475374f7 Support selecting compared package derivations by build change 2020-11-19 21:02:30 +00:00
Christopher Baines
e394d1d6ad Show build information when comparing package derivations
As this is useful to see, as it can indicate that a change to the derivation
has led to the builds to start failing/succeeding.
2020-10-31 15:55:11 +00:00
Christopher Baines
53341c70fc Change the locale codeset representation
From the normalized one, to the one actually contained within glibc. Recent
versions of glibc also contain symlinks linking the normalized codeset to the
locales with the .UTF-8 ending, but older ones do not.

Maybe handling codeset normalisation for queries would be good, but the locale
values ending in .UTF-8 are more compatible and allow the code to be
simplified. For querying, maybe there should be a locales table which handles
different representations.
2020-09-26 11:45:57 +01:00
Danjela Lura
f0833f8d02 Provide the comparison page with translated lint warnings
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura
d3096de655 Use lint checker related translations on some pages
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura
f67bea719d Get the translated lint checker descriptions into the database
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Christopher Baines
83c86431ae Better split up the comparision functionality
The packages comparison was getting confused by differences in the
derivations, so split the data used to make the comparison more sensible.

This resolves an issue comparing 8dd723f5… and 365892e9… which coinsided with
the fix for importing foreign architecture derivations, meaning that a whole
lot of new derivations appeared in the database. Prior to these changes, it
appeared like every package was new, and with these changes, the list is more
sensible.
2020-01-02 20:41:24 +00:00
Christopher Baines
0cea51cc79 Add copyright and license headers to a bunch of source files
That were missing them.
2019-12-26 10:16:55 +00:00
Christopher Baines
a41249d8fe Move group-to-alist to the model utils module
So it can be more widely used.
2019-12-16 15:19:02 +00:00
Christopher Baines
ae150888d8 Remove some peek statements that snuck in 2019-11-21 20:48:41 +00:00
Christopher Baines
23f60a6bbb Include news entries on the comparison page 2019-11-21 19:56:19 +00:00
Christopher Baines
e31f370de0 Add a basic derivation comparison page 2019-11-21 19:54:54 +00:00
Christopher Baines
eb0d33a3ba Show lint warnings on the comparison page 2019-09-07 17:19:34 +02:00
Christopher Baines
84ad3656df Alphabetically order the derivation comparison page 2019-08-06 10:33:00 +01:00
Christopher Baines
3849bb79c5 Support filtering by systems and targets when comparing derivations 2019-08-06 10:22:57 +01:00
Christopher Baines
36a16d356f Improve derivation comparison to show more changes
In cases where the version is changed for example, the relevant derivations
will now show up, whereas previously they did not.
2019-08-06 09:55:03 +01:00
Christopher Baines
5dbdfe1133
Switch parts of the comparison code to use hash tables
Rather than vhashes. This removes the need for the expensive vhash-delete
calls.
2019-03-24 17:35:19 +00:00
Christopher Baines
5fcabe95f2
Handle 0 derivations in package-data-vhash->derivations-and-build-status 2019-03-24 11:59:44 +00:00
Christopher Baines
daa2790f59 Differentiate filtering better for select-derivations-and-build-status
An empty list of derivation-file-names should result in no results,
but in the case of the systems, targets and build-statuses, we want
all of the results.
2019-03-24 10:57:22 +00:00
Christopher Baines
189014f3bc
Improve the compare derivations page
Add support for filtering the results, and add the system and target
to the output.
2019-03-17 22:44:09 +00:00
Christopher Baines
5325cf0234
Fix the JSON responses for the comparison pages 2019-03-16 22:20:55 +00:00
Christopher Baines
38888aea6b
Fix some duplication on the compare page
For the new and removed package sections.
2019-03-16 19:59:45 +00:00
Christopher Baines
e117bb1d87
Many changes
A large proportion of these changes relate to changing the way
packages relate to derivations. Previously, a package at a given
revision had a single derivation. This was OK, but didn't account for
multiple architectures.

Therefore, these changes mean that a package has multiple derivations,
depending on the system of the derivation, and the target system.

There are multiple changes, small and large to the web interface as
well. More pages link to each other, and the visual display has been
improved somewhat.
2019-03-11 22:11:14 +00:00
Christopher Baines
e656b0967b
Include the status of derivations
On the comparison page.
2019-03-06 22:58:05 +00:00
Christopher Baines
e68142cf91
Add a new page comparing the derivations of two revisions 2019-02-24 15:38:08 +00:00
Christopher Baines
c88d8335ba
Improve the model for derivations
These changes mean that more information about derivations is
recorded. There are a number of corresponding changes in the database
schema that are not tracked in the repository unfortunately.
2019-02-10 09:42:22 +00:00
Christopher Baines
5a9262b38d
Initial commit
This is a service designed to provide information about Guix. At the
moment, this initial prototype gathers up information about packages,
the associated metadata and derivations.

The initial primary use case is to compare two different revisions of
Guix, detecting which packages are new, no longer present, updated or
otherwise different.

It's based on the Mumi project.

[1]: https://git.elephly.net/software/mumi.git
2019-02-07 22:26:57 +00:00