Skip to content

Instantly share code, notes, and snippets.

@junaruga
junaruga / tmt_run_report_044.log
Created October 9, 2024 09:34
tmt run report 044
$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide tests -n '^/systemtap-static-probes-in-ruby$'
/var/tmp/tmt/run-044
...
$ tmt run --id run-044 report -vvv >& tmt_run_report_044.log
$ cat tmt_run_report_044.log
/var/tmp/tmt/run-044
/plans/all
@junaruga
junaruga / tmt_run_report_virtua_run_014l.log
Last active September 25, 2024 10:44
tmt run report virtual run-014
$ tmt -c distro=fedora-rawhide run --all provision -h virtual -i fedora-rawhide plans --default
/var/tmp/tmt/run-014
/default/plan
discover
how: fmf
directory: /home/jaruga/var/pkg/fed/tests/ruby
summary: 3 tests selected
provision
queued provision.provision task #1: default-0
@junaruga
junaruga / tmt_run_report_container.log
Created September 23, 2024 15:47
tmt run report with container
$ tmt -c distro=fedora-rawhide run --all provision -h container -i fedora:rawhide plans --default
$ tmt run --last report -vvv plans --default >& tmt_run_report_container.log
$ cat tmt_run_report_container.log
/var/tmp/tmt/run-012
/default/plan
report
how: display
@junaruga
junaruga / fedora_annocheck.log
Last active July 19, 2024 12:41
fedora annocheck ruby-3.3.4-11
$ mock ruby-3.3.4-11.fc41.src.rpm
$ mock shell --unpriv
<mock-chroot> sh-5.2$ cd /builddir/build/BUILD/ruby-3.3.4-build/ruby-3.3.4
<mock-chroot> sh-5.2$ pwd
/builddir/build/BUILD/ruby-3.3.4-build/ruby-3.3.4
<mock-chroot> sh-5.2$ rpm -qf /usr/bin/annocheck
(venv3) $ pip3 install transformers==3.0.0
Collecting transformers==3.0.0
Using cached transformers-3.0.0-py3-none-any.whl (754 kB)
Collecting numpy
Using cached numpy-1.26.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
Collecting tokenizers==0.8.0-rc4
Using cached tokenizers-0.8.0rc4.tar.gz (96 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
@junaruga
junaruga / systemd-resoloved-debug.log
Created October 17, 2023 16:06
RubyCI Ubuntu jammy arm64
$ cat systemd-resoloved-debug.log
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Received dns UDP packet of size 64, ifindex=0, ttl=64, fragsize=0
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Got DNS stub UDP query packet for id 38089
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Looking up RR for rubyspecdoesntexist.fallingsnow.net IN A.
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Cache miss for rubyspecdoesntexist.fallingsnow.net IN A
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Firing regular transaction 63253 for <rubyspecdoesntexist.fallingsnow.net IN A> scope dns on */* (validate=yes).
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Using feature level UDP+EDNS0 for transaction 63253.
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Using DNS server 147.75.207.207 for transaction 63253.
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Announcing packet size 1472 in egress EDNS(0) packet.
Oct 17 15:28:58 ruby1 systemd-resolved[3712]: Emitting UDP, link MTU is 1500, socket MTU is 1500, minimal MTU is 40
$ cat card.rb
# Set your card number here. 16 digits.
card_no = '1234123412341234'
reverse_card_no = card_no.reverse
index = 1
total = 0
reverse_card_no.each_char do |c|
multi = (index % 2 == 1) ? 1 : 2
@junaruga
junaruga / para-callgraph.stp
Last active April 21, 2023 15:16
stap openssl/ruby fips
$ cat home/script/stap/para-callgraph.stp
#! /usr/bin/env stap
function trace(entry_p, extra) {
%( $# > 1 %? if (tid() in trace) %)
printf("%s%s%s %s\n",
thread_indent (entry_p),
(entry_p>0?"->":"<-"),
ppfunc (),
extra)
$ cat ltrace_ttt.log
[pid 691834] 1680200962.002912 openssl.so->OPENSSL_init_ssl(0, 0, 0x7f2e32d09580, 0 <unfinished ...>
[pid 691834] 1680200962.003789 libssl.so.3->OPENSSL_init_crypto(76, 0, 0, 0) = 1
[pid 691834] 1680200962.080976 libssl.so.3->CRYPTO_THREAD_run_once(0x7f2e20f18964, 0x7f2e20e822e9, 0x7f2e20ce8d08, 0x7601 <unfinished ...>
[pid 691834] 1680200962.081128 libssl.so.3->CRYPTO_THREAD_run_once(0x7f2e20f18958, 0x7f2e20e7c779, 0x7ffdf5534d90, 0x7601 <unfinished ...>
[pid 691834] 1680200962.081212 libssl.so.3->COMP_zlib(0x7ffdf5534ce8, 0x7f2e32d9a100, 0x7ffdf5534cd0, 0x7601) = 0x7f2e20ce5c80
[pid 691834] 1680200962.081337 libssl.so.3->OPENSSL_sk_new(0x7f2e20e7c755, 0x7f2e32d9a100, 0x7ffdf5534cd0, 0x7601) = 0x1f148a0
[pid 691834] 1680200962.081439 libssl.so.3->COMP_get_type(0x7f2e20ce5c80, 0, 0x7f2e20e7c755, 6) = 0
[pid 691834] 1680200962.081550 <... CRYPTO_THREAD_run_once resumed> ) = 1
[pid 691834] 1680200962.081592 libssl.so.3->OPENSSL_atexit(0x7f2e20e82365, 0x7f2e20f185e0, 8, 2) = 1
$ cat result.err/build.log
Mock Version: 3.4
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/bowtie.spec'], chrootPath='/var/lib/mock/fedora-rawhide-x86_64/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x7f70ababb690>timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.guk7ajsi:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/de