mirror of
https://github.com/containers/podman.git
synced 2025-10-19 12:12:36 +08:00
[CI:DOCS] logformatter: handle python logs
We've got some python tests running in CI, and they're really hard to troubleshoot. This PR: 1) colorizes python unittest lines (ok / skipped / fail), and 2) links to source files The color is nice for skimming, but it's the linking that might make it much easier to diagnose future failures. (Context: failure today in test/python/docker/compat/test_images.py) Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -37,12 +37,15 @@ table.synopsis { border: none; border-collapse: collapse; margin-left: 2em; marg
|
||||
.synopsis td { font-weight: bold; font-size: 120%; font-family: monospace; }
|
||||
|
||||
/* test results */
|
||||
.testname { font-size: 125%; color: #444; }
|
||||
.boring { color: #999; }
|
||||
.timestamp { color: #999; }
|
||||
.log-debug { color: #999; }
|
||||
.log-info { color: #333; }
|
||||
.log-warn { color: #f60; }
|
||||
.log-error { color: #900; font-weight: bold; }
|
||||
.log-skip { color: #F90; }
|
||||
.log-slow { background: #FF0; color: #000; font-weight: bold; }
|
||||
.subtest { background: #eee; }
|
||||
.subsubtest { color: #F39; font-weight: bold; }
|
||||
.string { color: #00c; }
|
||||
@ -184,14 +187,6 @@ END_HTML
|
||||
print { $out_fh } "<h2>Synopsis</h2>\n<hr/>\n",
|
||||
job_synopsis($test_name), "<hr/>\n";
|
||||
|
||||
# FOR DEBUGGING: dump environment, but in HTML comments to not clutter
|
||||
print { $out_fh } "<!-- Environment: -->\n";
|
||||
for my $e (sort keys %ENV) {
|
||||
my $val = escapeHTML($ENV{$e});
|
||||
$val =~ s/--/--/g; # double dash not valid in comments
|
||||
printf { $out_fh } "<!-- %-20s %s -->\n", $e, $val;
|
||||
}
|
||||
|
||||
# State variables
|
||||
my $previous_timestamp = ''; # timestamp of previous line
|
||||
my $cirrus_task; # Cirrus task number, used for linking
|
||||
@ -201,15 +196,25 @@ END_HTML
|
||||
my $after_divider = 0; # Count of lines after seeing '-----'
|
||||
my $current_output; # for removing duplication
|
||||
my $looks_like_bats; # binary flag: for detecting BATS results
|
||||
my $looks_like_python; # " " " : for colorizing python tests
|
||||
my %bats_count; # For summary line: count of pass/fail/skip
|
||||
|
||||
# When running in cirrus, we have the commit SHA
|
||||
$git_commit = $ENV{CIRRUS_CHANGE_IN_REPO};
|
||||
|
||||
print { $out_fh } "<pre> <!-- begin processed output -->\n";
|
||||
|
||||
# Assume rootful prompt, check for rootless (here and in log itself, below)
|
||||
my $Prompt = '#';
|
||||
$Prompt = '$' if $test_name =~ /rootless/;
|
||||
|
||||
# Main loop: read input, one line at a time, and write out reformatted
|
||||
LINE:
|
||||
while (my $line = <STDIN>) {
|
||||
print $line; # Immediately dump back to stdout
|
||||
|
||||
$Prompt = '$' if $line =~ /Runner executing .* as rootless /;
|
||||
|
||||
# Remain robust in face of errors: always write stdout even if no HTML
|
||||
next LINE if ! $out_fh;
|
||||
|
||||
@ -236,6 +241,11 @@ END_HTML
|
||||
# 1 12 3 34 4 5 526 6
|
||||
$line =~ s{^(.*)(\/(containers\/[^/]+)(\/\S+):(\d+))(.*)$}
|
||||
{$1<a class="codelink" href='https://github.com/$3/blob/$git_commit$4#L$5'>$2</a>$6};
|
||||
|
||||
# Same, for python errors
|
||||
# 1 12 3 34 4 5 526
|
||||
$line =~ s{^(.*)(\/(containers\/[^/]+)(\/\S+\.py).*,\s+line\s+(\d+))(,\s+in.*)$}
|
||||
{$1<a class="codelink" href='https://github.com/$3/blob/$git_commit$4#L$5'>$2</a>$6};
|
||||
}
|
||||
|
||||
# Try to identify the cirrus task
|
||||
@ -247,13 +257,42 @@ END_HTML
|
||||
if ($line =~ /^1\.\.(\d+)$/) {
|
||||
$looks_like_bats = 1;
|
||||
$bats_count{expected_total} = $1;
|
||||
undef $looks_like_python;
|
||||
}
|
||||
# Since the number of tests can't always be predicted, recognize
|
||||
# some leading text strings that indicate BATS output to come.
|
||||
elsif ($line =~ /^TAP\s+version\s/ || $line =~ m!/test-apiv2!) {
|
||||
$looks_like_bats = 1;
|
||||
$bats_count{expected_total} = -1; # Expect to be overridden at end!
|
||||
undef $looks_like_python;
|
||||
}
|
||||
|
||||
# 'python -m unittest' means we're starting some pythony stuff
|
||||
elsif ($line =~ m!/python.*\sunittest\s!) {
|
||||
$looks_like_python = 1;
|
||||
undef $looks_like_bats;
|
||||
}
|
||||
elsif ($looks_like_python && $line =~ m!Ran\s+(\d+)\s+tests\s+in\s!) {
|
||||
# End of python tests. However, we're still likely to see a
|
||||
# summary line saying 'OK' or 'FAILED'. Deal with that by
|
||||
# resetting $looks_like_python to 0, which the next elsif catches
|
||||
$bats_count{expected_total} += $1;
|
||||
$looks_like_python = 0;
|
||||
print { $out_fh } "</div>\n" if $in_failure;
|
||||
undef $in_failure;
|
||||
}
|
||||
elsif (defined($looks_like_python) && !$looks_like_python) {
|
||||
# The final python summary line. Show it in its appropriate color.
|
||||
if ($line =~ /^\s*(OK|FAILED)\s+\(/) {
|
||||
undef $looks_like_python;
|
||||
my $css = ($1 eq 'OK' ? 'passed' : 'failed');
|
||||
print { $out_fh } "<span class=\"timestamp\">$timestamp</span>"
|
||||
if $timestamp;
|
||||
print { $out_fh } "<span class='bats-$css'>", $line, "</span>\n";
|
||||
next LINE;
|
||||
}
|
||||
}
|
||||
|
||||
if ($looks_like_bats) {
|
||||
my $css;
|
||||
|
||||
@ -283,6 +322,28 @@ END_HTML
|
||||
print { $out_fh } $line, "\n";
|
||||
next LINE;
|
||||
}
|
||||
elsif ($looks_like_python) {
|
||||
my $css;
|
||||
|
||||
if ($line =~ /\s\.\.\.\sskipped/) { $css = 'skipped' }
|
||||
elsif ($line =~ /\s\.\.\.\sok\s*$/) { $css = 'passed' }
|
||||
elsif ($line =~ /\s\.\.\.\sFAIL/) { $css = 'failed' }
|
||||
elsif ($line =~ /^\s*={40}/) {
|
||||
# Begins a block of multiple lines including a stack trace
|
||||
print { $out_fh } "<div class='log-error'>\n" unless $in_failure;
|
||||
$in_failure = 1;
|
||||
}
|
||||
|
||||
if ($css) {
|
||||
$line = "<span class='bats-$css'>$line</span>";
|
||||
|
||||
$bats_count{$css}++;
|
||||
}
|
||||
print { $out_fh } "<span class=\"timestamp\">$timestamp</span>"
|
||||
if $timestamp;
|
||||
print { $out_fh } $line, "\n";
|
||||
next LINE;
|
||||
}
|
||||
|
||||
# Timing section at the bottom of the page
|
||||
if ($line =~ / timing results\s*$/) {
|
||||
@ -328,11 +389,11 @@ END_HTML
|
||||
next LINE;
|
||||
}
|
||||
# (bindings test sometimes emits 'Running' with leading bullet char)
|
||||
elsif ($line =~ /^•?Running:/) {
|
||||
elsif ($line =~ s!^•?Running:!<span class="boring">$Prompt</span>!) {
|
||||
# Highlight the important (non-boilerplate) podman command.
|
||||
$line =~ s/\s+--remote\s+/ /g; # --remote takes no args
|
||||
# Strip out the global podman options, but show them on hover
|
||||
$line =~ s{(\S+\/podman(-remote)?)((\s+--(root|runroot|runtime|tmpdir|storage-opt|conmon|cgroup-manager|cni-config-dir|storage-driver|events-backend|url) \S+)*)(.*)}{
|
||||
$line =~ s{(\S+\/podman(-remote)?)((\s+--(root|runroot|runtime|tmpdir|storage-opt|conmon|cgroup-manager|network-config-dir|storage-driver|events-backend|url) \S+)*)(.*)}{
|
||||
my ($full_path, $remote, $options, $args) = ($1, $2||'', $3, $6);
|
||||
|
||||
$options =~ s/^\s+//;
|
||||
@ -365,19 +426,27 @@ END_HTML
|
||||
# an anchor so we can link to it later.
|
||||
if ($after_divider++ == 2) {
|
||||
# Sigh. There is no actual marker. Assume that anything with
|
||||
## two leading spaces then alpha (not slashes) is a test name.
|
||||
if ($line =~ /^ [a-zA-Z]/) {
|
||||
## two leading spaces then alpha or hyphen (not slashes) is
|
||||
## a test name.
|
||||
if ($line =~ /^ [a-zA-Z-]/) {
|
||||
my $id = make_id($line, 'anchor');
|
||||
|
||||
$line = "<a name='t--$id'><h2>$line</h2></a>";
|
||||
}
|
||||
}
|
||||
|
||||
# Make SKIPPING and SLOW TEST visible
|
||||
$line =~ s!(\[SKIPPING\].*)!<span class="log-skip">$1</span>!;
|
||||
$line =~ s!(\[SLOW TEST.*\])!<span class="log-slow">$1</span>!;
|
||||
|
||||
# Highlight test name when it appears in the middle of commands.
|
||||
# But make it boring, because we already have the test name in large
|
||||
# bold just above. (Except in skipped tests).
|
||||
$line =~ s!^(\s*)(\[It\]\s+.*)!$1<span class="testname">$2</span>!;
|
||||
|
||||
# Failure name corresponds to a previously-seen block.
|
||||
## FIXME: sometimes there are three failures with the same name.
|
||||
## ...I have no idea why or how to link to the right ones.
|
||||
# 1 2 2 3 3 14 4
|
||||
if ($line =~ /^(\[(Fail|Panic!)\] .* \[(It|BeforeEach)\] )([A-Za-z].*)/) {
|
||||
# 1 2 2 3 3 14 4
|
||||
if ($line =~ /^(\[(Fail|Panic!)\] .* \[(It|BeforeEach)\] )([A-Za-z-].*)/) {
|
||||
my ($lhs, $type, $ginkgo_fluff, $testname) = ($1, $2, $3, $4);
|
||||
my $id = make_id($testname, 'link');
|
||||
|
||||
@ -486,7 +555,10 @@ sub make_id {
|
||||
state %counter;
|
||||
|
||||
$name =~ s/^\s+|\s+$//g; # strip leading/trailing whitespace
|
||||
$name =~ s/\&#\d+;//g; # 'doesn't' -> 'doesnt'
|
||||
$name =~ s/\"/-/g; # '"path"' -> '-path-'
|
||||
$name =~ s/[^a-zA-Z0-9_-]/-/g; # Convert non-alphanumeric to dash
|
||||
$name =~ s/-{3,}/-/g; # '------' to just '-'
|
||||
|
||||
# Keep a running tally of how many times we've seen this identifier
|
||||
# for this given type! This lets us cross-match, in the bottom of
|
||||
|
@ -12,6 +12,9 @@ use FindBin;
|
||||
use File::Temp qw(tempdir);
|
||||
use Test::More;
|
||||
|
||||
# To test links to source files
|
||||
$ENV{CIRRUS_CHANGE_IN_REPO} = 'ceci-nest-pas-une-sha';
|
||||
|
||||
#
|
||||
# Read the test cases (see __END__ section below)
|
||||
#
|
||||
@ -122,21 +125,47 @@ $SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
|
||||
[+0103s] /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_restart_test.go:18
|
||||
[+0103s] [It] podman pod restart single empty pod
|
||||
[+0103s] /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_restart_test.go:41
|
||||
[+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --cni-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod create --infra=false --share
|
||||
[+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod create --infra=false --share
|
||||
[+0103s] 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
|
||||
[+0103s] output: 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
|
||||
[+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --cni-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod restart 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
|
||||
[+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod restart 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
|
||||
[+0103s] Error: no containers in pod 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89 have no dependencies, cannot start pod: no such container
|
||||
[+0103s] output:
|
||||
[+0103s] [AfterEach] Podman pod restart
|
||||
[+0103s] /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_restart_test.go:28
|
||||
[+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --cni-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod rm -fa
|
||||
[+0103s] Running: /var/tmp/go/src/github.com/containers/podman/bin/podman --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs pod rm -fa
|
||||
[+0103s] 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
|
||||
[+0104s] Running: /var/tmp/go/src/github.com/containers/libpod/bin/podman-remote --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --cni-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs --remote --url unix:/run/user/12345/podman-xyz.sock pod rm -fa
|
||||
[+0104s] Running: /var/tmp/go/src/github.com/containers/libpod/bin/podman-remote --storage-opt vfs.imagestore=/tmp/podman/imagecachedir --root /tmp/podman_test553496330/crio --runroot /tmp/podman_test553496330/crio-run --runtime /usr/bin/runc --conmon /usr/bin/conmon --network-config-dir /etc/cni/net.d --cgroup-manager systemd --tmpdir /tmp/podman_test553496330 --events-backend file --storage-driver vfs --remote --url unix:/run/user/12345/podman-xyz.sock pod rm -fa
|
||||
[+0104s] 4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89 again
|
||||
|
||||
|
||||
[+0107s] •
|
||||
[+0107s] ------------------------------
|
||||
[+0107s] podman system reset
|
||||
[+0523s] ------------------------------
|
||||
[+0523s] Podman play kube with build
|
||||
[+0523s] --build should override image in store
|
||||
[+0523s] /var/tmp/go/src/github.com/containers/podman/test/e2e/play_build_test.go:215
|
||||
|
||||
|
||||
[+0479s] •
|
||||
[+0479s] ------------------------------
|
||||
[+0479s] Podman pod rm
|
||||
[+0479s] podman pod rm -a doesn't remove a running container
|
||||
[+0479s] /var/tmp/go/src/github.com/containers/podman/test/e2e/pod_rm_test.go:119
|
||||
|
||||
|
||||
[+1405s] •
|
||||
[+1405s] ------------------------------
|
||||
[+1405s] Podman run entrypoint
|
||||
[+1405s] podman run entrypoint == [""]
|
||||
[+1405s] /var/tmp/go/src/github.com/containers/podman/test/e2e/run_entrypoint_test.go:47
|
||||
|
||||
[+0184s] S [SKIPPING] [3.086 seconds]
|
||||
[+1385s] S [SKIPPING] in Spec Setup (BeforeEach) [0.001 seconds]
|
||||
|
||||
[+1512s] Summarizing 6 Failures:
|
||||
[+1512s]
|
||||
[+1512s] [Fail] Podman play kube with build [It] --build should override image in store
|
||||
[+1512s] /var/tmp/go/src/github.com/containers/podman/test/e2e/play_build_test.go:259
|
||||
>>>
|
||||
$SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
|
||||
[08:26:19] START - All [+xxxx] lines that follow are relative to right now.
|
||||
@ -150,25 +179,25 @@ $SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
|
||||
<span class="timestamp"> </span> /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L41'>/containers/podman/test/e2e/pod_restart_test.go:41</a>
|
||||
<span class="timestamp"> </span>[BeforeEach] Podman pod restart
|
||||
<span class="timestamp"> </span> /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L18'>/containers/podman/test/e2e/pod_restart_test.go:18</a>
|
||||
<span class="timestamp"> </span>[It] podman pod restart single empty pod
|
||||
<span class="timestamp"> </span><span class="testname">[It] podman pod restart single empty pod</span>
|
||||
<span class="timestamp"> </span> /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L41'>/containers/podman/test/e2e/pod_restart_test.go:41</a>
|
||||
<span class="timestamp"> </span>Running: <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
<span class="timestamp"> </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
--root /tmp/podman_test553496330/crio
|
||||
--runroot /tmp/podman_test553496330/crio-run
|
||||
--runtime /usr/bin/runc
|
||||
--conmon /usr/bin/conmon
|
||||
--cni-config-dir /etc/cni/net.d
|
||||
--network-config-dir /etc/cni/net.d
|
||||
--cgroup-manager systemd
|
||||
--tmpdir /tmp/podman_test553496330
|
||||
--events-backend file
|
||||
--storage-driver vfs">[options]</span><b> pod create --infra=false --share</b>
|
||||
<span class="timestamp"> </span>4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
|
||||
<span class="timestamp"> </span>Running: <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
<span class="timestamp"> </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
--root /tmp/podman_test553496330/crio
|
||||
--runroot /tmp/podman_test553496330/crio-run
|
||||
--runtime /usr/bin/runc
|
||||
--conmon /usr/bin/conmon
|
||||
--cni-config-dir /etc/cni/net.d
|
||||
--network-config-dir /etc/cni/net.d
|
||||
--cgroup-manager systemd
|
||||
--tmpdir /tmp/podman_test553496330
|
||||
--events-backend file
|
||||
@ -177,24 +206,24 @@ $SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
|
||||
<span class="timestamp"> </span>output:
|
||||
<span class="timestamp"> </span>[AfterEach] Podman pod restart
|
||||
<span class="timestamp"> </span> /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_restart_test.go#L28'>/containers/podman/test/e2e/pod_restart_test.go:28</a>
|
||||
<span class="timestamp"> </span>Running: <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
<span class="timestamp"> </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/podman/bin/podman"><b>podman</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
--root /tmp/podman_test553496330/crio
|
||||
--runroot /tmp/podman_test553496330/crio-run
|
||||
--runtime /usr/bin/runc
|
||||
--conmon /usr/bin/conmon
|
||||
--cni-config-dir /etc/cni/net.d
|
||||
--network-config-dir /etc/cni/net.d
|
||||
--cgroup-manager systemd
|
||||
--tmpdir /tmp/podman_test553496330
|
||||
--events-backend file
|
||||
--storage-driver vfs">[options]</span><b> pod rm -fa</b>
|
||||
<span class="timestamp"> </span>4810be0cfbd42241e349dbe7d50fbc54405cd320a6637c65fd5323f34d64af89
|
||||
|
||||
<span class="timestamp">[+0104s] </span>Running: <span title="/var/tmp/go/src/github.com/containers/libpod/bin/podman-remote"><b>podman-remote</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
<span class="timestamp">[+0104s] </span><span class="boring">#</span> <span title="/var/tmp/go/src/github.com/containers/libpod/bin/podman-remote"><b>podman-remote</b></span> <span class="boring" title="--storage-opt vfs.imagestore=/tmp/podman/imagecachedir
|
||||
--root /tmp/podman_test553496330/crio
|
||||
--runroot /tmp/podman_test553496330/crio-run
|
||||
--runtime /usr/bin/runc
|
||||
--conmon /usr/bin/conmon
|
||||
--cni-config-dir /etc/cni/net.d
|
||||
--network-config-dir /etc/cni/net.d
|
||||
--cgroup-manager systemd
|
||||
--tmpdir /tmp/podman_test553496330
|
||||
--events-backend file
|
||||
@ -207,4 +236,179 @@ $SCRIPT_BASE/integration_test.sh |& ${TIMESTAMP}
|
||||
</pre>
|
||||
<hr />
|
||||
<pre>
|
||||
<span class="timestamp">[+0107s] </span>podman system reset
|
||||
<span class="timestamp">[+0523s] </span>Podman play kube with build
|
||||
<span class="timestamp"> </span><a name='t----build-should-override-image-in-store--1'><h2> --build should override image in store</h2></a>
|
||||
<span class="timestamp"> </span> /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/play_build_test.go#L215'>/containers/podman/test/e2e/play_build_test.go:215</a>
|
||||
|
||||
|
||||
<span class="timestamp">[+0479s] </span>•
|
||||
</pre>
|
||||
<hr />
|
||||
<pre>
|
||||
<span class="timestamp">[+0479s] </span>Podman pod rm
|
||||
<span class="timestamp"> </span><a name='t--podman-pod-rm--a-doesnt-remove-a-running-container--1'><h2> podman pod rm -a doesn't remove a running container</h2></a>
|
||||
<span class="timestamp"> </span> /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/pod_rm_test.go#L119'>/containers/podman/test/e2e/pod_rm_test.go:119</a>
|
||||
|
||||
|
||||
<span class="timestamp">[+1405s] </span>•
|
||||
</pre>
|
||||
<hr />
|
||||
<pre>
|
||||
<span class="timestamp">[+1405s] </span>Podman run entrypoint
|
||||
<span class="timestamp"> </span><a name='t--podman-run-entrypoint---1'><h2> podman run entrypoint == [""]</h2></a>
|
||||
<span class="timestamp"> </span> /var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/run_entrypoint_test.go#L47'>/containers/podman/test/e2e/run_entrypoint_test.go:47</a>
|
||||
|
||||
|
||||
<span class="timestamp">[+0184s] </span>S <span class="log-skip">[SKIPPING] [3.086 seconds]</span>
|
||||
<span class="timestamp">[+1385s] </span>S <span class="log-skip">[SKIPPING] in Spec Setup (BeforeEach) [0.001 seconds]</span>
|
||||
|
||||
|
||||
<span class="timestamp">[+1512s] </span>Summarizing 6 Failures:
|
||||
[+1512s]
|
||||
<span class="timestamp"> </span><b>[Fail] Podman play kube with build [It] <a href='#t----build-should-override-image-in-store--1'>--build should override image in store</a></b>
|
||||
<span class="timestamp"> </span>/var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/40f5d8b1becd381c4e8283ed3940d09193e4fe06/test/e2e/play_build_test.go#L259'>/containers/podman/test/e2e/play_build_test.go:259</a>
|
||||
|
||||
|
||||
== simple python
|
||||
|
||||
<<<
|
||||
[+0234s] env CONTAINERS_CONF=/var/tmp/go/src/github.com/containers/podman/test/apiv2/containers.conf PODMAN=./bin/podman /usr/bin/python3 -m unittest discover -v ./test/python/docker
|
||||
[+0238s] test_copy_to_container (compat.test_containers.TestContainers) ... /usr/lib/python3.10/site-packages/docker/utils/utils.py:269: DeprecationWarning: urllib.parse.splitnport() is deprecated as of 3.8, use urllib.parse.urlparse() instead
|
||||
[+0238s] host, port = splitnport(parsed_url.netloc)
|
||||
[+0241s] ok
|
||||
[+0243s] test_create_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0244s] test_create_network (compat.test_containers.TestContainers) ... ok
|
||||
[+0245s] test_filters (compat.test_containers.TestContainers) ... skipped 'TODO Endpoint does not yet support filters'
|
||||
[+0246s] test_kill_container (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/threading.py:372: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55054), raddr=('127.0.0.1', 8080)>
|
||||
[+0246s] waiters_to_notify = _deque(_islice(all_waiters, n))
|
||||
[+0246s] ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
||||
[+0247s] ok
|
||||
[+0248s] test_list_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0252s] test_mount_preexisting_dir (compat.test_containers.TestContainers) ... ok
|
||||
[+0253s] test_mount_rw_by_default (compat.test_containers.TestContainers) ... ok
|
||||
[+0257s] test_non_existant_workdir (compat.test_containers.TestContainers) ... ok
|
||||
[+0258s] test_pause_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0260s] test_pause_stopped_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0261s] test_remove_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0262s] test_remove_container_without_force (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55068), raddr=('127.0.0.1', 8080)>
|
||||
[+0262s] for ateof in reversed(self._eofstack):
|
||||
[+0262s] ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
||||
[+0262s] /usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55074), raddr=('127.0.0.1', 8080)>
|
||||
[+0262s] for ateof in reversed(self._eofstack):
|
||||
[+0262s] ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
||||
[+0262s] ok
|
||||
[+0264s] test_restart_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0265s] test_start_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0267s] test_start_container_with_random_port_bind (compat.test_containers.TestContainers) ... ok
|
||||
[+0268s] test_stop_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0269s] test_unpause_container (compat.test_containers.TestContainers) ... ok
|
||||
[+0273s] test_build_image (compat.test_images.TestImages) ... ok
|
||||
[+0273s] test_get_image_exists_not (compat.test_images.TestImages)
|
||||
[+0274s] Negative test for get image ... ok
|
||||
[+0274s] test_image_history (compat.test_images.TestImages)
|
||||
[+0274s] Image history ... ok
|
||||
[+0274s] test_list_images (compat.test_images.TestImages)
|
||||
[+0276s] List images ... ok
|
||||
[+0276s] test_load_corrupt_image (compat.test_images.TestImages)
|
||||
[+0277s] Import|Load Image failure ... ok
|
||||
[+0277s] test_load_image (compat.test_images.TestImages)
|
||||
[+0279s] Import|Load Image ... ok
|
||||
[+0279s] test_remove_image (compat.test_images.TestImages)
|
||||
[+0280s] Remove image ... ok
|
||||
[+0280s] test_retag_valid_image (compat.test_images.TestImages)
|
||||
[+0280s] Validates if name updates when the image is retagged ... ok
|
||||
[+0280s] test_save_image (compat.test_images.TestImages)
|
||||
[+0282s] Export Image ... ok
|
||||
[+0282s] test_search_bogus_image (compat.test_images.TestImages)
|
||||
[+0290s] Search for bogus image should throw exception ... ok
|
||||
[+0290s] test_search_image (compat.test_images.TestImages)
|
||||
[+0291s] Search for image ... FAIL
|
||||
[+0291s] test_tag_valid_image (compat.test_images.TestImages)
|
||||
[+0292s] Validates if the image is tagged successfully ... ok
|
||||
[+0296s] test_Info (compat.test_system.TestSystem) ... ok
|
||||
[+0298s] test_info_container_details (compat.test_system.TestSystem) ... ok
|
||||
[+0299s] test_version (compat.test_system.TestSystem) ... ok
|
||||
[+0299s] ======================================================================
|
||||
[+0299s] FAIL: test_search_image (compat.test_images.TestImages)
|
||||
[+0299s] Search for image
|
||||
[+0299s] ----------------------------------------------------------------------
|
||||
[+0299s] Traceback (most recent call last):
|
||||
[+0299s] File "/var/tmp/go/src/github.com/containers/podman/test/python/docker/compat/test_images.py", line 90, in test_search_image
|
||||
[+0299s] self.assertIn("alpine", r["Name"])
|
||||
[+0299s] AssertionError: 'alpine' not found in 'docker.io/docker/desktop-kubernetes'
|
||||
[+0299s] ----------------------------------------------------------------------
|
||||
[+0299s] Ran 33 tests in 63.138s
|
||||
[+0299s] FAILED (failures=1, skipped=1)
|
||||
[+0299s] make: *** [Makefile:616: localapiv2] Error 1
|
||||
>>>
|
||||
<span class="timestamp">[+0234s] </span>env CONTAINERS_CONF=/var/tmp/go/src/github.com/containers/podman/test/apiv2/containers.conf PODMAN=./bin/podman /usr/bin/python3 -m unittest discover -v ./test/python/docker
|
||||
<span class="timestamp">[+0238s] </span>test_copy_to_container (compat.test_containers.TestContainers) ... /usr/lib/python3.10/site-packages/docker/utils/utils.py:269: DeprecationWarning: urllib.parse.splitnport() is deprecated as of 3.8, use urllib.parse.urlparse() instead
|
||||
<span class="timestamp"> </span> host, port = splitnport(parsed_url.netloc)
|
||||
<span class="timestamp">[+0241s] </span>ok
|
||||
<span class="timestamp">[+0243s] </span><span class='bats-passed'>test_create_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0244s] </span><span class='bats-passed'>test_create_network (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0245s] </span><span class='bats-skipped'>test_filters (compat.test_containers.TestContainers) ... skipped 'TODO Endpoint does not yet support filters'</span>
|
||||
<span class="timestamp">[+0246s] </span>test_kill_container (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/threading.py:372: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55054), raddr=('127.0.0.1', 8080)>
|
||||
<span class="timestamp"> </span> waiters_to_notify = _deque(_islice(all_waiters, n))
|
||||
<span class="timestamp"> </span>ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
||||
<span class="timestamp">[+0247s] </span>ok
|
||||
<span class="timestamp">[+0248s] </span><span class='bats-passed'>test_list_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0252s] </span><span class='bats-passed'>test_mount_preexisting_dir (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0253s] </span><span class='bats-passed'>test_mount_rw_by_default (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0257s] </span><span class='bats-passed'>test_non_existant_workdir (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0258s] </span><span class='bats-passed'>test_pause_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0260s] </span><span class='bats-passed'>test_pause_stopped_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0261s] </span><span class='bats-passed'>test_remove_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0262s] </span>test_remove_container_without_force (compat.test_containers.TestContainers) ... /usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed <socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55068), raddr=('127.0.0.1', 8080)>
|
||||
<span class="timestamp"> </span> for ateof in reversed(self._eofstack):
|
||||
<span class="timestamp"> </span>ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
||||
<span class="timestamp"> </span>/usr/lib64/python3.10/email/feedparser.py:89: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1', 55074), raddr=('127.0.0.1', 8080)>
|
||||
<span class="timestamp"> </span> for ateof in reversed(self._eofstack):
|
||||
<span class="timestamp"> </span>ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
||||
<span class="timestamp"> </span>ok
|
||||
<span class="timestamp">[+0264s] </span><span class='bats-passed'>test_restart_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0265s] </span><span class='bats-passed'>test_start_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0267s] </span><span class='bats-passed'>test_start_container_with_random_port_bind (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0268s] </span><span class='bats-passed'>test_stop_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0269s] </span><span class='bats-passed'>test_unpause_container (compat.test_containers.TestContainers) ... ok</span>
|
||||
<span class="timestamp">[+0273s] </span><span class='bats-passed'>test_build_image (compat.test_images.TestImages) ... ok</span>
|
||||
<span class="timestamp"> </span>test_get_image_exists_not (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0274s] </span><span class='bats-passed'>Negative test for get image ... ok</span>
|
||||
<span class="timestamp"> </span>test_image_history (compat.test_images.TestImages)
|
||||
<span class="timestamp"> </span><span class='bats-passed'>Image history ... ok</span>
|
||||
<span class="timestamp"> </span>test_list_images (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0276s] </span><span class='bats-passed'>List images ... ok</span>
|
||||
<span class="timestamp"> </span>test_load_corrupt_image (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0277s] </span><span class='bats-passed'>Import|Load Image failure ... ok</span>
|
||||
<span class="timestamp"> </span>test_load_image (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0279s] </span><span class='bats-passed'>Import|Load Image ... ok</span>
|
||||
<span class="timestamp"> </span>test_remove_image (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0280s] </span><span class='bats-passed'>Remove image ... ok</span>
|
||||
<span class="timestamp"> </span>test_retag_valid_image (compat.test_images.TestImages)
|
||||
<span class="timestamp"> </span><span class='bats-passed'>Validates if name updates when the image is retagged ... ok</span>
|
||||
<span class="timestamp"> </span>test_save_image (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0282s] </span><span class='bats-passed'>Export Image ... ok</span>
|
||||
<span class="timestamp"> </span>test_search_bogus_image (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0290s] </span><span class='bats-passed'>Search for bogus image should throw exception ... ok</span>
|
||||
<span class="timestamp"> </span>test_search_image (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0291s] </span><span class='bats-failed'>Search for image ... FAIL</span>
|
||||
<span class="timestamp"> </span>test_tag_valid_image (compat.test_images.TestImages)
|
||||
<span class="timestamp">[+0292s] </span><span class='bats-passed'>Validates if the image is tagged successfully ... ok</span>
|
||||
<span class="timestamp">[+0296s] </span><span class='bats-passed'>test_Info (compat.test_system.TestSystem) ... ok</span>
|
||||
<span class="timestamp">[+0298s] </span><span class='bats-passed'>test_info_container_details (compat.test_system.TestSystem) ... ok</span>
|
||||
<span class="timestamp">[+0299s] </span><span class='bats-passed'>test_version (compat.test_system.TestSystem) ... ok</span>
|
||||
<div class='log-error'>
|
||||
<span class="timestamp"> </span>======================================================================
|
||||
<span class="timestamp"> </span>FAIL: test_search_image (compat.test_images.TestImages)
|
||||
<span class="timestamp"> </span>Search for image
|
||||
<span class="timestamp"> </span>----------------------------------------------------------------------
|
||||
<span class="timestamp"> </span>Traceback (most recent call last):
|
||||
<span class="timestamp"> </span> File "/var/tmp/go/src/github.com<a class="codelink" href='https://github.com/containers/podman/blob/ceci-nest-pas-une-sha/test/python/docker/compat/test_images.py#L90'>/containers/podman/test/python/docker/compat/test_images.py", line 90</a>, in test_search_image
|
||||
<span class="timestamp"> </span> self.assertIn("alpine", r["Name"])
|
||||
<span class="timestamp"> </span>AssertionError: 'alpine' not found in 'docker.io/docker/desktop-kubernetes'
|
||||
<span class="timestamp"> </span>----------------------------------------------------------------------
|
||||
</div>
|
||||
<span class="timestamp"> </span>Ran 33 tests in 63.138s
|
||||
<span class="timestamp"> </span><span class='bats-failed'>FAILED (failures=1, skipped=1)</span>
|
||||
<span class="timestamp"> </span>make: *** [Makefile:616: localapiv2] Error 1
|
||||
<hr/><span class='bats-summary'>Summary: <span class='bats-passed'>28 Passed</span>, <span class='bats-failed'>1 Failed</span>, <span class='bats-skipped'>1 Skipped</span>. Total tests: 30 <span class='bats-failed'>(WARNING: expected 33)</span></span>
|
||||
|
Reference in New Issue
Block a user