Commit graph

552 commits

Author SHA1 Message Date
02afdbb391 Use custom labels for the diffs
Otherwise we leak the temporary file names which are also not
interesting to the (innocent) user.
2025-01-09 16:48:45 +01:00
858f01234f Merge pull request 'diff view: translate \n to <br>' (!8) from fix into main
Reviewed-on: #8
Reviewed-by: Reynir Björnsson <reynir@reynir.dk>
2025-01-08 16:00:54 +00:00
e26af2dfdf as suggested by @reynir, use a pre 2025-01-08 17:00:00 +01:00
0a025adaae diff view: translate \n to <br> 2025-01-08 15:34:43 +01:00
0567f58f05 Merge pull request 'Compute and present the opam file differences as a unified diff' (!7) from opam-diff-as-diff into main
Reviewed-on: #7
Reviewed-by: Reynir Björnsson <reynir@reynir.dk>
2025-01-08 14:16:04 +00:00
b9668365cd use Bos.OS.File.with_tmp_oc instead to cleanup files immediately 2025-01-08 13:04:34 +01:00
420d049ff0 remove more unneeded code 2025-01-07 13:49:28 +01:00
8c29161144 Compute and present the opam file differences as a unified diff 2025-01-07 13:17:10 +01:00
f97ff8440d Merge pull request 'Make json structure uniform' (!6) from pixiedust-patch-1 into main
Reviewed-on: #6
2025-01-06 15:01:09 +00:00
0261f89022 uniform naming 2025-01-06 16:00:00 +01:00
161a8e713b update builder_web
Make json fileds uniform
2024-12-30 14:05:23 +00:00
c48a1bef3c Make json structure uniform
In `opamndiff` we have a similar structure but simply `version_left` and `version_right`.
https://git.robur.coop/robur/builder-web/src/branch/main/opamdiff/opamdiff.ml#L284-L286
2024-12-29 07:38:51 +00:00
b22f571a92 Merge pull request 'Add Json API to some endpoints' (!5) from json_responses into main
Reviewed-on: #5
Reviewed-by: Reynir Björnsson <reynir@reynir.dk>
2024-12-20 11:46:46 +00:00
44e7cd566f Refactor accept: json logic, return json errors
Now `or_error_response` will return the error message as a json object
if Accept: application/json.
2024-12-20 10:46:16 +01:00
c670df643e Tweak json field names
Also add "main_binary" boolean field in comparison for consistency with
`job_build` json.
2024-12-20 10:29:33 +01:00
2c44f88460 compare_builds json: return null if no main binary 2024-12-20 10:25:52 +01:00
23db42fed3 Rely on redirect also for Accept: json 2024-12-20 10:13:30 +01:00
92ee6b9aaf Yojson is now a non-test dependency 2024-12-20 10:12:55 +01:00
63223b8c46 add more data to build endpoint 2024-12-20 08:29:16 +01:00
b26d0a28d1 add opam dir to gitignore 2024-12-20 07:03:58 +01:00
14626c0bfe some documentation 2024-12-20 07:03:47 +01:00
8fb99041ba return json for comparison of two builds when header has accept json 2024-12-20 07:01:40 +01:00
55d4091256 return uuid of latest build when header contains an accept json 2024-12-19 12:22:07 +01:00
9bd42944a9 add maintenance intent 2024-12-17 17:03:27 +01:00
75f337b995 Merge pull request 'update to uuidm 0.9.9 deprecations' (!4) from update-uuidm into main
Reviewed-on: #4
Reviewed-by: Reynir Björnsson <reynir@reynir.dk>
2024-12-17 11:15:18 +00:00
580a8830e3 update to uuidm 0.9.9 deprecations 2024-12-17 12:11:44 +01:00
083f961ac4 Merge pull request 'output SHA256 sum without spaces' (!3) from style into main
Reviewed-on: #3
2024-09-24 12:16:18 +00:00
cd1b2a0b26 output SHA256 sum without spaces 2024-09-24 13:44:40 +02:00
402894405d Merge pull request 'v0.2.0 CHANGES.md' (!2) from prepare-v0.2.0 into main
Reviewed-on: #2
2024-09-10 09:25:28 +00:00
84737a4871 v0.2.0 CHANGES.md 2024-09-06 14:25:47 +02:00
47b1759d0f Merge pull request 'remove usage of cstruct, require mirage-crypto 1.0.0' (!1) from no-cstruct into main
Reviewed-on: #1
Reviewed-by: Reynir Björnsson <reynir@reynir.dk>
2024-09-05 15:12:37 +00:00
6d50b4bff4 remove superfluous mirage-crypto dependency 2024-09-05 17:02:14 +02:00
0f68776819 update builder depedency 2024-09-05 17:00:00 +02:00
598f8230bd update caqti constraint 2024-09-05 16:58:19 +02:00
ca0214c606 minor (grep -i cstruct) 2024-09-02 16:37:59 +02:00
07831d7de3 remove usage of cstruct, require mirage-crypto 1.0.0 2024-09-02 16:14:26 +02:00
71a5b0da96 Use Lwt.reraise instead of Lwt.fail 2024-08-22 14:04:28 +02:00
32ea8d2224
Merge pull request #3 from robur-coop/tar.3.0.0
Update to tar 3.0.0
2024-08-16 08:38:03 +02:00
c1cfe52cb0 Update to tar 3.0.0
Also embed a comment in the archive what software produced it.
2024-08-14 16:13:35 +02:00
9216d980b6
Merge pull request #2 from robur-coop/caqti.2.1.1
Update to Caqti.2.1.1
2024-08-13 16:47:59 +02:00
e73f7c5aa3 Set upper bound on tar 2024-08-13 13:16:31 +02:00
4461a91f87 Update to caqti>=2.1.1
The tuple type constructors are renamed from tupN to tN. Also, except
for migrations, use the wider tuple types (up to 12 since caqti.2.1.0).
2024-08-13 13:16:31 +02:00
b96c3a0479 Merge pull request 'Check version in visualizations.sh' (#188) from fix-visualizations into main
Reviewed-on: #188
2024-03-25 15:56:04 +00:00
cc6b084d7a Check version in visualizations.sh
If builder-web is upgraded and not restarted the visualizations script
will assume the new database schema while the still-running builder-web
binary will be using the old schema (until restarted).
2024-03-25 16:46:52 +01:00
97b8bb1d85 Merge pull request 'Implement builder-db vacuum {older-than,latest-n}' (#185) from vacuum into main
Reviewed-on: #185
2024-02-13 15:08:59 +00:00
2d36db435f Document vacuum default behavior, remove comment 2024-02-13 16:08:06 +01:00
e96234488f Add BUILDER_WEB_DATADIR env, fix bug
The builder-web commands now understand the BUILDER_WEB_DATADIR
environment variable which is used as --datadir.

During a change the transaction when vacuuming was committed twice which
is an error in sqlite. This was found during testing.
2024-02-13 14:23:25 +01:00
878acf002f Implement builder-db vacuum except-latest-successful
And some minor things.
2024-02-13 14:07:16 +01:00
d4da5a199f Implement builder-db vacuum {older-than,latest-n}
- `builder-db vacuum older-than [--job JOBNAME] RFC3339` removes all
  builds in `JOBNAME` (defaults to all jobs) that were built before
  `RFC3339`.
- `builder-db vacuum except-latest [--job JOBNAME] LATEST-N` removes all
  builds in `JOBNNAME` (defaults to all jobs) except for the latest
  `LATEST-N` builds (successful or not).
2024-02-12 15:09:08 +01:00
8c62314100 Merge pull request 'Add two SQL requests to collect older builds according to a parameter' (#183) from collect-old-builds into main
Reviewed-on: #183
2024-02-12 11:26:47 +00:00