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
46df7f92a7
Aggregate all builds (even failed builds)
2024-02-12 12:19:52 +01:00
Robur
082f2582dd
Add a comment on LIMIT -1 OFFSET n
2024-02-12 12:19:52 +01:00
Robur
6594c6b912
Rename get_builds_and_exclude_the_first
2024-02-12 12:19:52 +01:00
Robur
73e1bf81ce
Fix comparison: less than or equal, not strict equal
2024-02-12 12:19:52 +01:00
53f1c4958c
Use our own ptime serializer
2024-02-12 12:19:52 +01:00
fb49d8eae2
Add two SQL requests to collect older builds according to a parameter
2024-02-12 12:19:52 +01:00
Robur
81be4229c1
model: only commit files that need to be saved
2024-01-09 16:42:13 +00:00
Robur
22f3eb3893
model, add_build: first put the files into place, then commit to the database
2024-01-09 16:37:39 +00:00
Robur
5d4d84f705
builder-db: update current database version
2024-01-09 16:28:03 +00:00
13dd238843
Merge pull request 'content addressing' ( #174 ) from content-addressing into main
...
Reviewed-on: #174
2024-01-09 15:08:10 +00:00
Robur
c45488dd73
hook scripts & repo scripts: provide and use --main-binary-filepath
2024-01-09 15:05:09 +00:00
Robur
1e522e2b39
builder_db_app: verify_data_dir: compute size and sha256 only once per artifact
2024-01-09 14:48:53 +00:00
Robur
f66932da48
content addressing migration: add indices
2024-01-09 14:31:49 +00:00
Robur
7dfd160d8e
Adapt visualizations.sh to content addressing
2024-01-09 14:27:52 +00:00
Robur
3bc14ba365
Remove Model.artifacts_dir
...
The directory is created later and the function is otherwise unused
2024-01-09 14:16:04 +00:00
36afb35e08
Update builder-db with content addressing
2024-01-09 13:32:13 +00:00
9f5458c8f4
Fix migration script
...
It didn't even compile :(
2024-01-09 13:32:13 +00:00
78a66dc089
Add migration script for content-addressed artifacts
2024-01-09 13:32:13 +00:00
1452de6280
Don't mask error in test setup
2024-01-09 13:32:13 +00:00
5ec5cb66df
Update tests and fix bug discovered
2024-01-09 13:32:13 +00:00
a56bd28e64
Add missing right paren
2024-01-09 13:32:13 +00:00
f636280f10
WIP content addressing
2024-01-09 13:32:08 +00:00
7f3a6719e2
require cmarkit 0.3
...
work around the issue reported at https://github.com/dbuenzli/cmarkit/issues/14
add a second table test, fix the tests for the 0.3 fixed layouting
2023-12-14 15:10:12 +01:00
46d8ba611c
Merge pull request 'Fixup: latest succesful build has main binary' ( #181 ) from fix-front into main
...
Reviewed-on: #181
2023-11-22 13:09:24 +00:00
57a11d4385
Fixup: latest succesful build has main binary
2023-11-22 14:07:28 +01:00
fc253c616d
Merge pull request 'fix get_latest_successful_with_binary to only return builds with main_binary' ( #180 ) from fix-front into main
...
Reviewed-on: #180
2023-11-22 12:44:24 +00:00
e262ae9d90
Rewrite query to not use LEFT JOIN
...
Since we now consider only builds with main binaries successfull we can
rewrite get_latest_successful_with_binary to not use a LEFT JOIN.
2023-11-22 13:43:09 +01:00
39da49363f
Merge pull request 'Enable non-strict mode for cmarkit to render tables' ( #179 ) from cmarkit-table into main
...
Reviewed-on: #179
2023-11-22 12:26:59 +00:00
6c4f36bfba
fix get_latest_successful_with_binary to only return builds with main_binary
...
so-called successful builds. in a756f2c..3b98605f there were regressions
(missing this condition in get_latest_succesful_with_binary,
get_next_successful_different_output, get_previous_successful_different_output).
2023-11-22 12:28:19 +01:00
ded21b9131
Enable non-strict mode for cmarkit to render tables
2023-11-22 12:13:42 +01:00
Robur
bf35e3fbae
repo scripts: remove existing packages
...
In the end the packaging tooling does not like multiple versions of
the same package. Thus we remove old packages before publishing.
2023-11-20 12:11:52 +00:00
Robur
6ba2994dcf
Fix debian packaging (version to always include -#commit-g<commit-id>)
...
If the build is a release, use -0-g0000000.
Also add this sanitization to the check_versions.sh
2023-11-20 11:52:59 +00:00
46f93c28ea
Merge pull request 'only show active jobs, fixes #162 ' ( #176 ) from orphan-old-builds into main
...
Reviewed-on: #176
2023-09-26 11:18:40 +00:00
378f5c4538
UI enhancement: all/active build modal
...
When showing the active builds link to all builds and vice versa.
2023-09-19 15:07:47 +02:00
bfa06c95f8
whitespace-cleanup
2023-09-19 15:07:47 +02:00
a9799f4ca8
delay computation to when the request lands
2023-09-19 15:07:47 +02:00
848186bd1a
make the expiry of jobs configurable via cli (default 30)
2023-09-19 15:07:47 +02:00
95b4856179
skip jobs with no builds
2023-09-19 15:07:47 +02:00
8dedc8b95b
only show active jobs, fixes #162
2023-09-19 15:07:47 +02:00
fde834ad02
Initialize rng
2023-09-19 15:07:12 +02:00
89f2c54973
Fix migrate-2023-09-11 by dropping hte index first
2023-09-18 14:09:54 +02:00
db115ad140
Merge pull request 'further CI fixes: require alcotest 1.2.0 (for check'), disable formatting (no .ocamlformat)' ( #175 ) from lower-bound-fix into main
...
Reviewed-on: #175
2023-09-18 09:08:39 +00:00
e0bc795735
further CI fixes: require alcotest 1.2.0 (for check'), disable formatting (no .ocamlformat)
2023-09-18 10:52:02 +02:00
48ce55e73e
Merge pull request 'fix CI' ( #173 ) from ci into main
...
Reviewed-on: #173
2023-09-12 13:47:51 +00:00