Skip to content

Commit

Permalink
Merge pull request #6603 from habitat-sh/shain/docker2
Browse files Browse the repository at this point in the history
Swap windows jobs to docker (as much as possible)
  • Loading branch information
mwrock authored Jun 6, 2019
2 parents 6553bcc + 48f60f5 commit 282ed3c
Show file tree
Hide file tree
Showing 7 changed files with 206 additions and 82 deletions.
200 changes: 182 additions & 18 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ steps:
command:
- .\test\run_clippy.ps1 stable .\test\unexamined_lints.txt .\test\allowed_lints.txt .\test\lints_to_fix.txt .\test\denied_lints.txt
agents:
queue: 'single-use-windows-privileged'
timeout_in_minutes: 25
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 40

#######################################################################
# Unit Tests - Linux!
Expand Down Expand Up @@ -374,6 +380,12 @@ steps:
- ./test/run_cargo_test.ps1 builder-api-client
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 25
retry:
automatic:
Expand All @@ -384,15 +396,27 @@ steps:
- ./test/run_cargo_test.ps1 butterfly -Nightly -Features "lock_as_mutex deadlock_detection" -TestOptions "--test-threads=1"
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 20
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 25
soft_fail: true

- label: "[unit] :windows: butterfly lock_as_rwlock"
command:
- ./test/run_cargo_test.ps1 butterfly -Nightly -Features "lock_as_rwlock deadlock_detection" -TestOptions "--test-threads=1"
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 20
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 40
retry:
automatic:
limit: 1
Expand All @@ -404,15 +428,27 @@ steps:
- ./test/run_cargo_test.ps1 butterfly -TestOptions "--test-threads=1 --ignored"
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 20
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 25
soft_fail: true

- label: "[unit] :windows: common"
command:
- ./test/run_cargo_test.ps1 common -TestOptions "--test-threads=1"
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 20
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 25
retry:
automatic:
limit: 1
Expand All @@ -422,6 +458,12 @@ steps:
- ./test/run_cargo_test.ps1 core
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 20
retry:
automatic:
Expand All @@ -432,7 +474,13 @@ steps:
- ./test/run_cargo_test.ps1 hab
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 20
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 25
retry:
automatic:
limit: 1
Expand All @@ -442,6 +490,12 @@ steps:
- ./test/run_cargo_test.ps1 http-client
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 20
retry:
automatic:
Expand All @@ -452,7 +506,13 @@ steps:
- ./test/run_cargo_test.ps1 launcher-client
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 10
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 20
retry:
automatic:
limit: 1
Expand All @@ -462,7 +522,13 @@ steps:
- ./test/run_cargo_test.ps1 launcher-protocol
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 10
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 20
retry:
automatic:
limit: 1
Expand All @@ -472,7 +538,13 @@ steps:
- ./test/run_cargo_test.ps1 pkg-export-docker
agents:
queue: 'default-windows-privileged'
timeout_in_minutes: 20
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 25
retry:
automatic:
limit: 1
Expand All @@ -482,6 +554,12 @@ steps:
- ./test/run_cargo_test.ps1 pkg-export-tar
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 20
retry:
automatic:
Expand All @@ -493,6 +571,12 @@ steps:
- ./test/run_cargo_test.ps1 sup -Features "lock_as_mutex" -TestOptions "--test-threads=1"
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 40
soft_fail: true

Expand All @@ -502,6 +586,12 @@ steps:
- ./test/run_cargo_test.ps1 sup -Features "lock_as_rwlock" -TestOptions "--test-threads=1"
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 40
retry:
automatic:
Expand All @@ -513,6 +603,12 @@ steps:
- ./test/run_cargo_test.ps1 sup -Features "nitox_stream" -TestOptions "--test-threads=1"
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 40
retry:
automatic:
Expand All @@ -523,6 +619,12 @@ steps:
- ./test/run_cargo_test.ps1 sup-client
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 20
retry:
automatic:
Expand All @@ -533,6 +635,12 @@ steps:
- ./test/run_cargo_test.ps1 sup-protocol
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 20
retry:
automatic:
Expand All @@ -543,6 +651,12 @@ steps:
- ./test/run_studio_test.ps1 "studio-from-source"
agents:
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 5
retry:
automatic:
Expand Down Expand Up @@ -746,7 +860,14 @@ steps:
command:
- ./support/ci/build_component.ps1 hab
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 40
retry:
automatic:
limit: 1
Expand All @@ -758,7 +879,13 @@ steps:
command:
- ./support/ci/build_component.ps1 launcher
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
retry:
automatic:
limit: 1
Expand All @@ -770,7 +897,13 @@ steps:
command:
- ./support/ci/build_component.ps1 pkg-export-docker
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
retry:
automatic:
limit: 1
Expand All @@ -782,7 +915,14 @@ steps:
command:
- ./support/ci/build_component.ps1 pkg-export-tar
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
timeout_in_minutes: 40
retry:
automatic:
limit: 1
Expand All @@ -794,7 +934,13 @@ steps:
command:
- ./support/ci/build_component.ps1 plan-build-ps1
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
retry:
automatic:
limit: 1
Expand All @@ -806,7 +952,13 @@ steps:
command:
- ./support/ci/build_component.ps1 studio
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
retry:
automatic:
limit: 1
Expand All @@ -818,7 +970,13 @@ steps:
command:
- ./support/ci/build_component.ps1 sup
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
retry:
automatic:
limit: 1
Expand All @@ -830,7 +988,13 @@ steps:
command:
- ./support/ci/build_component.ps1 windows-service
agents:
queue: 'single-use-windows-privileged'
queue: 'default-windows-privileged'
plugins:
docker#v3.2.0:
image: "chefes/buildkite-windows"
shell: [ "powershell", "-Command" ]
always-pull: true
propagate-environment: true
retry:
automatic:
limit: 1
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function Invoke-Build([string]$Path, [switch]$Clean, [string]$Command, [switch]$
Install-RustToolchain $toolchain
rustup component add --toolchain $Toolchain rustfmt
Setup-Environment
Invoke-Expression "cargo +$ToolChain $Command --all -- --check"
Invoke-Expression "cargo +$ToolChain $Command --all"
break
}
"clippy" {
Expand Down
Loading

0 comments on commit 282ed3c

Please sign in to comment.