Skip to content

Instantly share code, notes, and snippets.

View vdemeester's full-sized avatar
πŸ‘·β€β™‚οΈ
Working from home

Vincent Demeester vdemeester

πŸ‘·β€β™‚οΈ
Working from home
View GitHub Profile
// start a service whose task is unhealthy at beginning
// its tasks should be blocked in starting stage, until health check is passed
func (s *DockerSwarmSuite) TestServiceHealthStart(c *check.C) {
testRequires(c, DaemonIsLinux) // busybox doesn't work on Windows
d := s.AddDaemon(c, true, true)
// service started from this image won't pass health check
imageName := "testhealth"
func waitForStatus(c *check.C, name string, prev string, expected string) {
prev = prev + "\n"
expected = expected + "\n"
for {
out, _ := dockerCmd(c, "inspect", "--format={{.State.Status}}", name)
if out == expected {
return
}
c.Check(out, checker.Equals, prev)
if out != prev {
@vdemeester
vdemeester / output
Last active December 29, 2016 17:19
Ξ» go test ./... 1 ↡
--- FAIL: TestRetryAlwaysFailing (1.01s)
retry_test.go:10: I am always failing
retry_test.go:10: I am always failing
retry_test.go:10: I am always failing
retry_test.go:10: I am always failing
retry_test.go:10: I am always failing
retry_test.go:10: I am always failing
retry_test.go:10: I am always failing
retry_test.go:10: I am always failing
{
"name": "some-build",
"job": "docker master",
"platform": "linux",
"architecture": "amd64",
"stages": [
{
"name": "build",
"duration": "100s"
},
----------------------------------------------------------------------
14:44:30 PANIC: docker_api_attach_test.go:37: DockerAPIAttachSuite.TearDownSuite
14:44:30
14:44:30 ... Panic: runtime error: invalid memory address or nil pointer dereference (PC=0x45B283)
14:44:30
14:44:30 d:/CI/CI-734c06fab/go/src/runtime/asm_amd64.s:479
14:44:30 in call32
14:44:30 d:/CI/CI-734c06fab/go/src/runtime/panic.go:458
14:44:30 in gopanic
14:44:30 d:/CI/CI-734c06fab/go/src/runtime/panic.go:62
--- FAIL: TestNodeInspectPretty (0.00s)
assert.go:84: inspect_test.go:128: Expected 'ID: nodeID1
Name: defaultNodeName
Labels:
- lbl2 = value2
- lbl1 = value1
Hostname: defaultNodeHostname
Joined at: 2012-11-01 22:08:41 +0000 +0000
Status:
State: Ready
vincent@wakasu> tree -a target ~/go/src/github.com/vdemeester/tuck
target
β”œβ”€β”€ .bashrc -> /home/vincent/.nix-profile/nix-home/sbr-sh-config/.bashrc
β”œβ”€β”€ .cfg-post.d
β”‚Β Β  β”œβ”€β”€ git-config -> /home/vincent/.nix-profile/nix-home/sbr-git-config/.cfg-post.d/git-config
β”‚Β Β  β”œβ”€β”€ go-config -> /home/vincent/.nix-profile/nix-home/sbr-go-config/.cfg-post.d/go-config
β”‚Β Β  └── ssh-config -> /home/vincent/.nix-profile/nix-home/sbr-ssh-config/.cfg-post.d/ssh-config
β”œβ”€β”€ .config
β”‚Β Β  β”œβ”€β”€ git
β”‚Β Β  β”‚Β Β  └── config.d
target
β”œβ”€β”€ 2 -> /home/vincent/go/src/github.com/vdemeester/tuck/testdata/b/2
β”œβ”€β”€ 5 -> /home/vincent/go/src/github.com/vdemeester/tuck/testdata/c/5
β”œβ”€β”€ 6 -> /home/vincent/go/src/github.com/vdemeester/tuck/testdata/d/6
β”œβ”€β”€ b
β”‚Β Β  └── 1 -> /home/vincent/go/src/github.com/vdemeester/tuck/testdata/a/b/1
β”œβ”€β”€ d
β”‚Β Β  └── 3 -> /home/vincent/go/src/github.com/vdemeester/tuck/testdata/c/d/3
β”œβ”€β”€ e
β”‚Β Β  β”œβ”€β”€ 7 -> /home/vincent/go/src/github.com/vdemeester/tuck/testdata/d/e/7
vincent@wakasu> cd junit5-docker ~/src/github/FaustXVI
direnv: loading .envrc
these derivations will be built:
/nix/store/0n78kk6p3dq1mllx2sbn182za1r5788z-junit5-docker.drv
these paths will be fetched (16.18 MiB download, 21.34 MiB unpacked):
/nix/store/2xk6hbsjmayfv1vppwasmmr68a5zkl4q-apache-maven-3.3.9
/nix/store/g4f1bms36hgg5abfd8xc4bj6sfzsy61d-bash-4.3-p48-info
/nix/store/i76bwv541a7zj576hkdia62169r2nl0z-bash-4.3-p48-doc
fetching path β€˜/nix/store/i76bwv541a7zj576hkdia62169r2nl0z-bash-4.3-p48-doc’...
fetching path β€˜/nix/store/g4f1bms36hgg5abfd8xc4bj6sfzsy61d-bash-4.3-p48-info’...

Keybase proof

I hereby claim:

  • I am vdemeester on github.
  • I am vdemeester (https://keybase.io/vdemeester) on keybase.
  • I have a public key ASB0nrLswAuS1D_HxuuboI1foJbXs_wkNx1cowoIS8FnSQo

To claim this, I am signing this object: