From 22188e922b97aecdb51fd28fe5318debd81390db Mon Sep 17 00:00:00 2001 From: pngwn Date: Thu, 1 Feb 2024 10:24:15 +0000 Subject: [PATCH] Debug ci 2 (#7250) * changes * fix --- .github/actions/install-all-deps/action.yml | 2 +- .github/workflows/deploy+test-visual.yml | 10 +++++++--- .github/workflows/deploy-spaces.yml | 14 +++++++++----- .github/workflows/deploy-website.yml | 10 +++++++--- .github/workflows/generate-changeset.yml | 6 +++++- .github/workflows/publish.yml | 2 +- .github/workflows/test-functional.yml | 9 ++++++--- .github/workflows/test-hygiene.yml | 8 ++++++-- .github/workflows/test-python.yml | 10 +++++++--- .github/workflows/tests-js.yml | 8 ++++---- 10 files changed, 53 insertions(+), 26 deletions(-) diff --git a/.github/actions/install-all-deps/action.yml b/.github/actions/install-all-deps/action.yml index 66f7d94de2..69d4fd5a06 100644 --- a/.github/actions/install-all-deps/action.yml +++ b/.github/actions/install-all-deps/action.yml @@ -85,7 +85,7 @@ runs: python -m pip install -r test/requirements.txt python -m pip install -r client/python/test/requirements.txt - name: install-frontend - uses: "./.github/actions/install-frontend-deps" + uses: "@gradio-app/gradio/.github/actions/install-frontend-deps@main"" with: always_install_pnpm: ${{ inputs.always_install_pnpm }} node_auth_token: ${{ inputs.node_auth_token }} diff --git a/.github/workflows/deploy+test-visual.yml b/.github/workflows/deploy+test-visual.yml index c6147bf8ec..dd82066fb4 100644 --- a/.github/workflows/deploy+test-visual.yml +++ b/.github/workflows/deploy+test-visual.yml @@ -11,7 +11,7 @@ permissions: concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true jobs: @@ -27,11 +27,15 @@ jobs: labels: ${{ steps.changes.outputs.labels }} steps: - uses: actions/checkout@v3 - - uses: "./.github/actions/changes" + - uses: "@gradio-app/gradio/.github/actions/changes@main" id: changes with: type: "visual" token: ${{ secrets.GITHUB_TOKEN }} + - name: echo github context + if: always() + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + comment-chromatic-start: uses: "./.github/workflows/comment-queue.yml" @@ -61,7 +65,7 @@ jobs: ref: ${{ needs.changes.outputs.sha }} repository: ${{ needs.changes.outputs.source_repo }} - name: install dependencies - uses: "./.github/actions/install-all-deps" + uses: "@gradio-app/gradio/.github/actions/install-all-deps@main" with: always_install_pnpm: true skip_build: 'true' diff --git a/.github/workflows/deploy-spaces.yml b/.github/workflows/deploy-spaces.yml index cc6f523334..e5b70f6d3e 100644 --- a/.github/workflows/deploy-spaces.yml +++ b/.github/workflows/deploy-spaces.yml @@ -9,7 +9,7 @@ on: permissions: statuses: write concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true jobs: @@ -25,19 +25,24 @@ jobs: merge_sha: ${{ steps.changes.outputs.merge_sha }} steps: - uses: actions/checkout@v3 - - uses: "./.github/actions/changes" + - uses: "@gradio-app/gradio/.github/actions/changes@main" id: changes with: type: "functional" name: "deploy / spaces" token: ${{ secrets.GITHUB_TOKEN }} commit_status: false + - name: echo github context + if: always() + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + comment-spaces-start: + needs: changes uses: "./.github/workflows/comment-queue.yml" secrets: gh_token: ${{ secrets.COMMENT_TOKEN }} with: - pr_number: ${{ github.event.pull_request.number }} + pr_number: ${{ needs.changes.outputs.pr_number }} message: spaces~pending~null deploy-spaces: outputs: @@ -107,7 +112,7 @@ jobs: echo "SPACE_URL=$(cat url.txt)" >> $GITHUB_OUTPUT - name: Upload Website Demos if: > - github.event.workflow_run.event == 'workflow_dispatch' && + github.event == 'workflow_dispatch' && github.event.workflow_run.conclusion == 'success' id: upload-website-demos run: | @@ -118,7 +123,6 @@ jobs: uses: "./.github/workflows/comment-queue.yml" needs: [deploy-spaces, changes] if: > - github.event_name == 'pull_request' || github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && needs.deploy-spaces.result == 'success' diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 71fbea1fd0..440f218e45 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -10,7 +10,7 @@ permissions: statuses: write concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true @@ -32,12 +32,16 @@ jobs: found_pr: ${{ steps.changes.outputs.found_pr }} steps: - uses: actions/checkout@v3 - - uses: "./.github/actions/changes" + - uses: "@gradio-app/gradio/.github/actions/changes@main" id: changes with: type: "website" token: ${{ secrets.GITHUB_TOKEN }} commit_status: false + - name: echo github context + if: always() + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + comment-deploy-start: needs: changes uses: "./.github/workflows/comment-queue.yml" @@ -59,7 +63,7 @@ jobs: ref: ${{ needs.changes.outputs.merge_sha }} repository: ${{ needs.changes.outputs.source_repo }} - name: install dependencies - uses: "./.github/actions/install-all-deps" + uses: "@gradio-app/gradio/.github/actions/install-all-deps@main" with: always_install_pnpm: true skip_build: true diff --git a/.github/workflows/generate-changeset.yml b/.github/workflows/generate-changeset.yml index 3dfca9367a..21e1ef2425 100644 --- a/.github/workflows/generate-changeset.yml +++ b/.github/workflows/generate-changeset.yml @@ -10,7 +10,7 @@ env: NODE_OPTIONS: "--max-old-space-size=4096" concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true jobs: @@ -28,6 +28,10 @@ jobs: uses: gradio-app/github/actions/find-pr@main with: github_token: ${{ secrets.GITHUB_TOKEN }} + - name: echo github context + if: always() + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + comment-changes-start: uses: "./.github/workflows/comment-queue.yml" needs: get-pr diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aded78593c..dc4a34fd20 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 persist-credentials: false - name: install dependencies - uses: "./.github/actions/install-all-deps" + uses: "@gradio-app/gradio/.github/actions/install-all-deps@main" with: always_install_pnpm: true node_auth_token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/test-functional.yml b/.github/workflows/test-functional.yml index 5dae25a678..6aa01779b3 100644 --- a/.github/workflows/test-functional.yml +++ b/.github/workflows/test-functional.yml @@ -10,7 +10,7 @@ permissions: statuses: write concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true jobs: @@ -26,11 +26,14 @@ jobs: source_repo: ${{ steps.changes.outputs.source_repo }} steps: - uses: actions/checkout@v3 - - uses: "./.github/actions/changes" + - uses: "@gradio-app/gradio/.github/actions/changes@main" id: changes with: type: "functional" token: ${{ secrets.GITHUB_TOKEN }} + - name: echo github context + if: always() + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" test-functional: name: "test-functional" @@ -45,7 +48,7 @@ jobs: repository: ${{ needs.changes.outputs.source_repo }} - name: install dependencies id: install_deps - uses: "./.github/actions/install-all-deps" + uses: "@gradio-app/gradio/.github/actions/install-all-deps@main" with: always_install_pnpm: true - name: install outbreak_forecast dependencies diff --git a/.github/workflows/test-hygiene.yml b/.github/workflows/test-hygiene.yml index d5c18297af..384ee42f68 100644 --- a/.github/workflows/test-hygiene.yml +++ b/.github/workflows/test-hygiene.yml @@ -10,7 +10,7 @@ permissions: statuses: write concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true jobs: @@ -26,11 +26,15 @@ jobs: merge_sha: ${{ steps.changes.outputs.merge_sha }} steps: - uses: actions/checkout@v3 - - uses: "./.github/actions/changes" + - uses: "@gradio-app/gradio/.github/actions/changes@main" id: changes with: type: "all" token: ${{ secrets.GITHUB_TOKEN }} + - name: echo github context + if: always() + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + test-hygiene: name: "test-hygiene" runs-on: ubuntu-latest diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index a33f8dcdc6..68926beccf 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -10,7 +10,7 @@ permissions: statuses: write concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true env: @@ -31,12 +31,16 @@ jobs: labels: ${{ steps.changes.outputs.labels }} steps: - uses: actions/checkout@v3 - - uses: "./.github/actions/changes" + - uses: "@gradio-app/gradio/.github/actions/changes@main" id: changes with: type: "gradio" name: "test / python / linux" token: ${{ secrets.GITHUB_TOKEN }} + - name: echo github context + if: always() + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + test-python: needs: [changes] if: needs.changes.outputs.should_run == 'true' @@ -57,7 +61,7 @@ jobs: repository: ${{ needs.changes.outputs.source_repo }} - name: install dependencies id: install_deps - uses: "./.github/actions/install-all-deps" + uses: "@gradio-app/gradio/.github/actions/install-all-deps@main" with: python_version: "3.8" os: ${{ matrix.os }} diff --git a/.github/workflows/tests-js.yml b/.github/workflows/tests-js.yml index 5597d13040..06518fc16e 100644 --- a/.github/workflows/tests-js.yml +++ b/.github/workflows/tests-js.yml @@ -17,7 +17,7 @@ env: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} concurrency: - group: "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" cancel-in-progress: true jobs: @@ -33,14 +33,14 @@ jobs: source_repo: ${{ steps.changes.outputs.source_repo }} steps: - uses: actions/checkout@v3 - - uses: "./.github/actions/changes" + - uses: "@gradio-app/gradio/.github/actions/changes@main" id: changes with: type: "js" token: ${{ secrets.GITHUB_TOKEN }} - name: echo github context if: always() - run: echo "${{ github.event.workflow_run.head_repository.full_name }}::${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" + run: echo "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}" test-js: needs: changes @@ -53,7 +53,7 @@ jobs: ref: ${{ needs.changes.outputs.merge_sha }} repository: ${{ needs.changes.outputs.source_repo }} - name: install dependencies - uses: "./.github/actions/install-frontend-deps" + uses: "@gradio-app/gradio/.github/actions/install-frontend-deps@main"" with: always_install_pnpm: true - name: build client