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(dashmate): add dashmate doctor command #2024

Merged
merged 27 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f7891c6
chore(dashmate): add node-tar
pshenmic Jul 30, 2024
ac9ff31
chore(dashmate): add dashmate doctor command
pshenmic Jul 30, 2024
fa498c9
chore(dashmate): refactor doctor command
pshenmic Jul 31, 2024
94577cf
chore(dashmate): update command title
pshenmic Jul 31, 2024
08cb70e
chore(dashmate): update documentation
pshenmic Jul 31, 2024
531c402
chore(dashmate): update documentation
pshenmic Jul 31, 2024
5a538fb
chore(dashmate): refactor verifySystemRequirementsTaskFactory.js
pshenmic Jul 31, 2024
592a11d
chore(dashmate): fix bold
pshenmic Jul 31, 2024
9a02692
Merge remote-tracking branch 'origin/v1.0-dev' into feat/dashmate-report
pshenmic Aug 6, 2024
1b18c5f
Update packages/dashmate/src/commands/doctor.js
pshenmic Aug 6, 2024
9ffa9db
fix(dashmate): add missing services in getServiceList
pshenmic Aug 9, 2024
d911d6f
Merge remote-tracking branch 'origin/feat/dashmate-report' into feat/…
pshenmic Aug 9, 2024
d5fe4dc
feat(dashmate): code review fixes
pshenmic Aug 12, 2024
e8cc456
feat(dashmate): add sanitize dashmate config
pshenmic Aug 13, 2024
678a587
feat(dashmate): break down doctor.js in listr tasks
pshenmic Aug 13, 2024
d1c62a6
feat(dashmate): add collecting data prompt
pshenmic Aug 13, 2024
43c61af
feat(dashmate): add colors
pshenmic Aug 21, 2024
c7a6531
chore: prettify listr
shumkov Aug 21, 2024
1b44bf1
chore: remove sensitive information from report
shumkov Aug 21, 2024
fd89698
refactor: remove fetch HTTP
shumkov Aug 22, 2024
c90abfd
refactor: use chalk template
shumkov Aug 22, 2024
9651fcd
feat(dashmate): update yarn cache
pshenmic Aug 22, 2024
b8f08dd
feat(dashmate): obfuscate user & externalIp
pshenmic Aug 22, 2024
0fd553e
feat(dashmate): code review fixes
pshenmic Aug 22, 2024
48241de
feat(dashmate): fix elliptic audit
pshenmic Aug 22, 2024
f1c9149
feat(dashmate): fix elliptic audit
pshenmic Aug 22, 2024
3be5482
feat(dashmate): fix micromatch audit
pshenmic Aug 22, 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
143 changes: 125 additions & 18 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ npmAuditExcludePackages:
- "@grpc/grpc-js" # TODO: Remove when gRPC stack is updated
- "@humanwhocodes/config-array" # TODO: Update eslint
- "@humanwhocodes/object-schema" # TODO: Update eslint
- micromatch # TODO: remove when new micromatch will be released https://github.com/advisories/GHSA-952p-6rrq-rcjv

packageExtensions:
"@dashevo/protobufjs@*":
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@
"packages/withdrawals-contract"
],
"resolutions": {
"elliptic": "^6.5.4",
"elliptic": "6.5.7",
"bn.js": "4.12.0",
"fast-json-patch": "^3.1.1",
"node-tar": "^6.2.1",
"[email protected]": "patch:oclif@npm:3.4.2#.yarn/patches/oclif-npm-3.4.2-a655d32eed.patch",
"qs": "^6.7.3",
"engine.io": "^6.4.2",
Expand All @@ -84,7 +83,6 @@
"browserify-sign": "4.2.2",
"istanbul-lib-processinfo": "2.0.3",
"@babel/core": "7.23.3",
"tar": "^6.2.1",
"tsconfig-paths": "4.2.0",
"ansi-regex": "5.0.1",
"cacache": "18.0.0",
Expand Down
23 changes: 23 additions & 0 deletions packages/dashmate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,29 @@ DESCRIPTION
Reindex Core data
```

### Full node
It is also possible to start a full node instead of a masternode. Modify the config setting as follows:
```bash
dashmate config set core.masternode.enable false
```
### Doctor

The `doctor` command collects all useful debugging info into a .tar archive in your current working directory.

Archive will contain all core and platform debugging data and logs for each running service.

```
USAGE
$ dashmate doctor [--config <value>] [-v]

FLAGS
-v, --verbose use verbose mode for output
--config=<value> configuration name to use

DESCRIPTION
Generate a report about masternode
```

### Full node
It is also possible to start a full node instead of a masternode. Modify the config setting as follows:
```bash
Expand Down
1 change: 1 addition & 0 deletions packages/dashmate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"semver": "^7.5.3",
"systeminformation": "^5.22.11",
"table": "^6.8.1",
"tar": "7.4.3",
"wrap-ansi": "^7.0.0"
},
"devDependencies": {
Expand Down
Loading
Loading