Skip to content

Instantly share code, notes, and snippets.

View spiffxp's full-sized avatar
💭
I may be slow to respond.

Aaron Crickenberger spiffxp

💭
I may be slow to respond.
View GitHub Profile
@spiffxp
spiffxp / hub-with-ghproxy.md
Last active April 19, 2019 18:14
Use hub with ghproxy

This took me entirely too long, and I feel like I should have just waved off a while ago.

setting up

# I want to setup a github cache so I can write dumb scripts
go get k8s.io/test-infra/ghproxy

# `hub` respects `HTTP_PROXY` env var, but `ghproxy` doesn't act like that kind of proxy
#!/usr/bin/env python
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
echo "| image | LABEL maintainer |"; 
echo "| --- | --- |"; 
rg --with-filename "LABEL maintainer" | sort |\
  sed -e 's~\([^D]*\)/Dockerfile.*maintainer."\([^"]*\)"~|\1|\2|~'
image LABEL maintainer
boskos senlu@google.com
boskos/janitor senlu@google.com
  • Q: does k8s-ci-robot remove do-not-merge/cherry-pick-not-approved on its own?

  • A: yes (eg: kubernetes/kubernetes#65959)

  • Q: are milestones required for cherry pick merges?

  • A: not with tide, eg: kubernetes/kubernetes#67150, kubernetes/kubernetes#67162

  • A: mungegithub doesn't comment about this requirement as far as I can tell so I don't know how folks tribally learned about it

  • Q: is cherrypick-candidate required for merge?

#!/usr/bin/env bash
set -eu
name=$(basename ${0%.*})
data_dir=data/${name}
mkdir -p ${data_dir}
refresh_testgrid_summary_json=true
#!/usr/bin/env bash
name=$(basename ${0%.*})
data_dir=data/${name}
mkdir -p ${data_dir}
orgs="kubernetes kubernetes-client kubernetes-csi kubernetes-sigs kubernetes-incubator"
sigs_yaml=${data_dir}/sigs.yaml
org/repo in sigs.yaml? has owners? has CONTRIBUTING.md? has code-of-conduct.md? has approve? in tide? branch protected?
kubernetes/kubelet missing no owners no CONTRIBUTING.md no code-of-conduct.md
kubernetes/kube-scheduler missing no owners no CONTRIBUTING.md no code-of-conduct.md
kubernetes/kube-proxy missing no owners no CONTRIBUTING.md no code-of-conduct.md
kubernetes/kube-controller-manager missing no owners no CONTRIBUTING.md no code-of-conduct.md
kubernetes/sample-cli-plugin no owners no CONTRIBUTING.md no code-of-condu
@spiffxp
spiffxp / SuiteScopedMockTest.scala
Created January 22, 2013 08:45
Troubles w/ ScalaTest suite-scoped mocks in ScalaMock 3.x when using proxy mocks
package com.example
import org.scalatest.FunSuite
import org.scalamock.scalatest.MockFactory
import org.scalamock.proxy.ProxyMockFactory
class SuiteScopedMockTest extends FunSuite with MockFactory with ProxyMockFactory {
trait Foo {
def foo (i: Int)
}
@spiffxp
spiffxp / OnCallTest.scala
Created January 22, 2013 08:41
Troubles w/ onCall in ScalaMock 3.x proxy mocks
package com.example
import org.scalatest.FunSuite
import org.scalamock.scalatest.MockFactory
import org.scalamock.proxy.ProxyMockFactory
class OnCallTest extends FunSuite with ProxyMockFactory with MockFactory {
trait OnCallTrait {
def foo (a: Int, b: Double)
}