Skip to content

Update archived repos#169

Open
boris wants to merge 3 commits into
mainfrom
feat/fix-archived-repos
Open

Update archived repos#169
boris wants to merge 3 commits into
mainfrom
feat/fix-archived-repos

Conversation

@boris

@boris boris commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Documentation
    • Updated testnet and mainnet join procedures with refreshed binary download/installation based on live network versions.
    • Streamlined configuration preparation by directly fetching the current genesis.json, updating required parameters, and adding checksum verification.
    • Improved guidance for persistent peer connectivity and simplified sync/troubleshooting recommendations.
    • Increased reliability settings by raising LimitNOFILE in the relevant systemd service units.

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4a8d60c6-934e-4fa1-ac56-64eca8558a12

📥 Commits

Reviewing files that changed from the base of the PR and between 475575b and faf7c98.

📒 Files selected for processing (1)
  • .gitbook/infra/join-a-network.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • .gitbook/infra/join-a-network.mdx

📝 Walkthrough

Walkthrough

Updates join-a-network.mdx to replace legacy binary download and repository-clone patterns with pinned injective-core release zips, direct genesis fetches, checksum verifications, and updated peer-list guidance for testnet and mainnet. Adds LimitNOFILE=65535 to both systemd service units.

Changes

Join-a-network documentation refresh

Layer / File(s) Summary
Testnet install, config, and systemd updates
.gitbook/infra/join-a-network.mdx
Testnet binary install steps query a live node for the current version and download a pinned injective-core release zip. Genesis retrieval, gas price and seed edits, checksum verification, and persistent peer guidance replace the legacy workflow. LimitNOFILE=65535 is added to the testnet systemd unit; the page timestamp is refreshed.
Mainnet install, config, systemd, and sync guidance updates
.gitbook/infra/join-a-network.mdx
Mainnet binary install steps query a live node for the current version and download a pinned injective-core release zip. Genesis retrieval, minimum-gas-prices, seeds, timeout_commit, checksum verification, and persistent peer guidance replace the legacy workflow. LimitNOFILE=65535 is added to the mainnet systemd unit. Snapshot sync troubleshooting removes the Bware Labs bullet and narrows peer-list guidance.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 Hop hop, the docs are neat,
Pinned zips and checksums on repeat.
Genesis fetched, the seeds aligned,
Peers and limits all refined.
A rabbit nods: the path is clear,
Fresh network steps are hopping here! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is related to the main doc changes, which replace legacy/archived repo-based setup steps with updated sources and instructions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/fix-archived-repos

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mintlify

mintlify Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
injective_docs 🟢 Ready View Preview Jun 22, 2026, 9:51 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

# version reported by a public mainnet node and use the matching injective-core release.
curl -s https://sentry.lcd.injective.network/cosmos/base/tendermint/v1beta1/node_info | jq -r '.application_version.version'

wget https://github.com/InjectiveFoundation/injective-core/releases/download/v1.20.0-1780128924/linux-amd64.zip

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right version?

@boris boris requested review from Ri-go and djosse June 23, 2026 13:32
@boris boris marked this pull request as ready for review June 23, 2026 13:32

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
.gitbook/infra/join-a-network.mdx (1)

202-206: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Version-check guidance conflicts with hardcoded release URLs

These sections tell operators to verify the live network version, but the actual install command still downloads a fixed tag. After network upgrades, this will guide users into a mismatch unless they manually rewrite the URL.

Suggested doc fix
-# The live testnet currently runs v1.20.0-beta.2. Before installing, verify the
-# version reported by a public testnet node and use the matching injective-core release.
+# Before installing, verify the version reported by a public testnet node.
 curl -s https://testnet.sentry.lcd.injective.network/cosmos/base/tendermint/v1beta1/node_info | jq -r '.application_version.version'
-
-wget https://github.com/InjectiveFoundation/injective-core/releases/download/v1.20.0-beta.2-1779837158/linux-amd64.zip
+# Then download the corresponding injective-core release tag (including build suffix) from:
+# https://github.com/InjectiveFoundation/injective-core/releases
+wget https://github.com/InjectiveFoundation/injective-core/releases/download/<matching-tag>/linux-amd64.zip
-# The live mainnet currently runs v1.20.0. Before installing, verify the
-# version reported by a public mainnet node and use the matching injective-core release.
+# Before installing, verify the version reported by a public mainnet node.
 curl -s https://sentry.lcd.injective.network/cosmos/base/tendermint/v1beta1/node_info | jq -r '.application_version.version'
-
-wget https://github.com/InjectiveFoundation/injective-core/releases/download/v1.20.0-1780128924/linux-amd64.zip
+# Then download the corresponding injective-core release tag (including build suffix) from:
+# https://github.com/InjectiveFoundation/injective-core/releases
+wget https://github.com/InjectiveFoundation/injective-core/releases/download/<matching-tag>/linux-amd64.zip

Also applies to: 321-325

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.gitbook/infra/join-a-network.mdx around lines 202 - 206, The documentation
in the testnet setup section provides a version verification command via curl
but then downloads a hardcoded release URL (v1.20.0-beta.2-1779837158), creating
a mismatch that requires manual updates after network upgrades. Update the wget
command to either demonstrate how to dynamically substitute the verified version
from the curl output into the download URL, or use a variable or placeholder to
make it explicit that the hardcoded version must be replaced with the actual
version verified from the live testnet node. This applies to both the initial
section and the additional location at lines 321-325 to ensure consistency
across the documentation.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.gitbook/infra/join-a-network.mdx:
- Around line 233-235: Add AWS CLI installation instructions as a prerequisite
step before the aws s3 cp command that downloads the genesis file. Include
installation commands for multiple platforms (such as apt-get install awscli for
Linux distributions and brew install awscli for macOS) to ensure users on fresh
hosts can successfully execute the aws s3 cp command without encountering
command-not-found errors. Place these installation instructions in a new
prerequisite section that appears before the step containing the aws s3 cp
--no-sign-request s3://injective-snapshots/testnet/genesis.json command.

---

Duplicate comments:
In @.gitbook/infra/join-a-network.mdx:
- Around line 202-206: The documentation in the testnet setup section provides a
version verification command via curl but then downloads a hardcoded release URL
(v1.20.0-beta.2-1779837158), creating a mismatch that requires manual updates
after network upgrades. Update the wget command to either demonstrate how to
dynamically substitute the verified version from the curl output into the
download URL, or use a variable or placeholder to make it explicit that the
hardcoded version must be replaced with the actual version verified from the
live testnet node. This applies to both the initial section and the additional
location at lines 321-325 to ensure consistency across the documentation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 174b16f6-1760-47d6-b480-baf1e7c98058

📥 Commits

Reviewing files that changed from the base of the PR and between 403a544 and 475575b.

📒 Files selected for processing (1)
  • .gitbook/infra/join-a-network.mdx

Comment on lines +233 to 235
# Copy the testnet genesis file to the node config directory.
aws s3 cp --no-sign-request s3://injective-snapshots/testnet/genesis.json .
mv genesis.json ~/.injectived/config/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify whether AWS CLI prerequisites are documented alongside this guide.
set -euo pipefail

TARGET=".gitbook/infra/join-a-network.mdx"

echo "== AWS command usages =="
rg -n --no-heading '\baws\s+s3\s+cp\b' "$TARGET"

echo
echo "== Nearby prerequisite/install references =="
rg -n --no-heading -C3 'awscli|aws cli|install aws|brew install aws|apt.*aws|yum.*aws|dnf.*aws' .gitbook/infra/join-a-network.mdx .gitbook/infra/**/*.mdx || true

echo
echo "Expected: at least one explicit prerequisite/install instruction for AWS CLI if aws commands are kept."

Repository: InjectiveLabs/injective-docs

Length of output: 421


🏁 Script executed:

# Check the file structure and prerequisites section
head -n 250 .gitbook/infra/join-a-network.mdx | tail -n 100

Repository: InjectiveLabs/injective-docs

Length of output: 4459


🏁 Script executed:

# Look for any prerequisites or installation sections in the file
rg -n 'prerequisite|requirement|before you|install|setup|preparation' .gitbook/infra/join-a-network.mdx -i

Repository: InjectiveLabs/injective-docs

Length of output: 1498


🏁 Script executed:

# Check if there are other related documentation files that might cover AWS CLI setup
fd -e mdx .gitbook/infra | head -20

Repository: InjectiveLabs/injective-docs

Length of output: 528


🏁 Script executed:

# List files in .gitbook/infra directory
fd . '.gitbook/infra' -e mdx

Repository: InjectiveLabs/injective-docs

Length of output: 3217


🏁 Script executed:

# Check the beginning of the file for any prerequisites section
head -n 100 .gitbook/infra/join-a-network.mdx

Repository: InjectiveLabs/injective-docs

Length of output: 5216


🏁 Script executed:

# Search for AWS CLI setup instructions in the entire .gitbook directory
rg -i 'aws.*install|install.*aws|aws.*prerequisite|apt.*awscli|brew.*awscli' .gitbook --type mdx

Repository: InjectiveLabs/injective-docs

Length of output: 194


🏁 Script executed:

# Search for AWS references in .gitbook directory (ignore file type restriction)
rg -i 'aws' .gitbook/infra --no-type -A 2 -B 2

Repository: InjectiveLabs/injective-docs

Length of output: 602


🏁 Script executed:

# Look at the section right before the AWS command (lines 200-240)
sed -n '200,240p' .gitbook/infra/join-a-network.mdx

Repository: InjectiveLabs/injective-docs

Length of output: 1911


🏁 Script executed:

# Check if there's a prerequisites or requirements section at the top of the file
sed -n '1,50p' .gitbook/infra/join-a-network.mdx

Repository: InjectiveLabs/injective-docs

Length of output: 2136


Add AWS CLI installation prerequisite before the S3 download step

The aws s3 cp command at line 234 requires AWS CLI to be preinstalled, but no installation instructions are documented. Users on fresh hosts will encounter a command-not-found error. Add an explicit prerequisite (e.g., apt-get install awscli for Linux, brew install awscli for macOS) before this step to ensure the guide succeeds on all platforms.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.gitbook/infra/join-a-network.mdx around lines 233 - 235, Add AWS CLI
installation instructions as a prerequisite step before the aws s3 cp command
that downloads the genesis file. Include installation commands for multiple
platforms (such as apt-get install awscli for Linux distributions and brew
install awscli for macOS) to ensure users on fresh hosts can successfully
execute the aws s3 cp command without encountering command-not-found errors.
Place these installation instructions in a new prerequisite section that appears
before the step containing the aws s3 cp --no-sign-request
s3://injective-snapshots/testnet/genesis.json command.

Also, the link redirects to Alchemy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant