Commit graph

23 commits

Author SHA1 Message Date
5d28a2f04a Fix foreign key error when adding runs 2024-05-13 17:26:32 +02:00
a525e58211 Restructure db schema
The "commit_links" table is now called "commit_edges".

There is now a "metrics" table that run measurements have a foreign key
to. This provides canonical metric metadata and will speed up the
initial graph page (before any real data arrives). For now, it will be
overwritten with each new run, but more nuanced config options may be
added later.
2024-05-13 15:27:17 +02:00
3458f38c96 Improve graph query performance 2023-10-23 22:48:35 +02:00
2bf939186d Remove stddev and direction columns 2023-10-22 01:50:19 +02:00
37fc51fcca Improve graph endpoint performance 2023-08-30 21:44:22 +02:00
660db66bb2 Improve queue performance 2023-08-16 01:04:46 +02:00
82e2385f59 Group migrations 2023-08-15 19:01:28 +02:00
476fd84d2d Display test graph 2023-08-15 00:59:46 +02:00
3c9fc1ce75 Return graph data at /graph/data 2023-08-14 23:45:05 +02:00
dd073b4c0d Include worker name and info in run 2023-08-14 14:26:53 +02:00
c7a89867a7 Restructure shared types and db columns
Now, the server sends the runner pretty much all run metadata. This way,
the reservation the server makes for the runner is accurate, providing
the runner responds with the same metadata it was sent. It also means
that only the server's system clock is relevant for tie breakers, and a
run's duration spans from the moment it is reserved to the moment it is
saved.

Also, the bench method is now always called `bench_method` and a
human-readable description is stored in the database for each run.
2023-08-12 21:23:36 +02:00
5e0b8e3c8c Store finished work in db 2023-08-11 15:16:20 +02:00
65d23f0994 Create tables for runs and measurements 2023-08-09 16:27:25 +02:00
e5de9ccb97 Identify queue items by commit hash, not id 2023-08-09 16:20:20 +02:00
4f11b9c912 Insert new commits into the queue 2023-08-06 18:33:50 +02:00
21d97a5bf4 Store all refs in the db 2023-08-06 12:59:15 +02:00
0d3cd15b03 Store more commit info in db 2023-08-06 10:47:45 +02:00
19a7bda8ab Remove unnecessary index 2023-08-06 03:00:02 +02:00
3bfeb89686 Add indices for slightly better performance
With the linux kernel commits, this reduced the time to update commit
tracked flags from >60s to 44s, but this requires further testing before
committing to the indices.
2023-08-05 12:31:20 +02:00
523b82632f Rename migration according to sqlx convention 2023-08-05 12:21:07 +02:00
1f66fe0299 Add "tracked" column to table "commits" 2023-08-05 11:52:51 +02:00
5dbd8e886b Initialize repo and update tracked refs 2023-08-05 02:51:04 +02:00
6651c72ea3 Insert new commits from repo 2023-08-05 00:32:40 +02:00