فهرست منبع

chore: remove Explorer build scripts from the Monorepo (#30262)

* chore: remove Explorer build scripts from the Monorepo

* chore: remove labeler action
Steven Luscher 2 سال پیش
والد
کامیت
3c01f4dd76

+ 1 - 14
.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

+ 0 - 2
.github/labeler.yml

@@ -1,2 +0,0 @@
-explorer:
-  - explorer/**/*

+ 0 - 28
.github/workflows/explorer.yml

@@ -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

+ 0 - 46
.github/workflows/explorer_production.yml

@@ -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 }}

+ 0 - 15
.github/workflows/labeler.yml

@@ -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

+ 0 - 4
.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

+ 0 - 18
.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

+ 0 - 1
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

+ 2 - 2
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...
 }
 
 

+ 2 - 2
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...
 }
 
 

+ 2 - 2
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...
 }