| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This tests the checksums of artifacts and tests any unpacked chunks.
The unpacked chunks are tested by turning them back into tarfiles and
calculating a checksum, which we can rely on being identical to the
chunk artifact in the artifact cache if there is no corruption. That is
pretty cool!
This code doesn't work because the zlib.adler32() code can't be used as
a rolling checksum. I'm going to switch to using hashlib.md5() which
should still be fast enough. Alternately we could go for sha256 right
away, so that when we /do/ have bit-for-bit reproducibility from source,
we can say that everything is totally secure.
|
|
|
|
|
|
|
|
|
|
| |
The OSFS.walkfiles() method returns file paths inside the cachedir, but
LocalArtifactCache.list_contents() expected file names (with no trailing
slash).
The last digit of the cache key was also being removed.
TODO: check if `morph gc` still works
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
artifacts
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Reviewed by:
Richard Maw
Lars Wirzenius
Daniel Silverstone
|
| |
| |
| |
| | |
To cancel jobs cleanly we need to know when a job has failed.
|
| | |
|
| | |
|
| |
| |
| |
| | |
add_initiator() isn't necessary given lists have a remove method.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
There's no longer any need to log the exception separately,
it will be logged with the MorphologySyntaxError
|
|\ \
| |/
|/|
| |
| |
| | |
Reviewed by:
Daniel Silverstone
Richard Maw
|
| | |
|
|/
|
|
| |
Be more verbose and exit with an error not an exception.
|
|\
| |
| |
| |
| |
| |
| | |
Reviewed by:
Sam Thursfield
Richard Maw
Lars Wirzenius
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
The contents of the message has changed for several events,
event messages that need to be sent to several initiators have a list
of ids instead of a single id.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are two new messages:
WorkerBuildStepAlreadyStarted tells the initiator that the artifact
they want to build is already being built, e.g.
'eglibc-misc is already building on 172.17.1.37:3434'
WorkerBuildWaiting tells the initiator that the artifact they want
to build can't be built yet because there aren't any workers free, e.g.
'Ready to build eglibc-misc: waiting for a worker to become available'
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Put our _exec_response_msg into WorkerBuildFinished event,
it's essentially the same as _finished_msg, just a different name
Get our artifact's cache key from the job
|
| |
| |
| |
| | |
Now we just get everything from the job object
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The exec_response_msg also needs to be sent to a number of initiators,
so we give it a list of ids not just one.
The exec_response_msg will be sent to the controller once the artifacts
have been cached successfully.
There's no longer any need to use a route map to retrieve
the id of the initiator, since this is stored with the job
|
| |
| |
| |
| |
| | |
msg now contains a list of initiator ids rather than a single one,
since BuiltOutput needs to be sent to a number of initiators
|
| |
| |
| |
| |
| |
| | |
Each job is given a unique id, so we don't need to generate
an id for each exec request this means we can remove use of route map
since we can use the job's id for the exec request
|
| |
| |
| |
| | |
This method no longer works, we will replace it soon.
|
| |
| |
| |
| |
| | |
The name change from BuildFailed -> JobFailed etc
was unintentionally merged into master, undo this.
|
| |
| |
| |
| |
| |
| | |
_job is the job this worker is carrying out
_exec_response_msg will contain the response the worker sends back to us
when it finishes the build.
|
| | |
|
| | |
|
| |
| |
| |
| | |
We need to be able to send this message to a number of initiators
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
'origin/baserock/ps/fix-virtualbox-version-checking'
Reviewed-by: Richard Maw
Reviewed-by: Pedro Alvarez
|
| | | |
|
|/ /
| |
| |
| |
| | |
Reviewed-by: Pedro Alvarez
Rubber-stamped-by: Richard Maw
|
|\ \
| | |
| | |
| | |
| | | |
Reviewed-by: Lars Wirzenius
Reviewed-by: Daniel Silverstone
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Posix took away using length without ().
Reviewed-by: Richard Maw
Reviewed-by: Daniel Silverstone
|