summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-12-02Merge branch 'optimize-mass-download'HEADmasterMatthias Beyer
2021-12-02Merge branch 'container-create-with-sensible-name'Matthias Beyer
2021-12-02Merge branch 'misc'Matthias Beyer
2021-12-02Allow spinner_format in config, to be backwards compatibleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-12-02Fix: Increase bar length when adding downloadMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Fix: Add missing closing parenMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Introduce semaphore for max of 100 concurrent downloadsMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Optimize: Do not increase the download counter too soonMatthias Beyer
Because if the check fails, we don't have to do this work actually. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Optimize: Write bytes to disk and increase statusbar in parallelMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Fix: Do not finish download twiceMatthias Beyer
The calling function does this already. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Add doc for helper typeMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Outsource "source download" subcommand implMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Move source command implementation to submoduleMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Add progress wrapperMatthias Beyer
When creating only one progress bar for all downloads, we still want to know how many downloads are happening and the remaining number of bytes to be received. This patch implements a ProgressWrapper that synchronizes between the download tasks and the progress bar. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Remove multiple progress when downloadingMatthias Beyer
This patch removes the multiple progress bars when downloading packages, and instead moves to a single progress bar, because downloading (for example) 50 packages at once resulted in an unusable progress bar list. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Remove spinner support in progress bar helperMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Fix: Use already existing response type to get byte stream, instead of ↵Matthias Beyer
starting new GET request Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-23Build unique container name from job metadataMatthias Beyer
With this patch, the name of the running container is generated from the job metadata with a "butido-" prefix, so that containers on nodes can be identified (the auto-generated names from docker are funny, but help nobody). Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-19Fix error/info messages for binary nameMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-19Update Copyright string to 2020-2022Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-12Fix: Refer to CONTRIBUTING.md fileMatthias Beyer
Because linking does not work as expected. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-11-12Merge branch 'source-download-timeout' into nextMatthias Beyer
2021-11-12Merge branch 'job-failure-message-with-log-command-hint' into nextMatthias Beyer
2021-11-12Merge branch 'jobs-listing-without-ms' into nextMatthias Beyer
2021-11-12Merge branch 'simplify-no-repo-error-output' into nextMatthias Beyer
2021-11-11Simplify error message if butido is not executed from the package repositoryMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-11Format listed jobs timestamps without millisecondsMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-11Restructure error output for more screen real estateMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-11Add line which can be used to print the job log with butidoMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-11Add support for timeout in source download subcommandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-03Merge pull request #24 from dtolnay-contrib/fmtMatthias Beyer
Fix missing fmt argument in error message
2021-11-02Fix missing fmt argument in error messageDavid Tolnay
Without this, the error message would literally be "Running container {} failed" with curly braces in it instead of the container id. Signed-off-by: David Tolnay <dtolnay@gmail.com>
2021-10-19Ignore advisory from "ptree" dependenciesMatthias Beyer
Because we cannot release with "git" dependencies in Cargo.toml, we ignore the advisory for the v0.3.0 release. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit dbcc83ef292a282842ba30cefd70240fda8b0a55)
2021-10-19Revert "Replace "ptree" with maintenance fork"Matthias Beyer
This reverts commit a73b2d0d04fddbfe69e0872b6856b112ebec6d71. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit b20a799090c19b3c7a18dd276f96cd2a40ac0145)
2021-10-19Update version string to 0.3.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19Changelog for the v0.3.0 releaseMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> (cherry picked from commit 242bdf7c6ff0c530348d9d14c86d2c6a52c43228)
2021-10-19Remove unused fieldMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19cargo-deny: Ignore security advisories for nowMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19Replace "ptree" with maintenance forkMatthias Beyer
Because ptree 0.3.2 dependends on crates that have security advisories (down the dependency chain), we depend on a fork of ptree now, which updates these dependencies. We hope that this resolves the advisories for us. This patch shall be reverted as soon as ptree 0.4.0 (with updated dependencies) is published. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-10-19Merge branch 'release-late-error'Matthias Beyer
2021-10-12Rewrite to be more idomaticMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-10-12Late error reporting in release commandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-30Fix CLI about text for "source download" subcommandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-29Merge branch 'source-path-do-not-contain-hash'Matthias Beyer
2021-09-29Do not include source hash in source file nameMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-23Merge branch 'received-errors-fmt'Matthias Beyer
2021-09-23Add missing license headerMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-23Add helper for displaying maps of errorsMatthias Beyer
This patch adds a helper trait to display maps from UUID -> Error. It is just introduced for convenience and less code duplication, the speed of execution is not relevant at all in this case, as if this code is executed, we're already handling errors and aborting the execution anyways. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-23Merge branch 'github-community'Matthias Beyer
2021-09-23Merge branch 'github-actions'Matthias Beyer