Skip to content

Instantly share code, notes, and snippets.

CRITICAL:root:WARNING! Test test_brb (__main__.TestBPFSocket) failed, but marked as passed because it is decorated with @mayFail.
CRITICAL:root: The reason why this mayFail was: If the 'iperf', 'netserver' and 'netperf' binaries are unavailable, this is allowed to fail.
CRITICAL:root: The failure was: "iperf: command not found"
CRITICAL:root: Stacktrace: "Traceback (most recent call last):
File "/bcc/tests/python/utils.py", line 36, in wrapper
res = func(*args, **kwargs)
File "/bcc/tests/python/test_brb.py", line 201, in test_brb
nsp_server = NSPopenWithCheck(ns2_ipdb.nl.netns, ["iperf", "-s", "-xSC"])
File "/bcc/tests/python/utils.py", line 64, in __init__
has_executable(name)
Running tests...
UpdateCTestConfiguration from :/bcc/build/DartConfiguration.tcl
UpdateCTestConfiguration from :/bcc/build/DartConfiguration.tcl
Test project /bcc/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
CRITICAL:root:WARNING! Test test_brb (__main__.TestBPFSocket) failed, but marked as passed because it is decorated with @mayFail.
CRITICAL:root: The reason why this mayFail was: If the 'iperf', 'netserver' and 'netperf' binaries are unavailable, this is allowed to fail.
CRITICAL:root: The failure was: "iperf: command not found"
CRITICAL:root: Stacktrace: "Traceback (most recent call last):
File "/bcc/tests/python/utils.py", line 36, in wrapper
res = func(*args, **kwargs)
File "/bcc/tests/python/test_brb.py", line 201, in test_brb
nsp_server = NSPopenWithCheck(ns2_ipdb.nl.netns, ["iperf", "-s", "-xSC"])
File "/bcc/tests/python/utils.py", line 64, in __init__
has_executable(name)
@chantra
chantra / gist:2860e9812f00eaa0758ccdb5d3192689
Created August 29, 2022 16:21
test_percpu.py success on Fedora 36
$ docker run -ti \
--privileged \
--network=host \
--pid=host \
-v $(pwd):/bcc \
-v /sys/kernel/debug:/sys/kernel/debug:rw \
-v /lib/modules:/lib/modules:ro \
-v /usr/src:/usr/src:ro \
-e CTEST_OUTPUT_ON_FAILURE=1 \
bcc-docker-f36 \
@chantra
chantra / gist:d37f3daa969bdbc07862dc11f8384a38
Created August 29, 2022 15:59
test_percpu.py failure on Fedora 36
$ docker run -ti \
--privileged \
--network=host \
--pid=host \
-v $(pwd):/bcc \
-v /sys/kernel/debug:/sys/kernel/debug:rw \
-v /lib/modules:/lib/modules:ro \
-v /usr/src:/usr/src:ro \
-e CTEST_OUTPUT_ON_FAILURE=1 \
bcc-docker-f36 \
$ diff -ruN <(~/dump-rpm-headers.py mdatp_100.87.66.x86_64.rpm) <(~/dump-rpm-headers.py mdatp_100.87.66.x86_64.rpm.extended)
--- /proc/self/fd/11 2022-08-09 12:17:46.794507617 -0700
+++ /proc/self/fd/12 2022-08-09 12:17:46.795507625 -0700
@@ -15,7 +15,7 @@
nindex: 9
hsize: 4852
==== Signature Section - Index Entries ====
-[ 0] tag: 62 type: BIN offset:4836 count: 16 # RPMTAG_HEADERSIGNATURES
+[ 0] tag: 62 type: BIN offset: 703 count: 16 # RPMTAG_HEADERSIGNATURES
[ 1] tag: 268 type: BIN offset: 0 count: 287 # RPMSIGTAG_RSA
#! /usr/bin/env python3
import struct
from ctypes import *
import io
import re
from enum import Enum
from sys import argv
#ifdef EXTNEDED_FIELDS
#undef EXTNEDED_FIELDS
#endif
#include <uapi/linux/ptrace.h>
#include <linux/sched.h>
#include <linux/mmzone.h>
#include <linux/compaction.h>
$ docker history ci_fedora-34
ID CREATED CREATED BY SIZE COMMENT
acd9872a1298 46 minutes ago RUN /bin/sh -c ruby-install --system ruby ... 156 MB buildkit.dockerfile.v0
<missing> 51 minutes ago RUN /bin/sh -c wget -O ruby-install-0.7.0.... 79.9 kB buildkit.dockerfile.v0
<missing> 51 minutes ago RUN /bin/sh -c pip3 install pyroute2==0.5.... 14.4 MB buildkit.dockerfile.v0
<missing> 51 minutes ago RUN /bin/sh -c dnf -y install procps ipu... 52.6 MB buildkit.dockerfile.v0
<missing> 51 minutes ago RUN /bin/sh -c if [[ ! -e /usr/bin/python ... 1.02 kB buildkit.dockerfile.v0
<missing> 51 minutes ago RUN /bin/sh -c dnf -y install python3 py... 374 kB buildkit.dockerfile.v0
<missing> 51 minutes ago RUN /bin/sh -c dnf -y install bison cmak... 1.44 GB buildkit.dockerfile.v0
<missing> 51 minutes ago MAINTAINE
$ docker history ci_fedora-34
ID CREATED CREATED BY SIZE COMMENT
b3ba0f13984e 3 hours ago RUN /bin/sh -c ruby-install --system ruby ... 585 MB buildkit.dockerfile.v0
<missing> 3 hours ago RUN /bin/sh -c wget -O ruby-install-0.7.0.... 281 kB buildkit.dockerfile.v0
<missing> 3 hours ago RUN /bin/sh -c pip3 install pyroute2==0.5.... 14.4 MB buildkit.dockerfile.v0
<missing> 3 hours ago RUN /bin/sh -c dnf -y install procps ipu... 52.6 MB buildkit.dockerfile.v0
<missing> 3 hours ago RUN /bin/sh -c if [[ ! -e /usr/bin/python ... 1.02 kB buildkit.dockerfile.v0
<missing> 3 hours ago RUN /bin/sh -c dnf -y install python3 py... 376 kB buildkit.dockerfile.v0
<missing> 3 hours ago RUN /bin/sh -c dnf -y install bison cmak... 1.44 GB buildkit.dockerfile.v0
<missing> 3 hours ago MAINTAINER