Skip to content

Instantly share code, notes, and snippets.

View alvaroaleman's full-sized avatar

Alvaro Aleman alvaroaleman

View GitHub Profile
$ go version
go version go1.18 linux/amd64
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/alvaro/.gocache"
GOENV="/home/alvaro/.config/go/env"
GOEXE=""
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 6 columns, instead of 5. in line 7.
endpoint,method,supported by apps,apps alternate docs link,docs link,notes
/user,get,false,https://docs.github.com/en/free-pro-team@latest/rest/reference/apps#get-the-authenticated-app,https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user,alternate does not return an email
/orgs/%s/members/%s,get,true,,https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs#get-organization-membership-for-a-user,
/repos/%s/%s/hooks,get,true,,https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#list-repository-webhooks,
/orgs/%s/hooks,get,true,,https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs#list-organization-webhooks,
/repos/%s/%s/hooks/%d,patch,true,,https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#update-a-repository-webhook,
/orgs/%s/hooks/%d,patch,true,,https://docs.github.com/en/free-pro-team@latest/rest/reference/orgs#update-an-organization-webhook,
/repos/%s/%s/hook,post,true,,https://docs.github.com/en/free-pr
$ rg 'path:' prow/github/client.go
849: path: "/user",
919: path: fmt.Sprintf("/orgs/%s/members/%s", org, user),
987: path: path,
1021: path: path,
1052: path: path,
1082: path: fmt.Sprintf("/orgs/%s", name),
1102: path: fmt.Sprintf("/orgs/%s", name),
1197: path: fmt.Sprintf("/repos/%s/%s/collaborators/%s/permission", org, repo, user),
1226: path: fmt.Sprintf("/orgs/%s/memberships/%s", org, user),
sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).SetFieldsForClusterConnector.func1(0x1611740, 0xc0001262e0, 0x0, 0xc00042aca0)
/home/alvaro/git/golang/src/sigs.k8s.io/controller-runtime/pkg/manager/internal.go:234 +0x230
sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).SetFields(0xc000162500, 0x1611740, 0xc0001262e0, 0x7f62f8387ac0, 0x0)
/home/alvaro/git/golang/src/sigs.k8s.io/controller-runtime/pkg/manager/internal.go:225 +0x50
sigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).Add(0xc000162500, 0x7f62f8387ac0, 0xc0001262e0, 0x0, 0x0)
/home/alvaro/git/golang/src/sigs.k8s.io/controller-runtime/pkg/manager/internal.go:194 +0xa8
sigs.k8s.io/controller-runtime/pkg/clusterconnector.New(0xc0000be400, 0x18e34e0, 0xc000162500, 0x0, 0x0, 0xc000265038, 0x1, 0x1, 0xc000125b10, 0xc000125b18, ...)
/home/alvaro/git/golang/src/sigs.k8s.io/controller-runtime/pkg/clusterconnector/clusterconnector.go:263 +0x3b8
sigs.k8s.io/controller-runtime/pkg/manager.New(0xc
sum by (namespace, pod, node, pod_ip) (container_memory_working_set_bytes{container="test"}) *
on(namespace, pod)
group_left(org, repo, type, name, id, node, pod_ip, phase)
max by (org, repo, type, name, id, namespace, pod, phase, node, pod_ip) (
label_replace(
label_replace(
label_replace(
label_replace(
label_replace(
prow:pod *
[fedora]
name=Fedora $releasever - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=False
==================
WARNING: DATA RACE
Write at 0x00c000342668 by goroutine 25:
k8s.io/test-infra/prow/apis/prowjobs/v1.TestDecorationDefaulting.func7()
/home/alvaro/git/work/test-infra/prow/apis/prowjobs/v1/types_test.go:109 +0x7b
k8s.io/test-infra/prow/apis/prowjobs/v1.TestDecorationDefaulting.func12()
/home/alvaro/git/work/test-infra/prow/apis/prowjobs/v1/types_test.go:188 +0x72
testing.tRunner()
/usr/local/go/src/testing/testing.go:909 +0x199
fatal error: concurrent map writes
goroutine 370 [running]:
runtime.throw(0x1ad9b91, 0x15)
GOROOT/src/runtime/panic.go:774 +0x72 fp=0xc00061edf0 sp=0xc00061edc0 pc=0x42f302
runtime.mapassign_faststr(0x180ed40, 0xc066f2b7d0, 0xc0432201ca, 0x3, 0x20)
GOROOT/src/runtime/map_faststr.go:291 +0x3fe fp=0xc00061ee58 sp=0xc00061edf0 pc=0x41340e
k8s.io/test-infra/prow/apis/prowjobs/v1.(*GCSConfiguration).ApplyDefault(0xc00e8a5730, 0xc00e8a5730, 0x1b82480)
prow/apis/prowjobs/v1/types.go:561 +0x206 fp=0xc00061ef18 sp=0xc00061ee58 pc=0x13c23b6
k8s.io/test-infra/prow/apis/prowjobs/v1.(*DecorationConfig).ApplyDefault(0xc01f077830, 0xc01f077830, 0x1ac1831)
We couldn’t find that file to show.
This file has been truncated, but you can view the full file.
wrapper.sh] [INFO] Wrapping Test Command: `bash -c gsutil cp -P gs://bentheelder-kind-ci-builds/latest/kind-linux-amd64 "${PATH%%:*}/kind" && gsutil cat gs://bentheelder-kind-ci-builds/latest/e2e-k8s.sh | sh`
wrapper.sh] [INFO] Running in: gcr.io/k8s-testimages/krte:v20191020-6567e5c-master
wrapper.sh] [INFO] See: https://github.com/kubernetes/test-infra/blob/master/images/krte/wrapper.sh
================================================================================
wrapper.sh] [SETUP] Performing pre-test setup ...
wrapper.sh] [SETUP] Bazel remote cache is enabled, generating .bazelrcs ...
create_bazel_cache_rcs.sh: Configuring '/root/.bazelrc' and '/etc/bazel.bazelrc' with
# ------------------------------------------------------------------------------
startup --host_jvm_args=-Dbazel.DigestFunction=sha256
build --experimental_remote_spawn_cache