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(sns-cli): Add sns health command #1711

Merged
merged 1 commit into from
Sep 28, 2024
Merged

feat(sns-cli): Add sns health command #1711

merged 1 commit into from
Sep 28, 2024

Conversation

anchpop
Copy link
Contributor

@anchpop anchpop commented Sep 26, 2024

This adds a health command to the sns cli. You can run it like so from the monorepo:

$ bazel run :sns --config=local -- health

The output at the time of this writing is this:

Checking SNS's health...

Name Memory Cycles Upgrades Remaining
BOOM DAO 👍 ❌ index: (9.49 TC) 5
CYCLES-TRANSFER-STATION 👍 👍 5
Catalyze 👍 ❌ root: (7.01 TC), index: (9.01 TC), archive: (9.36 TC) 0
DOGMI 👍 ❌ governance: (5.18 TC), archive: (9.72 TC) 6
DecideAI DAO 👍 👍 4
Dragginz 👍 👍 0
ELNA AI 👍 👍 7
EstateDAO 👍 ❌ index: (8.79 TC) 18
Gold DAO 👍 👍 4
ICGhost 👍 ❌ swap: (2.38 TC) 7
ICLighthouse DAO 👍 ❌ swap: (2.63 TC) 7
ICPCC DAO LLC 👍 ❌ index: (7.17 TC) 13
ICPSwap 👍 ❌ governance: (9.99 TC) 7
ICPanda DAO 👍 ❌ archive: (8.64 TC) 3
ICVC 👍 👍 5
Juno Build 👍 👍 0
Kinic 👍 👍 5
MORA DAO 👍 ❌ root: (7.44 TC), governance: (9.24 TC), swap: (8.70 TC), index: (0.00 TC) 31
Motoko 👍 ❌ archive: (9.64 TC) 0
Neutrinite 👍 👍 0
Nuance 👍 👍 5
ORIGYN 👍 👍 5
OpenChat 👍 👍 5
OpenFPL 👍 ❌ ledger: (9.93 TC) 8
SONIC 👍 👍 7
Seers 👍 👍 3
Sneed 👍 👍 23
TRAX 👍 ❌ ledger: (5.62 TC), swap: (6.29 TC) 16
WaterNeuron 👍 👍 7
YRAL 👍 ❌ governance: (7.52 TC), archive: (4.77 TC) 11
Yuku DAO 👍 ❌ archive: (9.60 TC) 35

Out of 39 SNSes, 31 had metadata and I checked the health of 31 of them.

@anchpop anchpop requested a review from a team as a code owner September 26, 2024 18:01
@github-actions github-actions bot added the feat label Sep 26, 2024
@anchpop anchpop force-pushed the @anchpop/NNS1-3288 branch 6 times, most recently from 4703298 to 5206cfc Compare September 27, 2024 18:00
Copy link
Contributor

@max-dfinity max-dfinity left a comment

Choose a reason for hiding this comment

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

change name of command, but otherwise lgtm

@anchpop anchpop changed the title feat(sns-cli): Add sns lint command feat(sns-cli): Add sns health command Sep 27, 2024
@anchpop
Copy link
Contributor Author

anchpop commented Sep 27, 2024

change name of command, but otherwise lgtm

Changed the name of the command from lint to health

@anchpop anchpop added this pull request to the merge queue Sep 27, 2024
Merged via the queue into master with commit 6cb46aa Sep 28, 2024
26 checks passed
@anchpop anchpop deleted the @anchpop/NNS1-3288 branch September 28, 2024 00:04
levifeldman pushed a commit to levifeldman/ic that referenced this pull request Oct 1, 2024
This adds a `health` command to the sns cli. You can run it like so from
the monorepo:

```
$ bazel run :sns --config=local -- health
```

The output at the time of this writing is this:

Checking SNS's health...
| Name | Memory | Cycles | Upgrades Remaining |

|-------------------------|--------|-----------------------------------------------------------------------------|--------------------|
| BOOM DAO | 👍 | ❌ index: (9.49 TC) | 5 |
| CYCLES-TRANSFER-STATION | 👍 | 👍 | 5 |
| Catalyze | 👍 | ❌ root: (7.01 TC), index: (9.01 TC), archive: (9.36 TC)
| 0 |
| DOGMI | 👍 | ❌ governance: (5.18 TC), archive: (9.72 TC) | 6 |
| DecideAI DAO | 👍 | 👍 | 4 |
| Dragginz | 👍 | 👍 | 0 |
| ELNA AI | 👍 | 👍 | 7 |
| EstateDAO | 👍 | ❌ index: (8.79 TC) | 18 |
| Gold DAO | 👍 | 👍 | 4 |
| ICGhost | 👍 | ❌ swap: (2.38 TC) | 7 |
| ICLighthouse DAO | 👍 | ❌ swap: (2.63 TC) | 7 |
| ICPCC DAO LLC | 👍 | ❌ index: (7.17 TC) | 13 |
| ICPSwap | 👍 | ❌ governance: (9.99 TC) | 7 |
| ICPanda DAO | 👍 | ❌ archive: (8.64 TC) | 3 |
| ICVC | 👍 | 👍 | 5 |
| Juno Build | 👍 | 👍 | 0 |
| Kinic | 👍 | 👍 | 5 |
| MORA DAO | 👍 | ❌ root: (7.44 TC), governance: (9.24 TC), swap: (8.70
TC), index: (0.00 TC) | 31 |
| Motoko | 👍 | ❌ archive: (9.64 TC) | 0 |
| Neutrinite | 👍 | 👍 | 0 |
| Nuance | 👍 | 👍 | 5 |
| ORIGYN | 👍 | 👍 | 5 |
| OpenChat | 👍 | 👍 | 5 |
| OpenFPL | 👍 | ❌ ledger: (9.93 TC) | 8 |
| SONIC | 👍 | 👍 | 7 |
| Seers | 👍 | 👍 | 3 |
| Sneed | 👍 | 👍 | 23 |
| TRAX | 👍 | ❌ ledger: (5.62 TC), swap: (6.29 TC) | 16 |
| WaterNeuron | 👍 | 👍 | 7 |
| YRAL | 👍 | ❌ governance: (7.52 TC), archive: (4.77 TC) | 11 |
| Yuku DAO | 👍 | ❌ archive: (9.60 TC) | 35 |

Out of 39 SNSes, 31 had metadata and I checked the health of 31 of them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants