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

935 commits

Author SHA1 Message Date
Christopher Baines
c751031a26 Avoid crashing when no compare arguments are provided 2020-11-21 16:49:58 +00:00
Christopher Baines
3e15900c56 Fix build links on the derivation page
In the case where the build is for a different derivation with the same
outputs.
2020-11-20 21:01:09 +00:00
Christopher Baines
00c84640c5 Improve the headings on the compare derivations page 2020-11-20 19:37:12 +00:00
Christopher Baines
65507aaac1 Don't show all results on the compare package derivation page
By default. For comparisons involving lots of changed derivations, the page
can take too long to render.
2020-11-20 19:33:16 +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
d98c676563 Fix typo 2020-11-19 21:46:47 +00:00
Christopher Baines
ce73e4448d Include a "Build change" filter on the package derivations page
This helps determine what things a change broke or fixed for example.
2020-11-19 21:02:47 +00:00
Christopher Baines
31475374f7 Support selecting compared package derivations by build change 2020-11-19 21:02:30 +00:00
Christopher Baines
80c6fbd1ac Clean up some unused code in the compare controller 2020-11-19 20:59:02 +00:00
Christopher Baines
1431f712a6 Fix compare by datetime URL
Use package-derivations rather than derivations, as this is more accurate.
2020-11-19 20:58:38 +00:00
Christopher Baines
276c4ecd71 Vacuum the log parts table after deleting entries from it
To help keep the number of dead tuples down.
2020-11-17 20:49:47 +00:00
Christopher Baines
e07b3291e8 Vacuum the package derivations table after each job
As each job deletes lots of rows in the table, vacuum it to free up space for
the next job.

I don't think this is something to do widely, but I wanted to try it out for
the tables which have a lot of churn.
2020-11-17 20:47:16 +00:00
Christopher Baines
5fb3fa177d Rework some of the table entries in the package through time tables
Try to clarify what the data means, make the revision commit more prominent
compared to the date and improve the display on smaller screens.
2020-11-16 18:49:20 +00:00
Christopher Baines
c13a0ef4c1 Use a darker grey on the tables through time
Just to make sure it's easy to see.
2020-11-16 18:20:10 +00:00
Christopher Baines
375a6a37dc Support not querying pending builds
As this can take some time.
2020-11-01 22:52:53 +00:00
Christopher Baines
f485423d5a Allow only fetching builds for a specific system 2020-11-01 22:49:49 +00:00
Christopher Baines
2732ba8f68 Support limiting fetching pending builds to specific revisions 2020-11-01 22:34:59 +00:00
Christopher Baines
adc1d01525 Only query recent pending builds
To avoid old pending builds that never leave the scheduled/started state.
2020-11-01 21:53:19 +00:00
Christopher Baines
5674f8838d Improve verbose output for fetching build information 2020-11-01 21:53:04 +00:00
Christopher Baines
6235c6e33b Fix call-with-time-logging in (guix-data-service utils)
It was just recording 0.
2020-11-01 21:17:31 +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
1573fe566b Remove a few peek calls that snuck in 2020-10-31 15:54:34 +00:00
Christopher Baines
f05af4479d Add a way of displaying build statuses as small labels 2020-10-31 15:53:50 +00:00
Christopher Baines
c05cbd8438 Rename some derivation comparison procedures
As they actually just relate to package derivations.
2020-10-31 13:52:08 +00:00
Christopher Baines
54616bc9e4 Add default "none" target to the package derivation outputs page
This avoids odd results for the links from the package substitute availability
page.
2020-10-31 13:27:06 +00:00
Christopher Baines
67f1ace9eb Add index to speed up deleting revisions
This is necessary to quickly delete entries from package_derivaitons.
2020-10-27 16:59:09 +00:00
Christopher Baines
6a7f6b5a0e Fix create small backup issue with latest_build_status 2020-10-23 20:01:43 +01:00
Christopher Baines
6c47212c4d Improve the failed comparison page 2020-10-23 16:23:16 +01:00
Christopher Baines
faa32234d8 Fix compare package derivations JSON link 2020-10-23 12:47:43 +01:00
Christopher Baines
63fc1917f8 Sort the pending builds by timestamp
So that builds that have been pending for a longer time are fetched first.
2020-10-21 20:49:58 +01:00
Christopher Baines
5124f3be3e Update insert-new-latest-status-entries
To use the status first for ordering, then the timestamp. This ensures
sensible behaviour regardless of what timestamps are present.
2020-10-21 20:25:59 +01:00
Christopher Baines
2e859ed981 Increase the limit on pending builds to query
As there are quite a lot of pending builds.
2020-10-21 20:08:02 +01:00
Christopher Baines
553f00d4cf Fix rendering of the /builds page 2020-10-21 20:05:37 +01:00
Christopher Baines
266a2d867c Limit the builds displayed on the /builds page
Otherwise it can't render if there are lots of builds.
2020-10-21 19:58:27 +01:00
Christopher Baines
fa6e4ac842 Use the status for ordering, as well as timestamp
As this will handle cases where the timestamps from Cuirass don't make sense,
like a build being canceled with a timestamp of 0 (1970).
2020-10-21 19:47:11 +01:00
Christopher Baines
6a04d474c0 Regenerate the latest_build_status table
As it doesn't handle wierdness for statuses, like builds being canceled with a
timestamp of 0.
2020-10-21 19:46:27 +01:00
Christopher Baines
efb26a616d Add a view build link on the build page 2020-10-21 19:26:18 +01:00
Christopher Baines
41a7f38f44 Cleanup scheduled and started builds with "0" timestamps
Not sure how these appeared, but deleting them seems to be sensible.
2020-10-21 19:25:30 +01:00
Christopher Baines
b5b89b3645 Fix broken links to builds 2020-10-21 18:38:29 +01:00
Christopher Baines
971a474f65 Update delete-unreferenced-derivations
To delete from latest_build_status as well.
2020-10-13 20:33:07 +01:00
Christopher Baines
7936ca2e54 Remove unnecessary join in select-outputs-without-known-nar-entries 2020-10-13 19:45:41 +01:00
Christopher Baines
83f68a8afa Display backtraces when exceptions occur for fetching builds 2020-10-13 19:35:45 +01:00
Christopher Baines
e273e22042 Switch queries across to use latest_build_status 2020-10-13 19:35:40 +01:00
Christopher Baines
83884ed2ea Add a latest_build_status table
This will avoid many queries trying to figure out what the latest build status
is, which will hopefuly simplify queries as well as improving performance.
2020-10-13 19:31:43 +01:00
Christopher Baines
941d1af556 Include the revision in the package derivation outputs JSON 2020-10-13 18:52:08 +01:00
Christopher Baines
f15dc5ab0b Include package details for the package derivation outputs JSON
So it's easier to match the output back to the package.
2020-10-13 18:51:21 +01:00
Christopher Baines
4231f11cb8 Tweak linking to build servers
Move the logic from different places in the view code, and also start
supporting linking to guix.cbaines.net builds. I'm unsure quite how to
generalise this, but just starting doing it is probably the way forward.
2020-10-11 21:19:00 +01:00
Christopher Baines
d05a7397fb Improve latest processed revision pages for reproducibility stuff
Support the package-derivation-outputs page, and switch the
package-reproducibility page across to use it.
2020-10-11 17:05:38 +01:00
Christopher Baines
efbbac5099 Add a very rough JSON output for the package derivation outputs page 2020-10-11 16:53:29 +01:00
Christopher Baines
3225766207 Make it easier to get to a repl 2020-10-10 13:44:37 +01:00