Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Kuznetsov stevekuznetsov

  • Red Hat, Inc.
  • United States
View GitHub Profile
@stevekuznetsov
stevekuznetsov / contention.go
Last active Apr 29, 2022
CRDB Contention Reproducer
View contention.go
package main
import (
"context"
"flag"
"fmt"
"net/url"
"strings"
"sync"
"time"
@stevekuznetsov
stevekuznetsov / changefeeds.go
Last active Mar 10, 2022
Investigating CockroachDB Changefeed Behavior
View changefeeds.go
package main
import (
"context"
"encoding/json"
"fmt"
"math/rand"
"sort"
"strings"
"sync"
View filter.py
#!/usr/bin/env python
import yaml
import sys
prow_config_file = sys.argv[1]
prow_config = {}
with open(prow_config_file) as prow_config_data:
prow_config = yaml.load(prow_config_data)
@stevekuznetsov
stevekuznetsov / rebase.py
Last active Mar 11, 2017
Rebase Script for OSE
View rebase.py
#!/usr/bin/env python
from __future__ import print_function
import sys
_DROP_PREFIX = '[DROP]'
_SQUASH_PREFIX = '[SQUASH]'
_CARRY_PREFIX = '[CARRY]'
_SPEC_SUBJECT = _CARRY_PREFIX + '[BUILD] Specfile updates'
_TITO_PREFIX = 'Automatic commit of package'
@stevekuznetsov
stevekuznetsov / failure.log
Created Jun 21, 2016
failed TestAuthorizationResolution
View failure.log
This file has been truncated, but you can view the full file.
Jun 21 09:36:53 Running TestAuthorizationResolution...
Jun 21 09:40:53 failed TestAuthorizationResolution
Jun 21 09:40:53 I0621 09:36:53.144661 25720 plugins.go:46] Registered cloud provider "aws"
Jun 21 09:40:53 I0621 09:36:53.144831 25720 plugins.go:46] Registered cloud provider "gce"
Jun 21 09:40:53 I0621 09:36:53.144987 25720 plugins.go:46] Registered cloud provider "mesos"
Jun 21 09:40:53 I0621 09:36:53.145033 25720 plugins.go:46] Registered cloud provider "openstack"
Jun 21 09:40:53 I0621 09:36:53.145043 25720 plugins.go:46] Registered cloud provider "ovirt"
Jun 21 09:40:53 I0621 09:36:53.145057 25720 plugins.go:46] Registered cloud provider "rackspace"
Jun 21 09:40:53 I0621 09:36:53.145473 25720 plugins.go:74] Registered admission plugin "NamespaceLifecycle"
View errors.log
$ ./spawn-conformance-boxes.sh
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets/.vagrant.d/gems/gems/vagrant-aws-0.7.0/lib/vagrant-aws/action/run_instance.rb:98: warning: duplicated key at line 100 ignored: :associate_public_ip
/home/skuznets
View vagrant-script.sh
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
tmp_root="/home/skuznets/vagrant-boxes"
rm -rf "${tmp_root}"
mkdir -p "${tmp_root}"
@stevekuznetsov
stevekuznetsov / conformance.sh
Last active Jun 2, 2016
conformance test using vagrant
View conformance.sh
vagrant plugin install vagrant-openshift
vagrant plugin install vagrant-aws
git clone git@github.com:openshift/origin.git
cd origin
vagrant origin-init --stage inst --os rhel7 --instance-type m4.large origin_${JOB_NAME}_${BUILD_NUMBER}
vagrant up --provider aws
vagrant sync-origin -s
vagrant test-origin --extended "conformance" -d --skip-check --skip-image-cleanup --image-registry ci.dev.openshift.redhat.com:5000
@stevekuznetsov
stevekuznetsov / init.sh
Last active May 9, 2016
readonly source failures
View init.sh
#!/bin/bash
function init() {
source readonly.sh
echo "inside init: ${MY_VAR[*]}" # success
}
init
echo "after init: ${MY_VAR[*]}" # failure
View race.txt
$ hack/test-go.sh pkg/generate/git/
==================
WARNING: DATA RACE
Read by goroutine 12:
github.com/openshift/origin/pkg/generate/git.timedCommand()
github.com/openshift/origin/pkg/generate/git/_test/_obj_test/repository.go:479 +0x19b6
github.com/openshift/origin/pkg/generate/git.TestListRemoteTimeout.func2()
/home/stevekuznetsov/go/src/github.com/openshift/origin/pkg/generate/git/list_remote_timeout_test.go:25 +0x173
Previous write by goroutine 13: