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 afae4fec86..63017ac6f1 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 88830aa870..e3d5d2936d 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 4c2e60bbc5..dc328ede5f 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 34f3e10696..396994a6ad 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 4b2b0e0b59..9af861f7ba 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 6635506b39..cac45ba191 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 b3addc9592..f0985228a1 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 e424cd090b..cee0e35c68 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 81639b6523..b495b9b37e 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 c6fa4aeab6..fcdceeb0a2 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 fc9ca0c1f5..9e24a7d1d5 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 1a24bce9cb..e1ff6c3cfc 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 edd4a0bccc..eaf829c553 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 5b55180730..41c7db5094 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 f6e8ef0e9c..750ea9ff0d 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 db84079964..df037ee640 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 5d48baf8b4..48e5e368e7 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 e07f7913ee..ff7dbb1602 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 4fc087e9bf..4398672f33 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 789f3557a0..f953a1c427 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 8e261f3ad2..ce5f5b90be 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 bf45bbbf0d..e3ac56a1a6 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 5c9e1db654..5e1e57822d 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 427ed9dc1f..e333be2e07 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 c2f0c40103..1f148c79b4 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 ba508ee13f..fe9ad76cd2 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 0404e22d48..156ef73400 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 61e31e111d..11f10b0838 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 dd1171202a..1be71ac75d 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 bddb66622e..7d290cd4dd 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 97f487f0e3..fbcf808150 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 b44c5bc7b5..bd19c8d594 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 f14914237c..00748aa29e 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 d5a7e6348e..be8f38a376 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 2018a05d09..62ab49bec8 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 e12d0f2eb6..8626453603 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 368d183c2b..e64eedecf3 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 93ac78c1ef..c406b2b291 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 0befb94f3f..667ad43e4b 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 9a7fbf688d..d5798a95e7 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 \