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: Node Install, Start, Stop, Upgrade ENG-572 #25

Merged
merged 27 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ea7c2b3
# This is a combination of 39 commits.
HashMapsData2Value Nov 5, 2024
90d42df
# This is a combination of 46 commits.
HashMapsData2Value Nov 25, 2024
70456da
feat: add prompt-ui
HashMapsData2Value Nov 25, 2024
ecf00bd
# This is a combination of 51 commits.
HashMapsData2Value Nov 25, 2024
415ea46
feat: add prompt-ui
HashMapsData2Value Nov 25, 2024
85f7966
Merge branch 'main' into feat/algod-node-install
HashMapsData2Value Nov 25, 2024
0ffecc5
chore: fix symbols
HashMapsData2Value Nov 25, 2024
2b48b34
ci: only PR
HashMapsData2Value Nov 25, 2024
0e888c6
ci: use checkout action
HashMapsData2Value Nov 25, 2024
55d7225
chore: ignore coverage.txt to avoid accidentally checking it in
HashMapsData2Value Nov 25, 2024
e699915
fix: newlines
HashMapsData2Value Nov 25, 2024
3c9f104
test(node): basic playbook and coverage strategy
PhearZero Nov 25, 2024
df73d85
build(node): run integration code tests
PhearZero Nov 26, 2024
4476c5a
build(node): convert integration to makefile
PhearZero Nov 26, 2024
26bf8d3
build(node): move compose to action, wait for binds
PhearZero Nov 26, 2024
2443130
feat: migrate to algorand foundation homebrew node tap
HashMapsData2Value Nov 26, 2024
5c26721
test(node): disable CGO, test Ubuntu 18.04 with apt disabled
PhearZero Nov 26, 2024
e86ce4a
Merge branch 'main' into feat/algod-node-install
PhearZero Dec 2, 2024
4f964cd
Merge pull request #28 from algorandfoundation/test/algod-node-install
PhearZero Dec 2, 2024
4f30b6a
Merge branch 'main' into feat/algod-node-install
PhearZero Dec 9, 2024
bae2d6f
refactor: algod commands
PhearZero Dec 10, 2024
8414f71
feat(node): charmbracelet logger
PhearZero Dec 12, 2024
965404b
test(node): update playbook and workflow
PhearZero Dec 12, 2024
5561b8c
chore(node): call sudo on demand
PhearZero Dec 12, 2024
652368b
chore(node): add wait before starting
PhearZero Dec 12, 2024
3d76e02
build: stop service before uninstalling
PhearZero Dec 12, 2024
694564c
chore: set patch threshold
PhearZero Dec 12, 2024
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Code Tests

on:
pull_request:
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/node_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
## This is a temporary flow, until we have our custom docker images that work with systemd for linux.
## Once we have that, we can remove this and use docker containers in parallel, covering the various OS:es.

name: Node Command OS-Matrix Test

on:
workflow_dispatch:
pull_request:
paths:
- "cmd/**"

jobs:
ubuntu:
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Run Ubuntu commands
run: |
go build .
sudo ./hack-tui node install
sudo ./hack-tui node start
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"
sudo ./hack-tui node stop
sudo ./hack-tui node upgrade
# sudo ./hack-tui node configure
sudo ./hack-tui node uninstall

macos:
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Go
run: brew install go

- name: Run MacOs commands
run: |
go build .
sudo ./hack-tui node install
sudo ./hack-tui node start
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"
sudo ./hack-tui node stop
sudo ./hack-tui node upgrade
# sudo ./hack-tui node configure
sudo ./hack-tui node uninstall
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ bin
# Test binary, built with `go test -c`
*.test

# coverage.txt, in case you run tests locally
coverage.txt

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

Expand Down
Loading
Loading