Endpoint for builder exec asn.1 data #10
Loading…
Reference in a new issue
No description provided.
Delete branch "download-full"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This allows us to download the builder "exec" data. As in the builder-db command there is a loss of precision in timestamps for console log output.
I tested this on a local builder-web instance with a solo5 build. I could correctly get the job information, console output and for the artifacts the main binary had the correct checksum \o/
This closes #13.
@ -526,0 +531,4 @@
match List.rev lines with
| "" :: lines -> List.rev lines
| _ -> lines
in
this looks a bit hackish -- do we really need it? Is it done elsewhere as well? How comes we get an empty line in the beginning?
I copied the code from
bin/builder_db_app.ml
. I don't remember why we remove the last empty line. I agree that the whole function looks a bit sloppy. I will try to improve the code.I now remember. It's because there's a
\n
at the end of the file, and this then breaks the timestamp parsing code later after we've split on\n
.I'll reiterate once again.
I made the code a bit more robust against unexpected lines (which are then logged unless it's the empty string). I think it's good to merge now.