From 1ea0bd398e9efb34996c8dfbe28f1f44c1f9176d Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Fri, 3 May 2024 10:54:56 -0700 Subject: [PATCH] ci: drop integration tests of unsupported --- .github/workflows/cron-stale-prs.yml | 41 ---------- .github/workflows/test-dapp-otc.yml | 82 ------------------- .github/workflows/test-dapp-pegasus.yml | 82 ------------------- .../workflows/test-dapp-simple-exchange.yml | 82 ------------------- 4 files changed, 287 deletions(-) delete mode 100644 .github/workflows/cron-stale-prs.yml delete mode 100644 .github/workflows/test-dapp-otc.yml delete mode 100644 .github/workflows/test-dapp-pegasus.yml delete mode 100644 .github/workflows/test-dapp-simple-exchange.yml diff --git a/.github/workflows/cron-stale-prs.yml b/.github/workflows/cron-stale-prs.yml deleted file mode 100644 index 01a9051c0b3..00000000000 --- a/.github/workflows/cron-stale-prs.yml +++ /dev/null @@ -1,41 +0,0 @@ -on: - schedule: - - cron: '0 8 * * *' - workflow_dispatch: - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OWNER: ${{ github.repository_owner }} - REPO: ${{ github.event.repository.name }} - -jobs: - find_stale_prs: - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - shell: bash - run: | - stale_prs=$(gh pr list -R "$OWNER/$REPO" --json url,updatedAt,title,state,number,mergeable,labels,id,createdAt,author -L 1000 -s open -q '.|sort_by(.author.login)|.[]|(now - (.updatedAt|fromdate)) as $u|select(.state=="OPEN" and (.labels[].name|contains("merge")) and $u>86400)|{url:.url, author: .author.login, title: .title, updated: .updatedAt, u: $u, number: .number}' | jq -c .) - - if [[ "$stale_prs" != "" ]]; then - while IFS= read -r line; do - echo "Stale PR: $line" - prNum=$(echo "$line" | jq -r .number) - prOpener=$(echo "$line" | jq -r .author) - gh pr comment -R "$OWNER/$REPO" $prNum -b "@${prOpener} - This PR appears to be stuck. It's had a merge label for > 24 hours" - done <<< "$stale_prs" - echo "detected stale PRs" - exit 1 - else - echo "no stale PRs detected" - exit 0 - fi - - name: notify on failure - if: failure() - uses: ./.github/actions/notify-status - with: - webhook: ${{ secrets.SLACK_WEBHOOK_URL }} - from: ${{ secrets.NOTIFY_EMAIL_FROM }} - to: ${{ secrets.NOTIFY_EMAIL_TO }} - password: ${{ secrets.NOTIFY_EMAIL_PASSWORD }} diff --git a/.github/workflows/test-dapp-otc.yml b/.github/workflows/test-dapp-otc.yml deleted file mode 100644 index fe83c6ce3b4..00000000000 --- a/.github/workflows/test-dapp-otc.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Test Dapp OTC Desk - -on: - pull_request: - merge_group: - schedule: - - cron: '17 6 * * *' -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - test-dapp: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['18.x'] - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'true' - path: ./agoric-sdk - - uses: ./agoric-sdk/.github/actions/restore-node - with: - node-version: ${{ matrix.node-version }} - path: ./agoric-sdk - - - name: yarn link - run: | - yarn link-cli ~/bin/agoric - echo "/home/runner/bin" >> $GITHUB_PATH - working-directory: ./agoric-sdk - - # Select a branch on dapp to test against by adding text to the body of the - # pull request. For example: #dapp-encouragement-branch: zoe-release-0.7.0 - # The default is 'main' - - name: Get the appropriate dapp branch - id: get-branch - uses: actions/github-script@v7 - with: - result-encoding: string - script: | - let branch = 'main'; - if (context.payload.pull_request) { - const { body } = context.payload.pull_request; - const regex = /^\#dapp-otc-branch:\s+(\S+)/m; - const result = regex.exec(body); - if (result) { - branch = result[1]; - } - } - console.log(branch); - return branch; - - - name: Check out dapp - uses: actions/checkout@v4 - with: - repository: Agoric/dapp-otc - path: dapp - ref: ${{steps.get-branch.outputs.result}} - - - name: Agoric install in dapp - run: agoric install - working-directory: ./dapp - - - name: yarn build in dapp - run: yarn build - working-directory: ./dapp - - - name: yarn test in dapp - run: yarn test - working-directory: ./dapp - - - name: notify on failure - if: failure() && github.event_name != 'pull_request' - uses: ./agoric-sdk/.github/actions/notify-status - with: - webhook: ${{ secrets.SLACK_WEBHOOK_URL }} - from: ${{ secrets.NOTIFY_EMAIL_FROM }} - to: ${{ secrets.NOTIFY_EMAIL_TO }} - password: ${{ secrets.NOTIFY_EMAIL_PASSWORD }} diff --git a/.github/workflows/test-dapp-pegasus.yml b/.github/workflows/test-dapp-pegasus.yml deleted file mode 100644 index b1d51aece87..00000000000 --- a/.github/workflows/test-dapp-pegasus.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Test Dapp Pegasus - -on: - pull_request: - merge_group: - schedule: - - cron: '17 6 * * *' -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - test-dapp: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['18.x'] - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'true' - path: ./agoric-sdk - - uses: ./agoric-sdk/.github/actions/restore-node - with: - node-version: ${{ matrix.node-version }} - path: ./agoric-sdk - - - name: yarn link - run: | - yarn link-cli ~/bin/agoric - echo "/home/runner/bin" >> $GITHUB_PATH - working-directory: ./agoric-sdk - - # Select a branch on dapp to test against by adding text to the body of the - # pull request. For example: #dapp-encouragement-branch: zoe-release-0.7.0 - # The default is 'main' - - name: Get the appropriate dapp branch - id: get-branch - uses: actions/github-script@v7 - with: - result-encoding: string - script: | - let branch = 'main'; - if (context.payload.pull_request) { - const { body } = context.payload.pull_request; - const regex = /^\#dapp-pegasus-branch:\s+(\S+)/m; - const result = regex.exec(body); - if (result) { - branch = result[1]; - } - } - console.log(branch); - return branch; - - - name: Check out dapp - uses: actions/checkout@v4 - with: - repository: Agoric/dapp-pegasus - path: dapp - ref: ${{steps.get-branch.outputs.result}} - - - name: Agoric install in dapp - run: agoric install - working-directory: ./dapp - - - name: yarn build in dapp - run: yarn build - working-directory: ./dapp - - - name: yarn test in dapp - run: yarn test - working-directory: ./dapp - - - name: notify on failure - if: failure() && github.event_name != 'pull_request' - uses: ./agoric-sdk/.github/actions/notify-status - with: - webhook: ${{ secrets.SLACK_WEBHOOK_URL }} - from: ${{ secrets.NOTIFY_EMAIL_FROM }} - to: ${{ secrets.NOTIFY_EMAIL_TO }} - password: ${{ secrets.NOTIFY_EMAIL_PASSWORD }} diff --git a/.github/workflows/test-dapp-simple-exchange.yml b/.github/workflows/test-dapp-simple-exchange.yml deleted file mode 100644 index 75ea21735a3..00000000000 --- a/.github/workflows/test-dapp-simple-exchange.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Test Dapp Simple Exchange - -on: - pull_request: - merge_group: - schedule: - - cron: '17 6 * * *' -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - test-dapp: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['18.x'] - - steps: - - uses: actions/checkout@v4 - with: - submodules: 'true' - path: ./agoric-sdk - - uses: ./agoric-sdk/.github/actions/restore-node - with: - node-version: ${{ matrix.node-version }} - path: ./agoric-sdk - - - name: yarn link - run: | - yarn link-cli ~/bin/agoric - echo "/home/runner/bin" >> $GITHUB_PATH - working-directory: ./agoric-sdk - - # Select a branch on dapp to test against by adding text to the body of the - # pull request. For example: #dapp-encouragement-branch: zoe-release-0.7.0 - # The default is 'main' - - name: Get the appropriate dapp branch - id: get-branch - uses: actions/github-script@v7 - with: - result-encoding: string - script: | - let branch = 'main'; - if (context.payload.pull_request) { - const { body } = context.payload.pull_request; - const regex = /^\#dapp-simple-exchange-branch:\s+(\S+)/m; - const result = regex.exec(body); - if (result) { - branch = result[1]; - } - } - console.log(branch); - return branch; - - - name: Check out dapp - uses: actions/checkout@v4 - with: - repository: Agoric/dapp-simple-exchange - path: dapp - ref: ${{steps.get-branch.outputs.result}} - - - name: Agoric install in dapp - run: agoric install - working-directory: ./dapp - - - name: yarn build in dapp - run: yarn build - working-directory: ./dapp - - - name: yarn test in dapp - run: yarn test - working-directory: ./dapp - - - name: notify on failure - if: failure() && github.event_name != 'pull_request' - uses: ./agoric-sdk/.github/actions/notify-status - with: - webhook: ${{ secrets.SLACK_WEBHOOK_URL }} - from: ${{ secrets.NOTIFY_EMAIL_FROM }} - to: ${{ secrets.NOTIFY_EMAIL_TO }} - password: ${{ secrets.NOTIFY_EMAIL_PASSWORD }}