diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2023-08-24 22:31:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 22:31:40 +0300 |
commit | 0cf690ee14279d9e7ae5e1308950d6067d3aba81 (patch) | |
tree | a65d55d08b71b8432456aff80cf3457af98b0fba /.github/workflows/docker-in-docker-stress-test.yaml | |
parent | a08434f2b18627f31107a4ef6ab4f578a92aeaec (diff) |
[docker in docker] Adds retries for docker daemon startup and cgroup nesting (#669)feature_docker-in-docker_2.4.0
* adds retry logic
* adds stress test workflow
* Adds cgroup retries
* update workflow
* move sleep cmd
* update test
* cleanup
Diffstat (limited to '.github/workflows/docker-in-docker-stress-test.yaml')
-rw-r--r-- | .github/workflows/docker-in-docker-stress-test.yaml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/docker-in-docker-stress-test.yaml b/.github/workflows/docker-in-docker-stress-test.yaml new file mode 100644 index 0000000..569f946 --- /dev/null +++ b/.github/workflows/docker-in-docker-stress-test.yaml @@ -0,0 +1,37 @@ +name: "Stress test - Docker in Docker" +on: + pull_request: + paths: + - 'src/docker-in-docker/**' + workflow_dispatch: + +jobs: + test: + strategy: + matrix: + test-pass: [ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50 ] + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: "Install latest devcontainer CLI" + run: npm install -g @devcontainers/cli + + - name: "Generating tests for 'docker-in-docker' which validates if docker daemon is running" + run: devcontainer features test --skip-scenarios -f docker-in-docker -i mcr.microsoft.com/devcontainers/base:ubuntu . + + test-onCreate: + strategy: + matrix: + test-pass: [ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50 ] + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: "Install latest devcontainer CLI" + run: npm install -g @devcontainers/cli + + - name: "Generating tests for 'docker-in-docker' which validates if docker daemon is available within 'onCreateCommand'" + run: devcontainer features test -f docker-in-docker --skip-autogenerated --filter "docker_with_on_create_command"
\ No newline at end of file |