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 afae4fec..63017ac6 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 88830aa8..e3d5d293 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 4c2e60bb..dc328ede 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 34f3e106..396994a6 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 4b2b0e0b..9af861f7 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 6635506b..cac45ba1 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 b3addc95..f0985228 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 e424cd09..cee0e35c 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 81639b65..b495b9b3 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 c6fa4aea..fcdceeb0 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 fc9ca0c1..9e24a7d1 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 1a24bce9..e1ff6c3c 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 edd4a0bc..eaf829c5 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 5b551807..41c7db50 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 f6e8ef0e..750ea9ff 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 db840799..df037ee6 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 5d48baf8..48e5e368 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 e07f7913..ff7dbb16 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 4fc087e9..4398672f 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 789f3557..f953a1c4 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 8e261f3a..ce5f5b90 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 bf45bbbf..e3ac56a1 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 5c9e1db6..5e1e5782 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 427ed9dc..e333be2e 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 c2f0c401..1f148c79 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 ba508ee1..fe9ad76c 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 0404e22d..156ef734 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 61e31e11..11f10b08 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 dd117120..1be71ac7 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 bddb6662..7d290cd4 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 97f487f0..fbcf8081 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 b44c5bc7..bd19c8d5 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 f1491423..00748aa2 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 d5a7e634..be8f38a3 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 2018a05d..62ab49be 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 e12d0f2e..86264536 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 368d183c..e64eedec 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 93ac78c1..c406b2b2 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 0befb94f..667ad43e 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 9a7fbf68..d5798a95 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 \