Skip to content

Commit

Permalink
chore: windows docker tests
Browse files Browse the repository at this point in the history
As we noticed that the tests failed because of a broken Docker
installation, we've decided to duplicate the job and run one job with a
working, and one with a broken Docker CLI.

This should give us some guarantee that these environments and the
respective pull libraries behave the same.
  • Loading branch information
tommyknows committed Jul 12, 2023
1 parent 0f961b1 commit 1b82d7c
Showing 1 changed file with 37 additions and 10 deletions.
47 changes: 37 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ slack-success-notify: &slack-success-notify

windows_big: &windows_big
executor:
name: win/default
name: win/server-2022
shell: bash.exe
size: large
version: "2023.05.1"
parameters:
node_version:
type: string
Expand Down Expand Up @@ -143,7 +144,20 @@ jobs:
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
- run: npm ci
- run: npm run test-jest
test_jest_windows:
test_jest_windows_with_docker:
<<: *windows_big
steps:
- checkout
- install_node_npm:
node_version: << parameters.node_version >>
- run:
name: Use snyk-main npmjs user
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
- run: npm ci
- run:
command: npm run test-jest-windows
no_output_timeout: 20m
test_jest_windows_no_docker:
<<: *windows_big
steps:
- checkout
Expand All @@ -153,6 +167,8 @@ jobs:
name: Use snyk-main npmjs user
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
- run: npm ci
# make docker appear to be broken.
- run: "function docker() { return 1; }"
- run:
command: npm run test-jest-windows
no_output_timeout: 20m
Expand Down Expand Up @@ -213,11 +229,10 @@ workflows:
channel: lumos-alerts
filters:
branches:
ignore:
main
ignore: main
- install:
name: Install
context:
context:
- nodejs-install
- team-lumos
- lint:
Expand Down Expand Up @@ -259,8 +274,19 @@ workflows:
- Build
post-steps:
- *slack-fail-notify
- test_jest_windows:
name: Test Jest Windows
- test_jest_windows_with_docker:
name: Test Jest Windows with Docker
context:
- nodejs-install
- team-lumos
- snyk-bot-slack
node_version: "12"
requires:
- Build
post-steps:
- *slack-fail-notify
- test_jest_windows_no_docker:
name: Test Jest Windows no Docker
context:
- nodejs-install
- team-lumos
Expand Down Expand Up @@ -295,7 +321,8 @@ workflows:
- Build
- Test
- Test Windows
- Test Jest Windows
- Test Jest Windows with Docker
- Test Jest Windows no Docker
post-steps:
- *slack-fail-notify
- *slack-success-notify
Expand All @@ -307,14 +334,14 @@ workflows:
jobs:
- install:
name: Install
context:
context:
- nodejs-install
- team-lumos
post-steps:
- *slack-fail-notify
- build_and_test_latest_go_binary:
name: Build Go binary
context:
context:
- nodejs-install
- team-lumos
requires:
Expand Down

0 comments on commit 1b82d7c

Please sign in to comment.