Skip to content

Instantly share code, notes, and snippets.

View cardil's full-sized avatar
🌴
Spring break (I'll be back May 6)

Chris Suszynski cardil

🌴
Spring break (I'll be back May 6)
View GitHub Profile
@cardil
cardil / JEP.md
Last active May 1, 2024 14:36
[Draft] JEP - Change name of imported type (aliasing)

Summary

Change name of imported type (aliasing)

Goals

The goal is to make code more productive and clean in cases where multiple classes with same name must be used in code. It should relief a developers frustration in that

@cardil
cardil / rhdh-operator-backstage-developer-hub-65d7fc46f5-k2d9t-1712771154374044738.log
Last active April 10, 2024 17:48
Serverless Eventmesh plugin to RH Developer Hub
Loading config from MergedConfigSource{FileConfigSource{path="/opt/app-root/src/app-config.yaml"}, FileConfigSource{path="/opt/app-root/src/app-config.example.yaml"}, FileConfigSource{path="/opt/app-root/src/app-config.example.production.yaml"}, FileConfigSource{path="/opt/app-root/src/dynamic-plugins-root/app-config.dynamic-plugins.yaml"}, FileConfigSource{path="/opt/app-root/src/knative.yaml"}, EnvConfigSource{count=1}}
skipping '/opt/app-root/src/dynamic-plugins-root/app-config.dynamic-plugins.yaml' since it is not a directory
failed to load dynamic plugin manifest from '/opt/app-root/src/dynamic-plugins-root/lost+found' [Error: ENOENT: no such file or directory, open '/opt/app-root/src/dynamic-plugins-root/lost+found/package.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/opt/app-root/src/dynamic-plugins-root/lost+found/package.json'
}
2024-04-10T17:42:15.030Z backstage info Found 1 new secrets in config that will be redacted
2024-04-10T17:42:15.033Z backstage info skipping '/opt/app
@cardil
cardil / npe-spinner-gh-actions.log
Created March 25, 2024 12:57
NPE in spinner (executed at Github Actions)
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xc390f0]
goroutine 23 [running]:
github.com/charmbracelet/bubbletea.(*Program).ReleaseTerminal(0xc0001f0c30)
/home/runner/go/pkg/mod/github.com/charmbracelet/bubbletea@v0.25.0/tea.go:651 +0x30
knative.dev/client-pkg/pkg/output/tui.(*BubbleSpinner).start.func1()
/home/runner/go/pkg/mod/knative.dev/client-pkg@v0.0.0-20240322171749-cf1573f93631/pkg/output/tui/spinner.go:87 +0x68
created by knative.dev/client-pkg/pkg/output/tui.(*BubbleSpinner).start in goroutine 40
/home/runner/go/pkg/mod/knative.dev/client-pkg@v0.0.0-20240322171749-cf1573f93631/pkg/output/tui/spinner.go:82 +0x385
@cardil
cardil / goroutines-dump.log
Created March 21, 2024 17:01
The goroutines dump from the magetasks e2e test after fixing knative/client-pkg#160
SIGQUIT: quit
PC=0x4704c1 m=0 sigcode=0
goroutine 0 [idle]:
runtime.futex()
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/sys_linux_amd64.s:557 +0x21 fp=0x7fff547c9630 sp=0x7fff547c9628 pc=0x4704c1
runtime.futexsleep(0x7fff547c96a8?, 0x442e76?, 0x7fff547c96a8?)
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/os_linux.go:69 +0x30 fp=0x7fff547c9680 sp=0x7fff547c9630 pc=0x437e30
runtime.notesleep(0x27c3f08)
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/lock_futex.go:160 +0x87 fp=0x7fff547c96b8 sp=0x7fff547c9680 pc=0x4109a7
@cardil
cardil / goroutines-dump.log
Created March 20, 2024 14:06
The thread dump from the magetasks e2e test
SIGQUIT: quit
PC=0x4704c1 m=0 sigcode=0
goroutine 0 [idle]:
runtime.futex()
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/sys_linux_amd64.s:557 +0x21 fp=0x7ffe9fc2f4e0 sp=0x7ffe9fc2f4d8 pc=0x4704c1
runtime.futexsleep(0x7ffe9fc2f558?, 0x442e76?, 0x7ffe9fc2f558?)
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/os_linux.go:69 +0x30 fp=0x7ffe9fc2f530 sp=0x7ffe9fc2f4e0 pc=0x437e30
runtime.notesleep(0x27c3ec8)
/home/ksuszyns/.gvm/gos/go1.21.4/src/runtime/lock_futex.go:160 +0x87 fp=0x7ffe9fc2f568 sp=0x7ffe9fc2f530 pc=0x4109a7
@cardil
cardil / exec.log
Created February 20, 2024 12:48
Failed remote call to worker from Jenkins groovy code
66.006 [resource-tracker #1] Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to channel
66.006 [resource-tracker #1] at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1787)
66.006 [resource-tracker #1] at hudson.remoting.Request.call(Request.java:199)
66.006 [resource-tracker #1] at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:288)
66.006 [resource-tracker #1] at com.sun.proxy.$Proxy6.fetch3(Unknown Source)
66.006 [resource-tracker #1] at hudson.remoting.RemoteClassLoader.prefetchClassReference(RemoteClassLoader.java:354)
66.006 [resource-tracker #1] at hudson.remoting.RemoteClassLoader.loadWithMultiClassLoader(RemoteClassLoader.java:259)
66.006 [resource-tracker #1] at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:229)
66.006 [resource-tracker #1] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594)
66.006 [resource-tracker #1] at java.base/java.lang.ClassLoader.loadClass(Cla
@cardil
cardil / test-progress-race.log
Created February 8, 2024 14:34
Race condition on TestProgress (from knative/client-pkg#139)
=== RUN TestProgress
==================
WARNING: DATA RACE
Read at 0x00c00018d700 by goroutine 40:
github.com/charmbracelet/bubbles/progress.(*Model).SetPercent.(*Model).nextFrame.func1()
/home/ksuszyns/git/knative-client-pkg/vendor/github.com/charmbracelet/bubbles/progress/progress.go:285 +0x4f
github.com/charmbracelet/bubbles/progress.(*Model).SetPercent.(*Model).nextFrame.Tick.func2()
/home/ksuszyns/git/knative-client-pkg/vendor/github.com/charmbracelet/bubbletea/commands.go:142 +0x83
github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1()
/home/ksuszyns/git/knative-client-pkg/vendor/github.com/charmbracelet/bubbletea/tea.go:294 +0x42
@cardil
cardil / git-list-merged-branches
Last active November 20, 2023 14:54
git-list-merged-branches - A script that can find already merged branches and provide git command to remove them
#!/bin/bash
getopt --test > /dev/null
if [[ $? -ne 4 ]]; then
echo "I’m sorry, `getopt --test` failed in this environment."
exit 1
fi
SHORT=d:b:e:h
LONG=date:,branches:,excluded:,help
@cardil
cardil / podman-compose-fail-multiple-networks.log
Created October 12, 2023 17:51
A log of podman-compose failing to set netalias across multiple networks
$ podman-compose up --build --abort-on-container-exit
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.7.0
** excluding: set()
podman build -f app/Containerfile -t netalias_app app
STEP 1/4: FROM quay.io/fedora/fedora
STEP 2/4: RUN dnf install -y python3-redis python3-flask
--> Using cache c2bf03a022dc7e9cda93b8279310cde6fb33a790439d895f851949716ee18fdf
--> c2bf03a022dc
@cardil
cardil / selinux-report.txt
Created October 9, 2023 10:59
SElinux prevents bwrap to umount while running in Podman rootless container
SELinux is preventing bwrap from unmount access on the filesystem .
***** Plugin catchall (100. confidence) suggests **************************
If you believe that bwrap should be allowed unmount access on the filesystem by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'bwrap' --raw | audit2allow -M my-bwrap