Skip to content

Commit f7e540a

Browse files
authored
Merge branch 'main' into hendrikebbers-patch-1
2 parents 280cc1c + 9a35d99 commit f7e540a

File tree

274 files changed

+7314
-3232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+7314
-3232
lines changed

.github/workflows/flow-hugo-publish.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
- name: Setup Hugo
7171
uses: step-security/actions-hugo@b99dc9a4cddce1866ff2c3682c01aeb27b4d91f0 # v3.0.1
7272
with:
73-
hugo-version: '0.124.1'
73+
hugo-version: '0.145.0'
74+
extended: true
7475

7576
- name: Checkout Code
7677
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -94,11 +95,16 @@ jobs:
9495
version: 3.39.2
9596
repo-token: ${{ secrets.GITHUB_TOKEN }}
9697

98+
- name: Setup Go
99+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # pinned to v5.5.0
100+
with:
101+
go-version-file: 'docs/site/go.mod'
102+
97103
- name: Build with Hugo
98104
run: |
99105
set -xeo pipefail
100106
cd docs/site
101-
task default
107+
task build
102108
103109
# Upload the built site to GitHub Pages
104110
- name: Upload Pages Artifact

.github/workflows/flow-task-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575

7676
- name: Run Example Task File Test with type ${{ matrix.type }}
7777
run: |
78-
cd examples/external-database-test
7978
export CONSENSUS_NODE_VERSION=$(grep 'HEDERA_PLATFORM_VERSION' version.ts | sed -E "s/.*'([^']+)';/\1/")
79+
cd examples/external-database-test
8080
SOLO_CLUSTER_NAME=solo-task-test-${{ matrix.type }}-${{ github.run_id }}-${{ github.run_attempt }} task install:external-database
8181
task destroy:external-database

.github/workflows/script/gcs_test.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ else
131131
npm run solo-test -- init
132132
npm run solo-test -- cluster-ref setup \
133133
-s "${SOLO_CLUSTER_SETUP_NAMESPACE}"
134-
npm run solo-test -- cluster-ref connect --cluster-ref kind-${SOLO_CLUSTER_NAME} --context kind-${SOLO_CLUSTER_NAME} --email [email protected]
134+
npm run solo-test -- cluster-ref connect --cluster-ref kind-${SOLO_CLUSTER_NAME} --context kind-${SOLO_CLUSTER_NAME}
135135

136136
npm run solo-test -- deployment create -n "${SOLO_NAMESPACE}" --deployment "${SOLO_DEPLOYMENT}"
137137

@@ -155,18 +155,18 @@ else
155155
kubectl port-forward -n "${SOLO_NAMESPACE}" svc/mirror-rest 5551:80 > /dev/null 2>&1 &
156156

157157
npm run solo-test -- explorer deploy -s "${SOLO_CLUSTER_SETUP_NAMESPACE}" --deployment "${SOLO_DEPLOYMENT}" \
158-
--cluster-ref kind-${SOLO_CLUSTER_NAME} --tls-cluster-issuer-type self-signed --enable-hedera-explorer-tls \
158+
--cluster-ref kind-${SOLO_CLUSTER_NAME} --tls-cluster-issuer-type self-signed --enable-explorer-tls \
159159
--ingress-controller-value-file "${script_dir}"/explorer-ingress-controller-values.yaml \
160160
--enable-ingress --domain-name localhost
161161

162162
kubectl port-forward -n "${SOLO_NAMESPACE}" svc/haproxy-node1-svc 50211:50211 > /dev/null 2>&1 &
163163

164-
explorer_svc="$(kubectl get svc -l app.kubernetes.io/component=hedera-explorer -n ${SOLO_NAMESPACE} --output json | jq -r '.items[].metadata.name')"
164+
explorer_svc="$(kubectl get svc -l app.kubernetes.io/component=hiero-explorer -n ${SOLO_NAMESPACE} --output json | jq -r '.items[].metadata.name')"
165165
kubectl port-forward -n "${SOLO_NAMESPACE}" svc/"${explorer_svc}" 8080:80 > /dev/null 2>&1 &
166166

167167
# Check Explorer endpoints
168-
check_service_health "https://localhost:31001" "Hedera Mirror Node Explorer" "Explorer" "https" || exit 1
169-
check_service_health "http://localhost:31000" "Hedera Mirror Node Explorer" "Explorer" "http" || exit 1
168+
check_service_health "https://localhost:31001" "SPDX-License" "Explorer" "https" || exit 1
169+
check_service_health "http://localhost:31000" "SPDX-License" "Explorer" "http" || exit 1
170170

171171
# Check Mirror API endpoints
172172
check_service_health "https://localhost:32001/api/v1/accounts" "accounts" "Mirror" "https" || exit 1

.github/workflows/script/update_md.sh

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
#!/bin/bash
22

33
# This script is used to run some common solo commands, and use the output to update
4-
# the docs/content/User/StepByStepGuide.md file. This is useful to keep the guide up to date
4+
# the docs/site/content/en/docs/step-by-step-guide.md file. This is useful to keep the guide up to date
55

66
set -xeo pipefail
77

8+
export TARGET_DIR=docs/site/content/en/docs
9+
export TARGET_FILE=${TARGET_DIR}/step-by-step-guide.md
10+
811
if [[ -z "${SOLO_TEST_CLUSTER}" && ${SOLO_CLUSTER_NAME} == "" ]]; then
912
SOLO_CLUSTER_NAME=solo-e2e
1013
else
1114
SOLO_CLUSTER_NAME=${SOLO_TEST_CLUSTER}
1215
fi
1316

14-
export SOLO_NAMESPACE=solo
17+
export SOLO_NAMESPACE=solo-e2e
18+
export SOLO_CLUSTER_SETUP_NAMESPACE=solo-cluster-setup
1519
export SOLO_DEPLOYMENT=solo-deployment
16-
export SOLO_CLUSTER_SETUP_NAMESPACE=solo-cluster
1720
1821

1922
echo "Perform the following kind and solo commands and save output to environment variables"
@@ -24,7 +27,7 @@ export KIND_CREATE_CLUSTER_OUTPUT=$( cat create-cluster.log | tee test.log )
2427
solo init | tee init.log
2528
export SOLO_INIT_OUTPUT=$( cat init.log | tee test.log )
2629

27-
solo cluster-ref connect --cluster-ref kind-${SOLO_CLUSTER_NAME} --context kind-${SOLO_CLUSTER_NAME} --email "${SOLO_EMAIL}" | tee cluster-ref-connect.log
30+
solo cluster-ref connect --cluster-ref kind-${SOLO_CLUSTER_NAME} --context kind-${SOLO_CLUSTER_NAME} | tee cluster-ref-connect.log
2831
export SOLO_CLUSTER_REF_CONNECT_OUTPUT=$( cat cluster-ref-connect.log | tee test.log )
2932

3033
solo deployment create -n "${SOLO_NAMESPACE}" --deployment "${SOLO_DEPLOYMENT}" | tee deployment-create.log
@@ -54,7 +57,7 @@ export SOLO_MIRROR_NODE_DEPLOY_OUTPUT=$( cat mirror-node-deploy.log | tee test.l
5457
solo relay deploy -i node1,node2,node3 --deployment "${SOLO_DEPLOYMENT}" | tee relay-deploy.log
5558
export SOLO_RELAY_DEPLOY_OUTPUT=$( cat relay-deploy.log | tee test.log )
5659

57-
solo explorer deploy --deployment "${SOLO_DEPLOYMENT}" -q | tee explorer-deploy.log
60+
solo explorer deploy --deployment "${SOLO_DEPLOYMENT}" --cluster-ref kind-${SOLO_CLUSTER_NAME} -q | tee explorer-deploy.log
5861
export SOLO_EXPLORER_DEPLOY_OUTPUT=$( cat explorer-deploy.log | tee test.log )
5962

6063
solo relay destroy -i node1,node2,node3 --deployment "${SOLO_DEPLOYMENT}" | tee relay-destroy.log
@@ -69,19 +72,22 @@ export SOLO_EXPLORER_DESTROY_OUTPUT=$( cat explorer-destroy.log | tee test.log )
6972
solo network destroy --deployment "${SOLO_DEPLOYMENT}" --force -q | tee network-destroy.log
7073
export SOLO_NETWORK_DESTROY_OUTPUT=$( cat network-destroy.log | tee test.log )
7174

72-
cd ../
73-
echo "Generate README.md"
75+
pushd ../
76+
echo "Generating ${TARGET_FILE} from ${TARGET_FILE}.template"
7477

7578
envsubst '$KIND_CREATE_CLUSTER_OUTPUT,$SOLO_INIT_OUTPUT,$SOLO_NODE_KEY_PEM_OUTPUT,$SOLO_CLUSTER_SETUP_OUTPUT, \
7679
$SOLO_DEPLOYMENT_CREATE_OUTPUT,$SOLO_NETWORK_DEPLOY_OUTPUT,$SOLO_NODE_SETUP_OUTPUT,$SOLO_NODE_START_OUTPUT,\
7780
$SOLO_MIRROR_NODE_DEPLOY_OUTPUT,$SOLO_RELAY_DEPLOY_OUTPUT,$SOLO_CLUSTER_REF_CONNECT_OUTPUT,$SOLO_DEPLOYMENT_ADD_CLUSTER_OUTPUT,\
7881
$SOLO_EXPLORER_DEPLOY_OUTPUT,$SOLO_RELAY_DESTROY_OUTPUT,$SOLO_MIRROR_NODE_DESTROY_OUTPUT,$SOLO_EXPLORER_DESTROY_OUTPUT,$SOLO_NETWORK_DESTROY_OUTPUT'\
79-
< docs/site/content/User/StepByStepGuide.md.template > docs/site/content/User/StepByStepGuide.md
82+
< ${TARGET_FILE}.template > ${TARGET_FILE}
8083

8184
echo "Remove color codes and lines showing intermediate progress"
8285

83-
sed -i 's/\[32m//g' docs/site/content/User/StepByStepGuide.md
84-
sed -i 's/\[33m//g' docs/site/content/User/StepByStepGuide.md
85-
sed -i 's/\[39m//g' docs/site/content/User/StepByStepGuide.md
86-
egrep -v '↓|❯|•' docs/site/content/User/StepByStepGuide.md > docs/site/content/User/StepByStepGuide.md.tmp && mv docs/site/content/User/StepByStepGuide.md.tmp docs/site/content/User/StepByStepGuide.md
86+
sed -i 's/\[32m//g' ${TARGET_FILE}
87+
sed -i 's/\[33m//g' ${TARGET_FILE}
88+
sed -i 's/\[39m//g' ${TARGET_FILE}
89+
egrep -v '↓|❯|•' ${TARGET_FILE} > ${TARGET_FILE}.tmp && mv ${TARGET_FILE}.tmp ${TARGET_FILE}
90+
91+
popd
92+
rm *.log
8793
set +x

.github/workflows/zxc-code-analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ jobs:
412412
path: 'coverage/${{ inputs.e2e-relay-test-subdir }}'
413413

414414
- name: Download E2E Block Node Coverage Report
415-
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
415+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
416416
if: ${{ (inputs.enable-codecov-analysis || inputs.enable-codacy-coverage) && inputs.enable-e2e-coverage-report && !cancelled() && !failure() }}
417417
with:
418418
name: ${{ inputs.e2e-block-node-coverage-report }}

.github/workflows/zxc-update-readme.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
name: Update README.md
1818

19-
# This workflow calls script update_md.sh to update the docs/content/User/StepByStepGuide.md file
19+
# This workflow calls script update_md.sh to update the docs/site/content/en/docs/step-by-step-guide.md file
2020
on:
2121
workflow_dispatch:
2222
inputs:
2323
commit-changes:
24-
description: "Commit updated README.md"
24+
description: "Commit updated step-by-step-guide.md"
2525
type: boolean
2626
required: false
2727
default: false
@@ -42,7 +42,7 @@ on:
4242
required: true
4343
inputs:
4444
commit-changes:
45-
description: "Commit updated README.md"
45+
description: "Commit updated step-by-step-guide.md"
4646
type: boolean
4747
required: false
4848
default: false
@@ -52,7 +52,7 @@ on:
5252
required: false
5353
outputs:
5454
commit-hash:
55-
description: "The commit hash for the updated README.md commit"
55+
description: "The commit hash for the updated step-by-step-guide.md commit"
5656
value: ${{ jobs.update.outputs.commit_hash }}
5757

5858
defaults:
@@ -115,7 +115,7 @@ jobs:
115115
sudo apt-get update
116116
sudo apt-get install gettext-base
117117
118-
- name: Update docs/site/content/User/StepByStepGuide.md
118+
- name: Update docs/site/content/en/docs/step-by-step-guide.md
119119
env:
120120
SOLO_TEST_CLUSTER: "solo-update-readme-${{ github.run_id }}-${{ github.run_attempt }}"
121121
run: |
@@ -135,17 +135,17 @@ jobs:
135135
136136
../.github/workflows/script/update_md.sh </dev/null | cat
137137
set +x
138-
echo "::group::Updated StepByStepGuide.md"
138+
echo "::group::Updated step-by-step-guide.md"
139139
140140
cd ..
141-
cat docs/site/content/User/StepByStepGuide.md
141+
cat docs/site/content/en/docs/step-by-step-guide.md
142142
echo "::endgroup::"
143143
144-
- name: Check docs/site/content/User/StepByStepGuide.md Changes
144+
- name: Check docs/site/content/en/docs/step-by-step-guide.md Changes
145145
id: check-readme-changes
146146
run: |
147147
set +e
148-
echo "::group::Git Diff StepByStepGuide.md"
148+
echo "::group::Git Diff step-by-step-guide.md"
149149
git diff --stat
150150
echo "::endgroup::"
151151
@@ -167,7 +167,7 @@ jobs:
167167
fi
168168
169169
TOTAL_LINES_CHANGED=$(($INSERTIONS + $DELETIONS))
170-
echo "Total README lines changed: $TOTAL_LINES_CHANGED"
170+
echo "Total step-by-step-guide.md lines changed: $TOTAL_LINES_CHANGED"
171171
172172
- name: Import GPG key
173173
uses: step-security/ghaction-import-gpg@6c8fe4d0126a59d57c21f87c9ae5dd3451fa3cca # v6.1.0
@@ -178,15 +178,15 @@ jobs:
178178
git_user_signingkey: true
179179
git_commit_gpgsign: true
180180

181-
- name: Commit docs/site/content/User/StepByStepGuide.md Changes
181+
- name: Commit docs/site/content/en/docs/step-by-step-guide.md Changes
182182
id: commit-readme
183183
if : ${{ github.event.inputs.dry-run-enabled != 'true' && !cancelled() && !failure() && inputs.commit-changes }}
184184
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0
185185
with:
186-
commit_message: "chore: auto update docs/site/content/User/StepByStepGuide.md"
186+
commit_message: "chore: auto update docs/site/content/en/docs/step-by-step-guide.md"
187187
commit_options: '--no-verify --signoff'
188188
add_options: '-u'
189-
file_pattern: 'docs/site/content/User/StepByStepGuide.md'
189+
file_pattern: 'docs/site/content/en/docs/step-by-step-guide.md'
190190
commit_user_name: Swirlds Automation
191191
commit_user_email: [email protected]
192192
commit_author: Swirlds Automation <[email protected]>

.gitignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,13 +473,11 @@ coverage/
473473
deleteme.yaml
474474
/.nyc_output/
475475
/.nvmrc
476-
/docs/site/public/static/Classes/
477-
/docs/site/content/Classes/
478-
/docs/site/content/Developer/DEV.md
479-
/docs/site/content/User/README.md
480-
/docs/site/content/User/README
476+
/docs/site/content/en/images
481477
/docs/site/themes/
482478
/docs/site/.hugo_build.lock
483479
/docs/site/public/
484480
/contextDir/
485481
/docs/site/resources/
482+
/docs/site/.task/
483+
/docs/site/static/

DEV.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: "Contributing to Solo"
3+
weight: 20
4+
description: "Instructions for developers working on the Solo project"
5+
type: docs
6+
---
7+
18
# Instructions for developers working on solo project
29

310
Below we describe how you can set up a local environment and contribute to `solo`.
@@ -20,14 +27,7 @@ Below we describe how you can set up a local environment and contribute to `solo
2027

2128
## E2E tests
2229

23-
* In order to run E2E test, we need to set up cluster and install the chart.
24-
* Run `./test/e2e/setup-e2e.sh`
30+
* In order to run E2E test, we need to set up a cluster and install the chart.
31+
* Run `task test-setup`
2532
* Run `task test-e2e-standard`, NOTE: this excludes some E2E tests that have their own command
26-
* You can check the section `scripts` in file `package.json` for more other test commands available.
27-
28-
* Tests are run in random order. The random seed value is shown as message such as:
29-
`Using timestamp seed 1711414247085 for random test order`
30-
31-
* If you like to rerun tests with the same seed, use environment variable `RANDOM_SEED=<integer_number>` with `task test-e2e-standard` command.
32-
* Example: `RANDOM_SEED=20 task test-e2e-standard`,
33-
and you should see an output like: `Using preset seed 20 for random test order`
33+
* You can check the command `task --list-all` for more other test commands available.

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
---
2+
title: "Getting Started"
3+
weight: 1
4+
description: >
5+
Getting started with Solo
6+
type: docs
7+
---
8+
9+
> \[!WARNING]
10+
>
11+
> Any version of Solo prior to `v0.35.3` will fail on Apple M3/M4 chipsets due to a known issue with Java 21 and these chipsets.
12+
113
# Solo
214

315
[![NPM Version](https://img.shields.io/npm/v/%40hashgraph%2Fsolo?logo=npm)](https://www.npmjs.com/package/@hashgraph/solo)
@@ -25,7 +37,7 @@ An opinionated CLI tool to deploy and manage standalone test networks.
2537

2638
To run a three-node network, you will need to set up Docker Desktop with at least 8GB of memory and 4 CPUs.
2739

28-
![alt text](images/DockerDesktop.png)
40+
![alt text](images/docker-desktop.png)
2941

3042
## Setup
3143

@@ -57,7 +69,7 @@ nvm use v20.18.0
5769

5870
## Documentation
5971

60-
[Getting Started](https://solo.hiero.org/User/StepByStepGuide/)
72+
[Getting Started](https://solo.hiero.org/docs/step-by-step-guide/)
6173

6274
## Contributing
6375

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env:
2323
# DEBUG_NODE_ALIAS: "node2"
2424
# SOLO_CHARTS_DIR_FLAG: "--chart-dir /Users/user/source/solo-charts/charts"
2525
# LOAD_BALANCER_FLAG: "--load-balancer"
26-
ENABLE_EXPLORER_TLS_FLAG: "--enable-hedera-explorer-tls"
26+
ENABLE_EXPLORER_TLS_FLAG: "--enable-explorer-tls"
2727
TLS_CLUSTER_ISSUER_TYPE_FLAG: "--tls-cluster-issuer-type acme-staging"
2828
# NETWORK_DEPLOY_EXTRA_FLAGS: "--haproxy-ips node1="
2929
ENABLE_EXPLORER_INGRESS: "--enable-ingress"

docs/site/.cspell.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# cSpell:ignore textlintrc
2+
# For settings, see
3+
# https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/
4+
version: '0.2'
5+
caseSensitive: true
6+
words:
7+
- Solo

0 commit comments

Comments
 (0)