From e23c27e90524c3c3e93525d03f18408b84372012 Mon Sep 17 00:00:00 2001 From: Guillaume LEGENDRE Date: Thu, 18 Apr 2024 15:18:39 +0200 Subject: [PATCH] Add tailscale action to push_test (#7709) --- .github/workflows/push_tests.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_tests.yml b/.github/workflows/push_tests.yml index 037601e6154f..803da3e51f8e 100644 --- a/.github/workflows/push_tests.yml +++ b/.github/workflows/push_tests.yml @@ -60,7 +60,7 @@ jobs: runs-on: [single-gpu, nvidia-gpu, t4, ci] container: image: diffusers/diffusers-pytorch-cuda - options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --gpus 0 + options: --shm-size "16gb" --ipc host -v /mnt/hf_cache:/mnt/cache/ --gpus 0 --privileged steps: - name: Checkout diffusers uses: actions/checkout@v3 @@ -69,6 +69,12 @@ jobs: - name: NVIDIA-SMI run: | nvidia-smi + - name: Tailscale + uses: huggingface/tailscale-action@v1 + with: + authkey: ${{ secrets.TAILSCALE_SSH_AUTHKEY }} + slackChannel: ${{ secrets.SLACK_CIFEEDBACK_CHANNEL }} + slackToken: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} - name: Install dependencies run: | python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH" @@ -87,6 +93,11 @@ jobs: -s -v -k "not Flax and not Onnx" \ --make-reports=tests_pipeline_${{ matrix.module }}_cuda \ tests/pipelines/${{ matrix.module }} + - name: Tailscale Wait + if: ${{ failure() || runner.debug == '1' }} + uses: huggingface/tailscale-action@v1 + with: + waitForSSH: true - name: Failure short reports if: ${{ failure() }} run: | @@ -425,4 +436,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: examples_test_reports - path: reports \ No newline at end of file + path: reports