From 85e92db505b3217d45f248c339972cf7ad169d51 Mon Sep 17 00:00:00 2001 From: MichaelKo Date: Mon, 27 Nov 2023 18:32:52 +0100 Subject: [PATCH] Enhance pipeline stability and automatically retry unstable tests (#1566) * add test retry to action * add test retry to action --- .../workflows/test-integration-v2-TestACLAllowStarDst.yaml | 5 ++++- .../workflows/test-integration-v2-TestACLAllowUser80Dst.yaml | 5 ++++- .../workflows/test-integration-v2-TestACLAllowUserDst.yaml | 5 ++++- .../workflows/test-integration-v2-TestACLDenyAllPort80.yaml | 5 ++++- .../test-integration-v2-TestACLDevice1CanAccessDevice2.yaml | 5 ++++- .../test-integration-v2-TestACLHostsInNetMapTable.yaml | 5 ++++- .../test-integration-v2-TestACLNamedHostsCanReach.yaml | 5 ++++- ...est-integration-v2-TestACLNamedHostsCanReachBySubnet.yaml | 5 ++++- .github/workflows/test-integration-v2-TestApiKeyCommand.yaml | 5 ++++- .../test-integration-v2-TestAuthKeyLogoutAndRelogin.yaml | 5 ++++- ...-integration-v2-TestAuthWebFlowAuthenticationPingAll.yaml | 5 ++++- .../test-integration-v2-TestAuthWebFlowLogoutAndRelogin.yaml | 5 ++++- .../workflows/test-integration-v2-TestCreateTailscale.yaml | 5 ++++- .../test-integration-v2-TestDERPServerScenario.yaml | 5 ++++- .../workflows/test-integration-v2-TestEnablingRoutes.yaml | 5 ++++- .github/workflows/test-integration-v2-TestEphemeral.yaml | 5 ++++- .github/workflows/test-integration-v2-TestExpireNode.yaml | 5 ++++- .github/workflows/test-integration-v2-TestHeadscale.yaml | 5 ++++- .github/workflows/test-integration-v2-TestNodeCommand.yaml | 5 ++++- .../workflows/test-integration-v2-TestNodeExpireCommand.yaml | 5 ++++- .../workflows/test-integration-v2-TestNodeMoveCommand.yaml | 5 ++++- .../workflows/test-integration-v2-TestNodeRenameCommand.yaml | 5 ++++- .../workflows/test-integration-v2-TestNodeTagCommand.yaml | 5 ++++- .../test-integration-v2-TestOIDCAuthenticationPingAll.yaml | 5 ++++- ...integration-v2-TestOIDCExpireNodesBasedOnTokenExpiry.yaml | 5 ++++- .../workflows/test-integration-v2-TestPingAllByHostname.yaml | 5 ++++- .github/workflows/test-integration-v2-TestPingAllByIP.yaml | 5 ++++- .../workflows/test-integration-v2-TestPreAuthKeyCommand.yaml | 5 ++++- ...ntegration-v2-TestPreAuthKeyCommandReusableEphemeral.yaml | 5 ++++- ...st-integration-v2-TestPreAuthKeyCommandWithoutExpiry.yaml | 5 ++++- .../workflows/test-integration-v2-TestResolveMagicDNS.yaml | 5 ++++- .../workflows/test-integration-v2-TestSSHIsBlockedInACL.yaml | 5 ++++- .../test-integration-v2-TestSSHMultipleUsersAllToAll.yaml | 5 ++++- .../test-integration-v2-TestSSHNoSSHConfigured.yaml | 5 ++++- .../workflows/test-integration-v2-TestSSHOneUserToAll.yaml | 5 ++++- .../test-integration-v2-TestSSHUserOnlyIsolation.yaml | 5 ++++- .github/workflows/test-integration-v2-TestTaildrop.yaml | 5 ++++- ...est-integration-v2-TestTailscaleNodesJoiningHeadcale.yaml | 5 ++++- .github/workflows/test-integration-v2-TestUserCommand.yaml | 5 ++++- cmd/gh-action-integration-generator/main.go | 5 ++++- 40 files changed, 160 insertions(+), 40 deletions(-) diff --git a/.github/workflows/test-integration-v2-TestACLAllowStarDst.yaml b/.github/workflows/test-integration-v2-TestACLAllowStarDst.yaml index afae4fe..63017ac 100644 --- a/.github/workflows/test-integration-v2-TestACLAllowStarDst.yaml +++ b/.github/workflows/test-integration-v2-TestACLAllowStarDst.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLAllowStarDst + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestACLAllowUser80Dst.yaml b/.github/workflows/test-integration-v2-TestACLAllowUser80Dst.yaml index 88830aa..e3d5d29 100644 --- a/.github/workflows/test-integration-v2-TestACLAllowUser80Dst.yaml +++ b/.github/workflows/test-integration-v2-TestACLAllowUser80Dst.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLAllowUser80Dst + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestACLAllowUserDst.yaml b/.github/workflows/test-integration-v2-TestACLAllowUserDst.yaml index 4c2e60b..dc328ed 100644 --- a/.github/workflows/test-integration-v2-TestACLAllowUserDst.yaml +++ b/.github/workflows/test-integration-v2-TestACLAllowUserDst.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLAllowUserDst + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestACLDenyAllPort80.yaml b/.github/workflows/test-integration-v2-TestACLDenyAllPort80.yaml index 34f3e10..396994a 100644 --- a/.github/workflows/test-integration-v2-TestACLDenyAllPort80.yaml +++ b/.github/workflows/test-integration-v2-TestACLDenyAllPort80.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLDenyAllPort80 + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestACLDevice1CanAccessDevice2.yaml b/.github/workflows/test-integration-v2-TestACLDevice1CanAccessDevice2.yaml index 4b2b0e0..9af861f 100644 --- a/.github/workflows/test-integration-v2-TestACLDevice1CanAccessDevice2.yaml +++ b/.github/workflows/test-integration-v2-TestACLDevice1CanAccessDevice2.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLDevice1CanAccessDevice2 + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestACLHostsInNetMapTable.yaml b/.github/workflows/test-integration-v2-TestACLHostsInNetMapTable.yaml index 6635506..cac45ba 100644 --- a/.github/workflows/test-integration-v2-TestACLHostsInNetMapTable.yaml +++ b/.github/workflows/test-integration-v2-TestACLHostsInNetMapTable.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLHostsInNetMapTable + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestACLNamedHostsCanReach.yaml b/.github/workflows/test-integration-v2-TestACLNamedHostsCanReach.yaml index b3addc9..f098522 100644 --- a/.github/workflows/test-integration-v2-TestACLNamedHostsCanReach.yaml +++ b/.github/workflows/test-integration-v2-TestACLNamedHostsCanReach.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLNamedHostsCanReach + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestACLNamedHostsCanReachBySubnet.yaml b/.github/workflows/test-integration-v2-TestACLNamedHostsCanReachBySubnet.yaml index e424cd0..cee0e35 100644 --- a/.github/workflows/test-integration-v2-TestACLNamedHostsCanReachBySubnet.yaml +++ b/.github/workflows/test-integration-v2-TestACLNamedHostsCanReachBySubnet.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestACLNamedHostsCanReachBySubnet + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestApiKeyCommand.yaml b/.github/workflows/test-integration-v2-TestApiKeyCommand.yaml index 81639b6..b495b9b 100644 --- a/.github/workflows/test-integration-v2-TestApiKeyCommand.yaml +++ b/.github/workflows/test-integration-v2-TestApiKeyCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestApiKeyCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestAuthKeyLogoutAndRelogin.yaml b/.github/workflows/test-integration-v2-TestAuthKeyLogoutAndRelogin.yaml index c6fa4ae..fcdceeb 100644 --- a/.github/workflows/test-integration-v2-TestAuthKeyLogoutAndRelogin.yaml +++ b/.github/workflows/test-integration-v2-TestAuthKeyLogoutAndRelogin.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestAuthKeyLogoutAndRelogin + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestAuthWebFlowAuthenticationPingAll.yaml b/.github/workflows/test-integration-v2-TestAuthWebFlowAuthenticationPingAll.yaml index fc9ca0c..9e24a7d 100644 --- a/.github/workflows/test-integration-v2-TestAuthWebFlowAuthenticationPingAll.yaml +++ b/.github/workflows/test-integration-v2-TestAuthWebFlowAuthenticationPingAll.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestAuthWebFlowAuthenticationPingAll + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestAuthWebFlowLogoutAndRelogin.yaml b/.github/workflows/test-integration-v2-TestAuthWebFlowLogoutAndRelogin.yaml index 1a24bce..e1ff6c3 100644 --- a/.github/workflows/test-integration-v2-TestAuthWebFlowLogoutAndRelogin.yaml +++ b/.github/workflows/test-integration-v2-TestAuthWebFlowLogoutAndRelogin.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestAuthWebFlowLogoutAndRelogin + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestCreateTailscale.yaml b/.github/workflows/test-integration-v2-TestCreateTailscale.yaml index edd4a0b..eaf829c 100644 --- a/.github/workflows/test-integration-v2-TestCreateTailscale.yaml +++ b/.github/workflows/test-integration-v2-TestCreateTailscale.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestCreateTailscale + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestDERPServerScenario.yaml b/.github/workflows/test-integration-v2-TestDERPServerScenario.yaml index 5b55180..41c7db5 100644 --- a/.github/workflows/test-integration-v2-TestDERPServerScenario.yaml +++ b/.github/workflows/test-integration-v2-TestDERPServerScenario.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestDERPServerScenario + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestEnablingRoutes.yaml b/.github/workflows/test-integration-v2-TestEnablingRoutes.yaml index f6e8ef0..750ea9f 100644 --- a/.github/workflows/test-integration-v2-TestEnablingRoutes.yaml +++ b/.github/workflows/test-integration-v2-TestEnablingRoutes.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestEnablingRoutes + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestEphemeral.yaml b/.github/workflows/test-integration-v2-TestEphemeral.yaml index db84079..df037ee 100644 --- a/.github/workflows/test-integration-v2-TestEphemeral.yaml +++ b/.github/workflows/test-integration-v2-TestEphemeral.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestEphemeral + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestExpireNode.yaml b/.github/workflows/test-integration-v2-TestExpireNode.yaml index 5d48baf..48e5e36 100644 --- a/.github/workflows/test-integration-v2-TestExpireNode.yaml +++ b/.github/workflows/test-integration-v2-TestExpireNode.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestExpireNode + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestHeadscale.yaml b/.github/workflows/test-integration-v2-TestHeadscale.yaml index e07f791..ff7dbb1 100644 --- a/.github/workflows/test-integration-v2-TestHeadscale.yaml +++ b/.github/workflows/test-integration-v2-TestHeadscale.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestHeadscale + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestNodeCommand.yaml b/.github/workflows/test-integration-v2-TestNodeCommand.yaml index 4fc087e..4398672 100644 --- a/.github/workflows/test-integration-v2-TestNodeCommand.yaml +++ b/.github/workflows/test-integration-v2-TestNodeCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestNodeCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestNodeExpireCommand.yaml b/.github/workflows/test-integration-v2-TestNodeExpireCommand.yaml index 789f355..f953a1c 100644 --- a/.github/workflows/test-integration-v2-TestNodeExpireCommand.yaml +++ b/.github/workflows/test-integration-v2-TestNodeExpireCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestNodeExpireCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestNodeMoveCommand.yaml b/.github/workflows/test-integration-v2-TestNodeMoveCommand.yaml index 8e261f3..ce5f5b9 100644 --- a/.github/workflows/test-integration-v2-TestNodeMoveCommand.yaml +++ b/.github/workflows/test-integration-v2-TestNodeMoveCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestNodeMoveCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestNodeRenameCommand.yaml b/.github/workflows/test-integration-v2-TestNodeRenameCommand.yaml index bf45bbb..e3ac56a 100644 --- a/.github/workflows/test-integration-v2-TestNodeRenameCommand.yaml +++ b/.github/workflows/test-integration-v2-TestNodeRenameCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestNodeRenameCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestNodeTagCommand.yaml b/.github/workflows/test-integration-v2-TestNodeTagCommand.yaml index 5c9e1db..5e1e578 100644 --- a/.github/workflows/test-integration-v2-TestNodeTagCommand.yaml +++ b/.github/workflows/test-integration-v2-TestNodeTagCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestNodeTagCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestOIDCAuthenticationPingAll.yaml b/.github/workflows/test-integration-v2-TestOIDCAuthenticationPingAll.yaml index 427ed9d..e333be2 100644 --- a/.github/workflows/test-integration-v2-TestOIDCAuthenticationPingAll.yaml +++ b/.github/workflows/test-integration-v2-TestOIDCAuthenticationPingAll.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestOIDCAuthenticationPingAll + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestOIDCExpireNodesBasedOnTokenExpiry.yaml b/.github/workflows/test-integration-v2-TestOIDCExpireNodesBasedOnTokenExpiry.yaml index c2f0c40..1f148c7 100644 --- a/.github/workflows/test-integration-v2-TestOIDCExpireNodesBasedOnTokenExpiry.yaml +++ b/.github/workflows/test-integration-v2-TestOIDCExpireNodesBasedOnTokenExpiry.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestOIDCExpireNodesBasedOnTokenExpiry + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestPingAllByHostname.yaml b/.github/workflows/test-integration-v2-TestPingAllByHostname.yaml index ba508ee..fe9ad76 100644 --- a/.github/workflows/test-integration-v2-TestPingAllByHostname.yaml +++ b/.github/workflows/test-integration-v2-TestPingAllByHostname.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestPingAllByHostname + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestPingAllByIP.yaml b/.github/workflows/test-integration-v2-TestPingAllByIP.yaml index 0404e22..156ef73 100644 --- a/.github/workflows/test-integration-v2-TestPingAllByIP.yaml +++ b/.github/workflows/test-integration-v2-TestPingAllByIP.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestPingAllByIP + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestPreAuthKeyCommand.yaml b/.github/workflows/test-integration-v2-TestPreAuthKeyCommand.yaml index 61e31e1..11f10b0 100644 --- a/.github/workflows/test-integration-v2-TestPreAuthKeyCommand.yaml +++ b/.github/workflows/test-integration-v2-TestPreAuthKeyCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestPreAuthKeyCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestPreAuthKeyCommandReusableEphemeral.yaml b/.github/workflows/test-integration-v2-TestPreAuthKeyCommandReusableEphemeral.yaml index dd11712..1be71ac 100644 --- a/.github/workflows/test-integration-v2-TestPreAuthKeyCommandReusableEphemeral.yaml +++ b/.github/workflows/test-integration-v2-TestPreAuthKeyCommandReusableEphemeral.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestPreAuthKeyCommandReusableEphemeral + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestPreAuthKeyCommandWithoutExpiry.yaml b/.github/workflows/test-integration-v2-TestPreAuthKeyCommandWithoutExpiry.yaml index bddb666..7d290cd 100644 --- a/.github/workflows/test-integration-v2-TestPreAuthKeyCommandWithoutExpiry.yaml +++ b/.github/workflows/test-integration-v2-TestPreAuthKeyCommandWithoutExpiry.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestPreAuthKeyCommandWithoutExpiry + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestResolveMagicDNS.yaml b/.github/workflows/test-integration-v2-TestResolveMagicDNS.yaml index 97f487f..fbcf808 100644 --- a/.github/workflows/test-integration-v2-TestResolveMagicDNS.yaml +++ b/.github/workflows/test-integration-v2-TestResolveMagicDNS.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestResolveMagicDNS + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestSSHIsBlockedInACL.yaml b/.github/workflows/test-integration-v2-TestSSHIsBlockedInACL.yaml index b44c5bc..bd19c8d 100644 --- a/.github/workflows/test-integration-v2-TestSSHIsBlockedInACL.yaml +++ b/.github/workflows/test-integration-v2-TestSSHIsBlockedInACL.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestSSHIsBlockedInACL + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestSSHMultipleUsersAllToAll.yaml b/.github/workflows/test-integration-v2-TestSSHMultipleUsersAllToAll.yaml index f149142..00748aa 100644 --- a/.github/workflows/test-integration-v2-TestSSHMultipleUsersAllToAll.yaml +++ b/.github/workflows/test-integration-v2-TestSSHMultipleUsersAllToAll.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestSSHMultipleUsersAllToAll + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestSSHNoSSHConfigured.yaml b/.github/workflows/test-integration-v2-TestSSHNoSSHConfigured.yaml index d5a7e63..be8f38a 100644 --- a/.github/workflows/test-integration-v2-TestSSHNoSSHConfigured.yaml +++ b/.github/workflows/test-integration-v2-TestSSHNoSSHConfigured.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestSSHNoSSHConfigured + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestSSHOneUserToAll.yaml b/.github/workflows/test-integration-v2-TestSSHOneUserToAll.yaml index 2018a05..62ab49b 100644 --- a/.github/workflows/test-integration-v2-TestSSHOneUserToAll.yaml +++ b/.github/workflows/test-integration-v2-TestSSHOneUserToAll.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestSSHOneUserToAll + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestSSHUserOnlyIsolation.yaml b/.github/workflows/test-integration-v2-TestSSHUserOnlyIsolation.yaml index e12d0f2..8626453 100644 --- a/.github/workflows/test-integration-v2-TestSSHUserOnlyIsolation.yaml +++ b/.github/workflows/test-integration-v2-TestSSHUserOnlyIsolation.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestSSHUserOnlyIsolation + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestTaildrop.yaml b/.github/workflows/test-integration-v2-TestTaildrop.yaml index 368d183..e64eede 100644 --- a/.github/workflows/test-integration-v2-TestTaildrop.yaml +++ b/.github/workflows/test-integration-v2-TestTaildrop.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestTaildrop + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestTailscaleNodesJoiningHeadcale.yaml b/.github/workflows/test-integration-v2-TestTailscaleNodesJoiningHeadcale.yaml index 93ac78c..c406b2b 100644 --- a/.github/workflows/test-integration-v2-TestTailscaleNodesJoiningHeadcale.yaml +++ b/.github/workflows/test-integration-v2-TestTailscaleNodesJoiningHeadcale.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestTailscaleNodesJoiningHeadcale + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/.github/workflows/test-integration-v2-TestUserCommand.yaml b/.github/workflows/test-integration-v2-TestUserCommand.yaml index 0befb94..667ad43 100644 --- a/.github/workflows/test-integration-v2-TestUserCommand.yaml +++ b/.github/workflows/test-integration-v2-TestUserCommand.yaml @@ -35,8 +35,11 @@ jobs: config-example.yaml - name: Run TestUserCommand + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \ diff --git a/cmd/gh-action-integration-generator/main.go b/cmd/gh-action-integration-generator/main.go index 9a7fbf6..d5798a9 100644 --- a/cmd/gh-action-integration-generator/main.go +++ b/cmd/gh-action-integration-generator/main.go @@ -56,8 +56,11 @@ jobs: config-example.yaml - name: Run {{.Name}} + uses: Wandalen/wretry.action@master if: steps.changed-files.outputs.any_changed == 'true' - run: | + with: + attempt_limit: 5 + command: | nix develop --command -- docker run \ --tty --rm \ --volume ~/.cache/hs-integration-go:/go \