Sanne Raymaekers
f311adf35d
osbuild-jobsite-builder: disable http.Server timeouts
...
Let's just rely on the timeouts surrounding the whole step.
2024-03-21 17:08:07 +01:00
Sanne Raymaekers
dabe63cb78
osbuild-jobsite: increase populate timeout
...
30 seconds can be a bit too little for the entire store.
2024-03-20 21:58:17 +01:00
Sanne Raymaekers
b4e361e093
osbuild-jobsite-builder: unpack source tarball in populate
2024-03-19 17:07:30 +01:00
Sanne Raymaekers
bb43f330b8
cmd/osbuild-jobsite-builder: shutdown http server gracefully
2024-02-16 15:21:20 +01:00
Sanne Raymaekers
ab6fd9e53e
cmd/osbuild-jobsite-builder: actually assign the stdout buffer
...
The buffer needs to be assigned to the process' stdout for the buffer to
fill up.
2024-02-15 18:28:07 +01:00
Sanne Raymaekers
1150f0f27e
cmd/osbuild-jobsite: capture osbuild's stdout
...
Write osbuild's stdout in the progress step. The manager can just copy
it to stdout and the executor will be able to parse the output into an
osbuild result.
2024-02-15 14:31:24 +01:00
Simon de Vlieger
95b4979d88
jobsite/builder: move process into builder
...
Moves the background process into the builder struct in preparation for
using `sync.Once`.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
3cf2531ae2
jobsite: go-staticcheck appeasement
...
Log and errors should not end with punctuation.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
7b7de50e23
jobsite/builder: enable --json
...
Use `--json`; this causes `osbuild` to buffer all output and then print
a huge blob of JSON at the end of the command.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
42892754fd
jobsite/builder: no caching for osbuild.
...
As builders are not re-used caching has no use and can likely only
lead to disk-size issues. This can be re-enabled when we have an
outside-of-the-builder cache.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
b9b476c430
osbuild/builder: check deferred serve.
...
Make sure to keep track of the deferred error for serve.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
323d3a1f9c
jobsite/builder: rename.
...
Consistency, the agent is now called builder.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
7548870e91
jobsite/builder: check deferred close.
...
Check the deffered close by providing a name return value.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
c7788798c6
jobsite/builder: wrap HTTP handlers for errors.
...
Instead of going directly fatal inside the handlers this commit provides
a wrapper function allowing handlers to instead return an `error`; this
will allow for checking deferred errors.
2024-02-12 12:03:38 +01:00
Simon de Vlieger
0bd66cf8e8
jobsite: manager and builder
...
WIP
2024-02-12 12:03:38 +01:00