Commit b7e3e6e9 authored by Antonio Terceiro's avatar Antonio Terceiro

display suite and architecture together with package names

parent e5d4e712
[_] multi-architecture support
[_] debci-collector: display architecture and suite in "results received" log messages
[_] debci batch: display architecture and suite in "requested/skip" log messages
[X] debci-collector: display architecture and suite in "results received" log messages
[X] debci batch: display architecture and suite in "requested/skip" log messages
[_] add status page for architecture-specific failures
: i.e. a package fails in some architectures and passes on others
[_] qemu support
......
......@@ -23,12 +23,14 @@ write_results() {
local exitcode_file=$(tar xzfv - -C "$debci_data_basedir" | grep 'exitcode$')
local duration_file=${exitcode_file%%/exitcode}/duration
local package=$(basename $(dirname $(dirname $exitcode_file)))
local arch=$(basename $(dirname $(dirname $(dirname $(dirname $exitcode_file)))))
local suite=$(basename $(dirname $(dirname $(dirname $(dirname $(dirname $exitcode_file))))))
local exitcode="$(cat $debci_data_basedir/$exitcode_file)"
local duration="$(cat $debci_data_basedir/$duration_file)"
local duration_human="$(seconds_to_human_time "$duration")"
log "$package results received (exit code: $exitcode, duration: $duration_human)"
log "$package $suite/$arch results received (exit code: $exitcode, duration: $duration_human)"
date > "${debci_autopkgtest_incoming_dir}/.timestamp"
}
......
......@@ -27,7 +27,7 @@ tags=''
do_request() {
read pkg specs || true # we expect EOF and thus read to fail
log "$pkg started"
log "$pkg $debci_suite/$debci_arch started"
local tmp_dir=$(mktemp -d)
......
......@@ -6,6 +6,8 @@ debci (1.1.3) UNRELEASED; urgency=medium
* backends/lxc/test-package: use adt-virt-lxc --name option to facilitate
mapping from a running test to package names. This requires autopkgtest
(>= 3.20).
* bin/debci-collector, bin/debci-worker, lib/functions.sh#report_status:
display suite and architecture together with package names
[ Jakub Wilk ]
* public/style.css: Set correct font for alert, chart, rss, and tracker
......
......@@ -113,9 +113,9 @@ report_status() {
color=5 # should never get here though
;;
esac
log "${pkg} \033[38;5;${color}m${status}\033[m" "$duration"
log "${pkg} ${debci_suite}/${debci_arch} \033[38;5;${color}m${status}\033[m" "$duration"
else
log "$pkg" "$status" "$duration"
log "$pkg ${debci_suite}/${debci_arch}" "$status" "$duration"
fi >&2
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment