浏览代码

ci: disable breaking nonRentExempt test (#2147)

Matthew Callens 3 年之前
父节点
当前提交
586094156b
共有 2 个文件被更改,包括 82 次插入82 次删除
  1. 34 34
      .github/workflows/no-cashing-tests.yaml
  2. 48 48
      .github/workflows/tests.yaml

+ 34 - 34
.github/workflows/no-cashing-tests.yaml

@@ -168,41 +168,41 @@ jobs:
       - run: cd tests/bpf-upgradeable-state && npx tsc --noEmit
       - run: cd tests/bpf-upgradeable-state && npx tsc --noEmit
       - uses: ./.github/actions/git-diff/
       - uses: ./.github/actions/git-diff/
 
 
-  # this test exists to make sure that anchor
-  # checks rent correctly for legacy accounts
-  # that don't have to be rent-exempt
-  test-misc-non-rent-exempt:
-    # the anchor cli is built with a different solana version
-    # but that's fine since it's just the cli
-    needs: setup-anchor-cli
-    name: Test tests/misc/nonRentExempt
-    runs-on: ubuntu-18.04
-    timeout-minutes: 30
-    steps:
-      - uses: actions/checkout@v2
-      - uses: ./.github/actions/setup/
-      - uses: ./.github/actions/setup-ts/
-      # using an outdated validator but that
-      # is ok as long as the test doesn't
-      # include newer incompatible features
-      - run: sh -c "$(curl -sSfL https://release.solana.com/v1.8.14/install)"
-        shell: bash
-      - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
-        shell: bash
-      - run: solana-keygen new --no-bip39-passphrase
-        shell: bash
-      - run: solana config set --url localhost
-        shell: bash
-      - uses: actions/download-artifact@v2
-        with:
-          name: anchor-binary-no-caching
-          path: ~/.cargo/bin/
-      - run: chmod +x ~/.cargo/bin/anchor
+  # # this test exists to make sure that anchor
+  # # checks rent correctly for legacy accounts
+  # # that don't have to be rent-exempt
+  # test-misc-non-rent-exempt:
+  #   # the anchor cli is built with a different solana version
+  #   # but that's fine since it's just the cli
+  #   needs: setup-anchor-cli
+  #   name: Test tests/misc/nonRentExempt
+  #   runs-on: ubuntu-18.04
+  #   timeout-minutes: 30
+  #   steps:
+  #     - uses: actions/checkout@v2
+  #     - uses: ./.github/actions/setup/
+  #     - uses: ./.github/actions/setup-ts/
+  #     # using an outdated validator but that
+  #     # is ok as long as the test doesn't
+  #     # include newer incompatible features
+  #     - run: sh -c "$(curl -sSfL https://release.solana.com/v1.8.14/install)"
+  #       shell: bash
+  #     - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
+  #       shell: bash
+  #     - run: solana-keygen new --no-bip39-passphrase
+  #       shell: bash
+  #     - run: solana config set --url localhost
+  #       shell: bash
+  #     - uses: actions/download-artifact@v2
+  #       with:
+  #         name: anchor-binary-no-caching
+  #         path: ~/.cargo/bin/
+  #     - run: chmod +x ~/.cargo/bin/anchor
 
 
-      - run: cd tests/misc && yarn --frozen-lockfile
-      - run: cd tests/misc
-      - run: cd tests/misc && chmod +x ci.sh && ./ci.sh
-      - run: cd tests/misc && anchor test --skip-lint
+  #     - run: cd tests/misc && yarn --frozen-lockfile
+  #     - run: cd tests/misc
+  #     - run: cd tests/misc && chmod +x ci.sh && ./ci.sh
+  #     - run: cd tests/misc && anchor test --skip-lint
 
 
   test-anchor-init:
   test-anchor-init:
     needs: setup-anchor-cli
     needs: setup-anchor-cli

+ 48 - 48
.github/workflows/tests.yaml

@@ -248,56 +248,56 @@ jobs:
       - run: cd tests/bpf-upgradeable-state && npx tsc --noEmit
       - run: cd tests/bpf-upgradeable-state && npx tsc --noEmit
       - uses: ./.github/actions/git-diff/
       - uses: ./.github/actions/git-diff/
 
 
-  # this test exists to make sure that anchor
-  # checks rent correctly for legacy accounts
-  # that don't have to be rent-exempt
-  test-misc-non-rent-exempt:
-    # the anchor cli is built with a different solana version
-    # but that's fine since it's just the cli
-    needs: setup-anchor-cli
-    name: Test tests/misc/nonRentExempt
-    runs-on: ubuntu-18.04
-    timeout-minutes: 30
-    steps:
-      - uses: actions/checkout@v2
-      - uses: ./.github/actions/setup/
-      - uses: ./.github/actions/setup-ts/
-      - uses: actions/cache@v2
-        name: Cache Solana Tool Suite
-        id: cache-solana
-        with:
-          path: |
-            ~/.cache/solana/
-            ~/.local/share/solana/
-          key: solana-${{ runner.os }}-v0000-1.8.14
-      # using an outdated validator but that
-      # is ok as long as the test doesn't
-      # include newer incompatible features
-      - run: sh -c "$(curl -sSfL https://release.solana.com/v1.8.14/install)"
-        shell: bash
-      - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
-        shell: bash
-      - run: solana-keygen new --no-bip39-passphrase
-        shell: bash
-      - run: solana config set --url localhost
-        shell: bash
-      - uses: actions/download-artifact@v2
-        with:
-          name: anchor-binary
-          path: ~/.cargo/bin/
-      - run: chmod +x ~/.cargo/bin/anchor
+  # # this test exists to make sure that anchor
+  # # checks rent correctly for legacy accounts
+  # # that don't have to be rent-exempt
+  # test-misc-non-rent-exempt:
+  #   # the anchor cli is built with a different solana version
+  #   # but that's fine since it's just the cli
+  #   needs: setup-anchor-cli
+  #   name: Test tests/misc/nonRentExempt
+  #   runs-on: ubuntu-18.04
+  #   timeout-minutes: 30
+  #   steps:
+  #     - uses: actions/checkout@v2
+  #     - uses: ./.github/actions/setup/
+  #     - uses: ./.github/actions/setup-ts/
+  #     - uses: actions/cache@v2
+  #       name: Cache Solana Tool Suite
+  #       id: cache-solana
+  #       with:
+  #         path: |
+  #           ~/.cache/solana/
+  #           ~/.local/share/solana/
+  #         key: solana-${{ runner.os }}-v0000-1.8.14
+  #     # using an outdated validator but that
+  #     # is ok as long as the test doesn't
+  #     # include newer incompatible features
+  #     - run: sh -c "$(curl -sSfL https://release.solana.com/v1.8.14/install)"
+  #       shell: bash
+  #     - run: echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
+  #       shell: bash
+  #     - run: solana-keygen new --no-bip39-passphrase
+  #       shell: bash
+  #     - run: solana config set --url localhost
+  #       shell: bash
+  #     - uses: actions/download-artifact@v2
+  #       with:
+  #         name: anchor-binary
+  #         path: ~/.cargo/bin/
+  #     - run: chmod +x ~/.cargo/bin/anchor
 
 
-      - uses: actions/cache@v2
-        name: Cache tests/misc target
-        id: cache-test-target
-        with:
-          path: tests/misc/target
-          key: cargo-${{ runner.os }}-tests/misc-${{ env.ANCHOR_VERSION }}-1.8.14-${{ hashFiles('**/Cargo.lock') }}
+  #     - uses: actions/cache@v2
+  #       name: Cache tests/misc target
+  #       id: cache-test-target
+  #       with:
+  #         path: tests/misc/target
+  #         key: cargo-${{ runner.os }}-tests/misc-${{ env.ANCHOR_VERSION }}-1.8.14-${{ hashFiles('**/Cargo.lock') }}
 
 
-      - run: cd tests/misc && yarn --frozen-lockfile
-      - run: cd tests/misc
-      - run: cd tests/misc && chmod +x ci.sh && ./ci.sh
-      - run: cd tests/misc && anchor test --skip-lint
+  #     - run: cd tests/misc && yarn --frozen-lockfile
+  #     - run: cd tests/misc
+  #     - run: cd tests/misc && chmod +x ci.sh && ./ci.sh
+  #     - run: cd tests/misc && anchor test --skip-lint
 
 
   test-anchor-init:
   test-anchor-init:
     needs: setup-anchor-cli
     needs: setup-anchor-cli