From a9c5cbd74397d37639f32f854dcff0326af6cb8b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 21:49:20 +0800 Subject: [PATCH] v2.0: ci: update docs pipeline (backport of #2162) (#2170) ci: update docs pipeline (#2162) Co-authored-by: yihau --- .github/workflows/docs.yml | 6 +++--- docs/build.sh | 21 --------------------- docs/src/operations/requirements.md | 8 ++++---- 3 files changed, 7 insertions(+), 28 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 17cc728e68bd17..c348d69acbe4ea 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -69,7 +69,7 @@ jobs: needs: - check if: > - github.repository == 'solana-labs/solana' && + github.repository == 'anza-xyz/agave' && needs.check.outputs.continue == 1 # the name is used by .mergify.yml as well name: build & deploy docs @@ -79,9 +79,9 @@ jobs: uses: actions/checkout@v4 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 22 - name: Build working-directory: docs diff --git a/docs/build.sh b/docs/build.sh index 6269eabdbb78b0..4a122678a19b09 100755 --- a/docs/build.sh +++ b/docs/build.sh @@ -12,27 +12,6 @@ source ../ci/rust-version.sh ../ci/docker-run-default-image.sh docs/convert-ascii-to-svg.sh ./set-solana-release-tag.sh -# Get current channel -eval "$(../ci/channel-info.sh)" - -# Synchronize translations with Crowdin only on stable channel -if [ "$CHANNEL" = stable ]; then - echo "Downloading & updating translations..." - npm run crowdin:download - npm run crowdin:upload -fi - # Build from /src into /build npm run build echo $? - -# Publish only from merge commits and beta release tags -if [[ -n $CI ]]; then - if [[ -z $CI_PULL_REQUEST ]]; then - if [[ -n $CI_TAG ]] && [[ $CI_TAG != $BETA_CHANNEL* ]]; then - echo "not a beta tag" - exit 0 - fi - ./publish-docs.sh - fi -fi diff --git a/docs/src/operations/requirements.md b/docs/src/operations/requirements.md index d70e9924217a12..2810c0e749bf5a 100644 --- a/docs/src/operations/requirements.md +++ b/docs/src/operations/requirements.md @@ -20,12 +20,12 @@ The hardware recommendations below are provided as a guide. Operators are encou | Component | Validator Requirements | Additional RPC Node Requirements | |-----------|------------------------|----------------------------------| -| **CPU** | - 2.8GHz base clock speed, or faster
- SHA extensions instruction support
- AMD Gen 3 or newer
- Intel Ice Lake or newer
- Higher clock speed is preferable over more cores
- AVX2 instruction support (to use official release binaries, self-compile otherwise)
- Support for AVX512f is helpful
|| +| **CPU** | - 2.8GHz base clock speed, or faster
- SHA extensions instruction support
- AMD Gen 3 or newer
- Intel Ice Lake or newer
- Higher clock speed is preferable over more cores
- AVX2 instruction support (to use official release binaries, self-compile otherwise)
- Support for AVX512f is helpful
|| | | 12 cores / 24 threads, or more | 16 cores / 32 threads, or more | -| **RAM** | Error Correction Code (ECC) memory is suggested
Motherboard with 512GB capacity suggested || +| **RAM** | Error Correction Code (ECC) memory is suggested
Motherboard with 512GB capacity suggested || | | 256GB or more| 512 GB or more for **all [account indexes](https://docs.solanalabs.com/operations/setup-an-rpc-node#account-indexing)** | -| **Disk** | PCIe Gen3 x4 NVME SSD, or better, on each of:
- **Accounts**: 500GB, or larger. High TBW (Total Bytes Written)
- **Ledger**: 1TB or larger. High TBW suggested
- **Snapshots**: 250GB or larger. High TBW suggested
- **OS**: (Optional) 500GB, or larger. SATA OK

The OS may be installed on the ledger disk, though testing has shown better performance with the ledger on its own disk

Accounts and ledger *can* be stored on the same disk, however due to high IOPS, this is not recommended

The Samsung 970 and 980 Pro series SSDs are popular with the validator community | Consider a larger ledger disk if longer transaction history is required

Accounts and ledger **should not** be stored on the same disk | -| **GPUs** | Not necessary at this time
Operators in the validator community do not use GPUs currently | | +| **Disk** | PCIe Gen3 x4 NVME SSD, or better, on each of:
- **Accounts**: 500GB, or larger. High TBW (Total Bytes Written)
- **Ledger**: 1TB or larger. High TBW suggested
- **Snapshots**: 250GB or larger. High TBW suggested
- **OS**: (Optional) 500GB, or larger. SATA OK

The OS may be installed on the ledger disk, though testing has shown better performance with the ledger on its own disk

Accounts and ledger *can* be stored on the same disk, however due to high IOPS, this is not recommended

The Samsung 970 and 980 Pro series SSDs are popular with the validator community | Consider a larger ledger disk if longer transaction history is required

Accounts and ledger **should not** be stored on the same disk | +| **GPUs** | Not necessary at this time
Operators in the validator community do not use GPUs currently | | ## Virtual machines on Cloud Platforms