From 3c01f4dd76fe315a16b460689627cf18899484aa Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Fri, 10 Feb 2023 15:25:32 -0800 Subject: [PATCH] chore: remove Explorer build scripts from the Monorepo (#30262) * chore: remove Explorer build scripts from the Monorepo * chore: remove labeler action --- .github/dependabot.yml | 15 +------- .github/labeler.yml | 2 - .github/workflows/explorer.yml | 28 -------------- .github/workflows/explorer_production.yml | 46 ----------------------- .github/workflows/labeler.yml | 15 -------- .mergify.yml | 4 -- .travis.yml | 18 --------- SECURITY.md | 1 - ci/buildkite-pipeline-in-disk.sh | 4 +- ci/buildkite-pipeline.sh | 4 +- ci/buildkite-solana-private.sh | 4 +- 11 files changed, 7 insertions(+), 134 deletions(-) delete mode 100644 .github/labeler.yml delete mode 100644 .github/workflows/explorer.yml delete mode 100644 .github/workflows/explorer_production.yml delete mode 100644 .github/workflows/labeler.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bc4f3b91e1..012372b103 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,17 +13,4 @@ updates: timezone: America/Los_Angeles #labels: # - "automerge" - open-pull-requests-limit: 3 - -- package-ecosystem: npm - directory: "/explorer" - schedule: - interval: daily - time: "01:00" - timezone: America/Los_Angeles - labels: - - "automerge" - commit-message: - prefix: "chore:" - include: "scope" - open-pull-requests-limit: 3 + open-pull-requests-limit: 3 \ No newline at end of file diff --git a/.github/labeler.yml b/.github/labeler.yml deleted file mode 100644 index 5de6b4c8b4..0000000000 --- a/.github/labeler.yml +++ /dev/null @@ -1,2 +0,0 @@ -explorer: - - explorer/**/* diff --git a/.github/workflows/explorer.yml b/.github/workflows/explorer.yml deleted file mode 100644 index 07870147db..0000000000 --- a/.github/workflows/explorer.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Explorer_build&test_on_PR -on: - pull_request: - branches: - - master - paths: - - 'explorer/**' -jobs: - check-explorer: - runs-on: ubuntu-latest - - defaults: - run: - working-directory: explorer - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-node@v3 - with: - node-version: '14' - cache: 'npm' - cache-dependency-path: explorer/package-lock.json - - run: npm i -g npm@7 - - run: npm ci - - run: npm run format - - run: npm run build - - run: npm run test diff --git a/.github/workflows/explorer_production.yml b/.github/workflows/explorer_production.yml deleted file mode 100644 index 0e2724e215..0000000000 --- a/.github/workflows/explorer_production.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Explorer_production_build&test -on: - push: - branches: [master] - paths: - - 'explorer/**' -jobs: - Explorer_production_build_test: - runs-on: ubuntu-latest - defaults: - run: - working-directory: explorer - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - - uses: actions/setup-node@v3 - with: - node-version: '14' - cache: 'npm' - cache-dependency-path: explorer/package-lock.json - - run: npm i -g npm@7 - - run: npm ci - - run: npm run format - - run: npm run build - - run: npm run test - - Explorer_production_deploy: - needs: Explorer_production_build_test - runs-on: ubuntu-latest - defaults: - run: - working-directory: explorer - - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} - - uses: amondnet/vercel-action@v20 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required - github-token: ${{ secrets.PAT }} #Optional - vercel-args: '--prod' #for production - vercel-org-id: ${{ secrets.ORG_ID}} #Required - vercel-project-id: ${{ secrets.PROJECT_ID}} #Required - scope: ${{ secrets.TEAM_ID }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 619ccc585f..0000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "Pull Request Labeler" -on: - - pull_request_target # Danger; in `target` mode secrets are available to this workflow, even when the pull request comes from a community member. - -jobs: - triage: - permissions: - contents: read - pull-requests: write - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - sync-labels: true diff --git a/.mergify.yml b/.mergify.yml index dfd4c05708..db8a32cecf 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -58,10 +58,6 @@ pull_request_rules: # only require docs checks if docs files changed - -files~=^docs/ - status-success=build & deploy docs - - or: - # only require explorer checks if explorer files changed - - status-success=check-explorer - - -files~=^explorer/ actions: merge: method: squash diff --git a/.travis.yml b/.travis.yml index 40667b8e02..c2dd13e325 100644 --- a/.travis.yml +++ b/.travis.yml @@ -70,24 +70,6 @@ jobs: # - sudo apt-get install libssl-dev libudev-dev # docs pull request -# - name: "explorer" -# if: type = pull_request AND branch = master - -# language: node_js -# node_js: -# - "lts/*" - -# cache: -# directories: -# - ~/.npm - -# before_install: -# - .travis/affects.sh explorer/ .travis || travis_terminate 0 -# - cd explorer - -# script: -# - npm run build -# - npm run format - name: "docs" if: type IN (push, pull_request) OR tag IS present language: node_js diff --git a/SECURITY.md b/SECURITY.md index edd3d66057..d099496377 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -124,7 +124,6 @@ $5,000 USD in locked SOL tokens (locked for 12 months) ### Out of Scope: The following components are out of scope for the bounty program * Metrics: `/metrics` in the monorepo as well as https://metrics.solana.com -* Explorer: `/explorer` in the monorepo as well as https://explorer.solana.com * Any encrypted credentials, auth tokens, etc. checked into the repo * Bugs in dependencies. Please take them upstream! * Attacks that require social engineering diff --git a/ci/buildkite-pipeline-in-disk.sh b/ci/buildkite-pipeline-in-disk.sh index 9b41c8dc3e..8b0b973dd4 100644 --- a/ci/buildkite-pipeline-in-disk.sh +++ b/ci/buildkite-pipeline-in-disk.sh @@ -304,11 +304,11 @@ pull_or_push_steps() { # Run the full test suite by default, skipping only if modifications are local # to some particular areas of the tree - if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^explorer/ ^.gitbook; then + if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^.gitbook; then all_test_steps fi - # explorer and docs changes run on Travis or Github actions... + # docs changes run on Travis or Github actions... } diff --git a/ci/buildkite-pipeline.sh b/ci/buildkite-pipeline.sh index 47db6b4b04..2daa1f02b5 100755 --- a/ci/buildkite-pipeline.sh +++ b/ci/buildkite-pipeline.sh @@ -342,11 +342,11 @@ pull_or_push_steps() { # Run the full test suite by default, skipping only if modifications are local # to some particular areas of the tree - if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^explorer/ ^.gitbook; then + if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^.gitbook; then all_test_steps fi - # explorer and docs changes run on Travis or Github actions... + # docs changes run on Travis or Github actions... } diff --git a/ci/buildkite-solana-private.sh b/ci/buildkite-solana-private.sh index ad9bdd465f..bc9ac4f047 100644 --- a/ci/buildkite-solana-private.sh +++ b/ci/buildkite-solana-private.sh @@ -306,11 +306,11 @@ pull_or_push_steps() { # Run the full test suite by default, skipping only if modifications are local # to some particular areas of the tree - if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^explorer/ ^.gitbook; then + if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^.gitbook; then all_test_steps fi - # explorer and docs changes run on Travis or Github actions... + # docs changes run on Travis or Github actions... }