Skip to content

Instantly share code, notes, and snippets.

>>> auth = Auth.AppAuth(GH_APP_ID, sec).get_installation_auth(GH_INST_ID)
>>> g = Github(auth=auth)
>>> g.get_app()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/chantra/devel/PyGithub/github/MainClass.py", line 811, in get_app
headers, data = self.__requester.requestJsonAndCheck("GET", "/app")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chantra/devel/PyGithub/github/Requester.py", line 364, in requestJsonAndCheck
98.94% [kernel] [k] enabled_wait
0.05% [kernel] [k] ptep_xchg_direct
0.04% [kernel] [k] __softirqentry_text_start
0.04% libc-2.31.so [.] pthread_attr_setschedparam
0.03% libc-2.31.so [.] _IO_default_xsputn
0.03% libc-2.31.so [.] vscanf
0.02% perf [.] deliver_event
0.02% perf [.] ordered_events__queue
0.02% [kernel] [k] finish_task_switch
0.02% dockerd [.] runtime.greyobject
root@bpf-ci-runner-s390x-7:~# virt-host-validate
QEMU: Checking for hardware virtualization : PASS
QEMU: Checking if device /dev/kvm exists : PASS
QEMU: Checking if device /dev/kvm is accessible : PASS
QEMU: Checking if device /dev/vhost-net exists : PASS
QEMU: Checking if device /dev/net/tun exists : PASS
QEMU: Checking for cgroup 'cpu' controller support : PASS
QEMU: Checking for cgroup 'cpuacct' controller support : PASS
QEMU: Checking for cgroup 'cpuset' controller support : PASS
QEMU: Checking for cgroup 'memory' controller support : PASS
linux1@bpf-ci-runner-s390x-7:~/bpf-next/tools/testing/selftests/bpf$ sudo ./test_maps | ts
Apr 24 18:51:44 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:45 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:45 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:46 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:46 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:47 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:47 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:48 Fork 100 tasks to 'test_update_delete'
Apr 24 18:51:48 Fork 100 tasks to 'test_update_delete'
$ qemu-system-s390x -nodefaults --no-reboot -nographic -chardev stdio,id=char0,mux=on,signal=off,logfile=boot.log -serial chardev:char0 -cpu max -enable-kvm -smp 4 -m 8G -drive file="$IMG",format=raw,index=1,media=disk,if=virtio,cache=none -kernel "$VMLINUZ" -fsdev local,id=fsdev0,path=selftests/bpf,security_model=passthrough -append "root=/dev/vda rw console=ttyS1 panic=-1 sysctl.vm.panic_on_oom=1 single"
Linux version 6.3.0-rc6-g3cff3ac0b7d1-dirty (root@344b8404324b) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #54 SMP Fri Apr 21 18:48:46 UTC 2023
setup: Linux is running under KVM in 64-bit mode
setup: The maximum memory size is 8192MB
setup: Relocating AMODE31 section of size 0x00003000
cpu: 4 configured CPUs, 0 standby CPUs
Write protected kernel read-only data: 22692k
Zone ranges:
DMA [mem 0x0000000000000000-0x000000007fffffff]
Normal [mem 0x0000000080000000-0x00000001ffffffff]
$ qemu-system-s390x -nodefaults --no-reboot -nographic -chardev stdio,id=char0,mux=on,signal=off,logfile=boot.log -serial chardev:char0 -cpu max -enable-kvm -smp 4 -m 8G -drive file="$IMG",format=raw,index=1,media=disk,if=virtio,cache=none -kernel "$VMLINUZ" -fsdev local,id=fsdev0,path=selftests/bpf,security_model=passthrough -append "root=/dev/vda rw console=ttyS1 panic=-1 sysctl.vm.panic_on_oom=1 single"
Linux version 6.3.0-rc6-g3cff3ac0b7d1-dirty (root@344b8404324b) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #54 SMP Fri Apr 21 18:48:46 UTC 2023
setup: Linux is running under KVM in 64-bit mode
setup: The maximum memory size is 8192MB
setup: Relocating AMODE31 section of size 0x00003000
cpu: 4 configured CPUs, 0 standby CPUs
Write protected kernel read-only data: 22692k
Zone ranges:
DMA [mem 0x0000000000000000-0x000000007fffffff]
Normal [mem 0x0000000080000000-0x00000001ffffffff]
$ sudo qemu-system-s390x -machine accel=kvm:tcg -nodefaults --no-reboot -nographic -chardev stdio,id=char0,mux=on,signal=off,logfile=boot.log -serial chardev:char0 -cpu max -enable-kvm -smp 8 -m 8G -drive file="$IMG",format=raw,index=1,media=disk,if=virtio,cache=none -kernel "$VMLINUZ" -fsdev local,id=fsdev0,path=selftests/bpf,security_model=passthrough -append "root=/dev/vda rw console=ttyS1 panic=-1 sysctl.vm.panic_on_oom=1 single"
Linux version 6.3.0-rc6-g3cff3ac0b7d1-dirty (root@344b8404324b) (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #54 SMP Fri Apr 21 18:48:46 UTC 2023
setup: Linux is running under KVM in 64-bit mode
setup: The maximum memory size is 8192MB
setup: Relocating AMODE31 section of size 0x00003000
cpu: 8 configured CPUs, 0 standby CPUs
Write protected kernel read-only data: 22692k
Zone ranges:
DMA [mem 0x0000000000000000-0x000000007fffffff]
Normal [mem 0x0000000080000000-0x00000001ffffffff]
$ python3 run-qemu/print_test_summary.py -j run-qemu/fixtures/test_progs.json -s /dev/stderr 2> /dev/null | head -n 20
::notice::Success: 29/23, Skipped: 3, Failed: 28
::error::#10 bpf_cookie
::group::
test_bpf_cookie:PASS:skel_open 0 nsec
::endgroup::
::error::#10/2 bpf_cookie/multi_kprobe_link_api
::group::
kprobe_multi_link_api_subtest:PASS:load_kallsyms 0 nsec
$ GITHUB_OUTPUT=/dev/stdout ./scripts/get_test_matrix.py -o kernel-patches -r kernel-patches/bpf-rc | grep s390x
$ GITHUB_OUTPUT=/dev/stdout ./scripts/get_test_matrix.py -o kernel-patches -r kernel-patches/bpf | grep s390x
build_matrix={"include": [{"kernel": "LATEST", "runs_on": ["self-hosted", "x86_64"], "arch": "x86_64", "toolchain": "gcc", "llvm-version": "16", "toolchain_full": "gcc"}, {"kernel": "LATEST", "runs_on": ["self-hosted", "x86_64"], "arch": "x86_64", "toolchain": "llvm", "llvm-version": "16", "toolchain_full": "llvm-16"}, {"kernel": "LATEST", "runs_on": ["self-hosted", "aarch64"], "arch": "aarch64", "toolchain": "gcc", "llvm-version": "16", "toolchain_full": "gcc"}, {"kernel": "LATEST", "runs_on": ["self-hosted", "aarch64"], "arch": "aarch64", "toolchain": "llvm", "llvm-version": "16", "toolchain_full": "llvm-16"}, {"kernel": "LATEST", "runs_on": ["self-hosted", "s390x"], "arch": "s390x", "toolchain": "gcc", "llvm-version": "16", "parallel_tests": false, "toolchain_full": "gcc"}]}
test_matrix
>>> g = Github(app_auth=aa)
>>> a=g.get_app()
>>> a.created_at
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/chantra/.local/lib/python3.11/site-packages/github/GithubApp.py", line 40, in created_at
self._completeIfNotSet(self._created_at)
File "/home/chantra/.local/lib/python3.11/site-packages/github/GithubObject.py", line 297, in _completeIfNotSet
self._completeIfNeeded()
File "/home/chantra/.local/lib/python3.11/site-packages/github/GithubObject.py", line 301, in _completeIfNeeded