Skip to content

Instantly share code, notes, and snippets.

View petr-muller's full-sized avatar

Petr Muller petr-muller

View GitHub Profile
@petr-muller
petr-muller / oc1939.fish
Created December 2, 2024 19:25
OCPBUGS-19824
function ocpbugs-19824-compare
set first $argv[1]
set second $argv[2]
set release $argv[3]
if ! test -x $first
echo "$first: not a path to an executable"
return 1
end
@petr-muller
petr-muller / cincinnati-graph-data-template.json
Last active November 24, 2023 16:55
Fake Cincinnati Data
{
"nodes": [
{"version": "CLUSTER-BOT-VERSION", "payload": "CLUSTER-BOT-PAYLOAD"},
{"version": "4.12.22", "payload": "quay.io/openshift-release-dev/ocp-release@sha256:1111111111111111111111111111111111111111111111111111111111111111"},
{"version": "4.12.21", "payload": "quay.io/openshift-release-dev/ocp-release@sha256:2222222222222222222222222222222222222222222222222222222222222222"},
{"version": "4.12.20", "payload": "quay.io/openshift-release-dev/ocp-release@sha256:3333333333333333333333333333333333333333333333333333333333333333"}
],
"conditionalEdges": [
{
"edges": [{"from": "CLUSTER-BOT-VERSION", "to": "4.12.22"}],
@petr-muller
petr-muller / replace-cluster-cvo.sh
Created October 27, 2022 15:36
Hotswap CVO in a running cluster
#!/bin/bash
set -eu
root="$(dirname "${BASH_SOURCE[0]}")/.."
customCvoPullspec=quay.io/petr-muller/cluster-version-operator:"$(git branch --show-current)"
payload="$(oc get -n openshift-cluster-version clusterversion version -o jsonpath='{.status.desired.image}')"
podman pull "$payload"

Keybase proof

I hereby claim:

  • I am petr-muller on github.
  • I am afri (https://keybase.io/afri) on keybase.
  • I have a public key ASAwhXv2X6v8fkfgfhqGHgnL1WMcY3gTlrOojUXVZ3x44Ao

To claim this, I am signing this object:

@petr-muller
petr-muller / pruner.py
Created November 25, 2019 18:41
manual job pruner
#!/usr/bin/env python3
import yaml
import sys
with open(sys.argv[1]) as f:
all = yaml.full_load(f)
for t in ("presubmits", "postsubmits"):
if t not in all:
continue
@petr-muller
petr-muller / notes.md
Last active February 21, 2019 20:48
ci-operator error eaten

The error message from template.go:Run() is not logged anywhere, so it's either eaten by the graph handling code above (quickly investigated the call tree and found no opportunity to do so) or the waitForPodCompletion call above does not return any error.

waitForPodCompletion only returns no error when the waitForPodCompletionOrTimeout call above returns retry=false && err == nil.

waitForPodCompletionOrTimeout only returns retry=false && err == nil when (1) pod.Spec.RestartPolicy == Always (we can probably rule out this one) or when one of the two (1, [2](https://github.com/openshift/ci-ope