Robur
e7daf0366b
Rename local variable meta(s) -> build(s)
1 year ago
Robur
16c403b6b5
Fix query column ambiguity
1 year ago
Robur
17420c389b
WIP
1 year ago
Robur
0d918192ea
builder_db.exe: verify_data_dir verifies job name and uuid as well
1 year ago
Hannes Mehnert
4c42865ca7
fix compilation
2 years ago
Hannes Mehnert
cd633087d5
Infer section from job name rather than extension
2 years ago
hannes
cdce07c808
Merge pull request 'Use Cstruct.length and require cstruct >= 6.0.0' ( #56 ) from cstruct.6.0.0 into main
...
Reviewed-on: #56
2 years ago
Reynir Björnsson
f9fcd2c733
Use Cstruct.length and require cstruct >= 6.0.0
2 years ago
Hannes Mehnert
fc734dc2cd
improve packaging: use sh -ex
2 years ago
Reynir Björnsson
3ba9b93365
debian: fix datadir path
...
Use the builder-web datadir, not the builder datadir(!)
2 years ago
Reynir Björnsson
68db07067d
debian: fix --datadir typo
2 years ago
Reynir Björnsson
147163a92b
debian: correct sqlite3 dependency
...
It is called libsqlite3-0 and not libsqlite3 for whatever reason.
2 years ago
Robur
392286dd98
remove README.md and build-hashes from build_artifact table and file system
...
no longer store full file on disk
2 years ago
Robur
928821fec6
fix migration 2021-07-12
2 years ago
Robur
9195c91ab5
remove result_kind from build table (de-duplicate information), add some indexes
2 years ago
Robur
aa4db9b6a8
in /job/:job/build/:build output links to:
...
- builds that reproduced the binary with the same inputs
- builds that reproduced the binary with different inputs (only one for each input_id)
- builds with same input that produced a different output
/job/:job group by hash
2 years ago
hannes
e8f918230f
verify-data-dir-stream ( #50 )
...
builder-db verify-data-dir: stream build artifacts
Co-authored-by: Reynir Björnsson <reynir@reynir.dk>
Reviewed-on: #50
Co-Authored-By: hannes <hannes@mehnert.org>
Co-Committed-By: hannes <hannes@mehnert.org>
2 years ago
Robur
7c4bf56da6
builder_db: add a verify-data-dir subcommand
...
This subcommand checks that all files in the build_artifact table
are present in the data directory. Also, their size and hash must
match.
2 years ago
Robur
b09001916b
fixup 2021-07-07d: remove initial ./ from fpath
2 years ago
Robur
1b4b27e1c5
fixup 2021-07-07c: strip .hvt/.xen images if not already stripped
...
updates build_artifact and also the main_binary in build
2 years ago
Robur
49f7502e0c
fixup 2021-07-07b: move *.deb.debug to bin/*.deb, update build_artifact and build (main_binary)
2 years ago
Robur
f66fa8bf19
fixup 2021-07-07a: remove leftover orb.deb / orb.txz from build_artifacts
2 years ago
Robur
96ee7649b7
fix 0706 migration (old build table should be named new_build)
2 years ago
Robur
6ec40365ab
Add input_id to build table
...
The input_id column is a checksum of the files relevant for reproducibility.
2 years ago
Robur
be26e56fd4
Output links to comparisons of other builds with the identical main binary
...
in /job/:job/build/:build
2 years ago
hannes
9c326679ba
investigate differences in build, install, and uri when opam file differed ( #48 )
...
compare environment and system packages as well
investigate differences in build, install, and uri when opam file differed
Co-authored-by: Robur <team@robur.coop>
Reviewed-on: #48
Co-Authored-By: hannes <hannes@mehnert.org>
Co-Committed-By: hannes <hannes@mehnert.org>
2 years ago
Reynir Björnsson
7c7282894b
Typed database IDs ( #47 )
...
Typed database IDs
Reviewed-on: #47
Co-Authored-By: Reynir Björnsson <reynir@reynir.dk>
Co-Committed-By: Reynir Björnsson <reynir@reynir.dk>
2 years ago
Reynir Björnsson
cc092ca9d8
M20210701: reapply index
2 years ago
Reynir Björnsson
21065c9f44
Use initially deferred foreign key constraint
...
On build.main_binary.
2 years ago
Reynir Björnsson
37e68f91f4
Handle jobs without successful build in migrations
...
The migrations migrate-2021-06-29 and migrate-2021-06-30 would not apply
if a job exists without any successful build. Now the migrations script
silently skips jobs without succesful builds.
2 years ago
Hannes Mehnert
bd0ab7f554
packaging: install README.md
2 years ago
Robur
1e3fcf984f
Allow README.md being present anywhere
...
The one in root takes precedence, but opam-installer doesn't really
want to install things into %{prefix}%.
2 years ago
Robur
009fa49e9e
render README from latest build (preserved as a tag value in job_tag table)
2 years ago
Robur
5285872865
minor changes to main site
2 years ago
Robur
b4996939af
Job_tag: try to retrieve the tag value - insert if none, update if some
2 years ago
Robur
1e190e42c7
Builder_db.Job_tag: provide next to add also an update
...
Model: if Job_tag.add fails, use Job_tag.update
2 years ago
Robur
eb786088e7
Builder_db.Job_tag.add: use INSERT OR REPLACE to avoid constraint violation
2 years ago
Robur
9a271add7b
add tag to jobs: description
2 years ago
Robur
e45497e97c
add tags to jobs: section and synopsis, inferred from the latest successful build
2 years ago
robur
0d1b00b13c
builder-web.opam: add dream lower bound
2 years ago
robur
2ada9881ff
debian packaging
2 years ago
Robur
216669fe99
Add README.md
2 years ago
Reynir Björnsson
a3f9e9aba0
Add job-remove command to builder-db
...
`builder-db job-remove job-name` removes a job from builder-web
including its associated files.
2 years ago
Robur
88377adb7c
adapt to builder changes (job -> script_job)
2 years ago
Robur
b279eb521b
Adapt to build input files removal
...
* Do not synthesize empty input files list
* Drop table build_file
2 years ago
Robur
987230c15f
improve FreeBSD and orb packaging
2 years ago
Reynir Björnsson
bde3baec46
Refactor migrations and don't enable foreign keys
...
Each migration is, for the most part, a module that exposes expected
database version numbers, command identifier and documentation. This
results in all information about the migration and rollback are
found in the module itself, and builder_migrations.ml only has to
reference the module.
Some migrations require foreign keys constraints are disabled. It is not
possible to enable or disable foreign key constraints inside a
transaction.
2 years ago
Robur
d088597c01
add explicit package dependencies
2 years ago
Robur
c2377dedd7
FreeBSD packaging and rc script
2 years ago
Robur
5555c87afd
Add the /job/:job/upload endpoint which receives a raw binary.
...
Fixes #38
2 years ago