Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bootstrap command #52

Merged
merged 31 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
07e16db
feat: bootstrap command
PhearZero Dec 23, 2024
6f9b3c6
refactor: to data directory
PhearZero Dec 23, 2024
8450ac0
Merge branch 'main' into feat/bootstrap-command
PhearZero Dec 24, 2024
b8d4f1c
chore: flatten commands
PhearZero Dec 24, 2024
9e0ab19
test(internal): skip fragile tests
PhearZero Dec 24, 2024
7969133
chore(mac): fix command from refactor
PhearZero Dec 24, 2024
abc963f
refactor: convert all clients to data directory
PhearZero Dec 24, 2024
4088acd
ci: dogfood installer
PhearZero Dec 24, 2024
1bfafbd
ci: simplify workflow
PhearZero Dec 24, 2024
f0db7b9
ci: add catchup to tests
PhearZero Dec 24, 2024
a94d31c
ci: sleep before catchup
PhearZero Dec 24, 2024
1674033
ci: test debug commands
PhearZero Dec 24, 2024
dcf0541
Merge branch 'main' into feat/bootstrap-command
PhearZero Dec 24, 2024
ed97a64
chore: update explanations for not installed
PhearZero Dec 26, 2024
4d9f005
chore: update explanations for running error
PhearZero Dec 26, 2024
4491978
chore: update verbiage for catch up in bootstrap
PhearZero Dec 26, 2024
2af63bb
override github channel dev->beta
Jan 2, 2025
91e58d4
Revert "override github channel dev->beta"
Jan 2, 2025
5623ee2
github: only check release when current build channel is "stable" or …
Jan 2, 2025
4c75760
fix: remove error handler for endpoint file
PhearZero Jan 2, 2025
e781e42
feat: add fast-catchup state to status
PhearZero Jan 2, 2025
c322aca
test: add fast-catchup state to status
PhearZero Jan 2, 2025
73c5483
fast catchup modal styling
Jan 2, 2025
f868f9c
Merge branch 'feat/fast-catchup-modal' of github.af:algorandfoundatio…
Jan 2, 2025
66faa10
fix: use auto style for glamour
PhearZero Jan 2, 2025
accf6c0
test: fix acquired block pointers
PhearZero Jan 2, 2025
2d85a9c
Merge pull request #55 from algorandfoundation/feat/fast-catchup-modal
PhearZero Jan 2, 2025
6516303
Merge pull request #54 from algorandfoundation/fix/dev-channel
PhearZero Jan 2, 2025
cdf3d45
fix: clear fast catchup modal
PhearZero Jan 2, 2025
4bb2b44
"node not found" explanation
Jan 6, 2025
1d4b596
go fmt
Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .docker/Fedora.dockerfile

This file was deleted.

47 changes: 0 additions & 47 deletions .docker/Ubuntu.dockerfile

This file was deleted.

16 changes: 0 additions & 16 deletions .docker/start_all.sh

This file was deleted.

49 changes: 0 additions & 49 deletions .docker/start_dev.sh

This file was deleted.

41 changes: 0 additions & 41 deletions .docker/start_empty.sh

This file was deleted.

46 changes: 0 additions & 46 deletions .docker/start_fast_catchup.sh

This file was deleted.

29 changes: 1 addition & 28 deletions .github/workflows/code_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,6 @@ jobs:
with:
go-version: 1.22

- name: setup .algorun.yaml
run: |
touch .algorun.yaml
echo 'server: http://localhost:8080' >> .algorun.yaml
echo 'token: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' >> .algorun.yaml

- name: Start Docker Compose
run: docker compose up -d

- name: Wait for the server to start
run: npx wait-on tcp:8080

- name: Install dependencies
run: go get .

Expand Down Expand Up @@ -56,22 +44,7 @@ jobs:
run: go build -o bin/algorun *.go

- name: Unit Tests
run: make unit

- name: Kill docker
run: docker compose down

- name: Start Integration
run: docker compose -f docker-compose.integration.yaml up -d

- name: Wait for mount
run: npx wait-on ./coverage/int/fedora/40 ./coverage/int/ubuntu/24.04/

- name: Integration tests
run: make integration

- name: Combine coverage
run: make combine-coverage
run: make test

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
Expand Down
50 changes: 38 additions & 12 deletions .github/workflows/node_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,28 @@ jobs:
go-version: 1.22
- name: Run Ubuntu commands
run: |
go build .
./algorun-tui node install
export GOCOVERDIR=$(pwd)/coverage
mkdir -p $GOCOVERDIR
go build -cover .
./algorun-tui install
systemctl status algorand.service
export TOKEN=$(cat /var/lib/algorand/algod.admin.token)
curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null"
./algorun-tui node stop
./algorun-tui node upgrade
./algorun-tui node stop
./algorun-tui node uninstall
./algorun-tui stop
./algorun-tui upgrade
./algorun-tui debug
sleep 10
./algorun-tui catchup
./algorun-tui catchup debug
./algorun-tui catchup stop
./algorun-tui stop
./algorun-tui uninstall
go tool covdata textfmt -i=$GOCOVERDIR -o coverage.txt

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

macos:
runs-on: macos-latest
Expand All @@ -44,13 +57,26 @@ jobs:

- name: Run MacOs commands
run: |
go build .
./algorun-tui node install
export GOCOVERDIR=$(pwd)/coverage
mkdir -p $GOCOVERDIR
go build -cover .
./algorun-tui install
sudo launchctl print system/com.algorand.algod
sleep 5
export TOKEN=$(cat ~/.algorand/algod.admin.token)
curl http://localhost:8080/v2/participation -H "X-Algo-API-Token: $TOKEN" | grep "null"
./algorun-tui node stop
./algorun-tui node upgrade
./algorun-tui node stop
./algorun-tui node uninstall
./algorun-tui stop
./algorun-tui upgrade
./algorun-tui debug
sleep 10
./algorun-tui catchup
./algorun-tui catchup debug
./algorun-tui catchup stop
./algorun-tui stop
./algorun-tui uninstall
go tool covdata textfmt -i=$GOCOVERDIR -o coverage.txt

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
31 changes: 0 additions & 31 deletions Dockerfile

This file was deleted.

Loading
Loading