Skip to content

Commit 0a495b6

Browse files
authored
node-scraper rename (#54)
1 parent 7d9d5ae commit 0a495b6

File tree

170 files changed

+408
-412
lines changed

Some content is hidden

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

170 files changed

+408
-412
lines changed

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Run unit tests with coverage
3131
id: extract_coverage
3232
run: |
33-
pytest test/unit -s --cov=errorscraper --cov-report=xml --cov-report=term --cov-fail-under=70 --maxfail=1 --disable-warnings -v
33+
pytest test/unit -s --cov=nodescraper --cov-report=xml --cov-report=term --cov-fail-under=70 --maxfail=1 --disable-warnings -v
3434
3535
- name: Print coverage
3636
run: |

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Error Scraper
2-
Error Scraper is a tool which performs automated data collection and analysis for the purposes of system debug.
1+
# Node Scraper
2+
Node Scraper is a tool which performs automated data collection and analysis for the purposes of system debug.
33

44
## Installation
55
### Install From Source
6-
Error Scraper requires Python 3.10+ for installation. After cloning this repository, call dev-setup.sh script with 'source'. This script creates an editable install of Error Scraper in a python virtual environment and also configures the pre-commit hooks for the project.
6+
Node Scraper requires Python 3.10+ for installation. After cloning this repository, call dev-setup.sh script with 'source'. This script creates an editable install of Node Scraper in a python virtual environment and also configures the pre-commit hooks for the project.
77

88
```sh
99
source dev-setup.sh
1010
```
1111

1212
## CLI Usage
13-
The Error Scraper CLI can be used to run Error Scraper plugins on a target system. The following CLI options are available:
13+
The Node Scraper CLI can be used to run Node Scraper plugins on a target system. The following CLI options are available:
1414

1515
```sh
16-
usage: error-scraper [-h] [--sys-name STRING] [--sys-location {LOCAL,REMOTE}] [--sys-interaction-level {PASSIVE,INTERACTIVE,DISRUPTIVE}]
16+
usage: node-scraper [-h] [--sys-name STRING] [--sys-location {LOCAL,REMOTE}] [--sys-interaction-level {PASSIVE,INTERACTIVE,DISRUPTIVE}]
1717
[--sys-sku STRING] [--sys-platform STRING] [--plugin-config STRING] [--system-config STRING] [--connection-config STRING]
1818
[--log-path STRING] [--log-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}]
1919
{run-plugins,gen-plugin-config,describe} ...
@@ -43,7 +43,7 @@ options:
4343
Path to system config json (default: None)
4444
--connection-config STRING
4545
Path to connection config json (default: None)
46-
--log-path STRING Specifies local path for error scraper logs, use 'None' to disable logging (default: .)
46+
--log-path STRING Specifies local path for node scraper logs, use 'None' to disable logging (default: .)
4747
--log-level {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}
4848
Change python log level (default: INFO)
4949

@@ -59,22 +59,22 @@ You can use the `describe` subcommand to display details about built-in configs
5959

6060
#### List all built-in configs:
6161
```sh
62-
error-scraper describe config
62+
node-scraper describe config
6363
```
6464

6565
#### Show details for a specific built-in config:
6666
```sh
67-
error-scraper describe config <config-name>
67+
node-scraper describe config <config-name>
6868
```
6969

7070
#### List all available plugins:
7171
```sh
72-
error-scraper describe plugin
72+
node-scraper describe plugin
7373
```
7474

7575
#### Show details for a specific plugin:
7676
```sh
77-
error-scraper describe plugin <plugin-name>
77+
node-scraper describe plugin <plugin-name>
7878
```
7979

8080
---
@@ -107,7 +107,7 @@ The 'gen-plugin-config' sub command can be used to generate a plugin config JSON
107107

108108
Generate a config for the DmesgPlugin:
109109
```sh
110-
error-scraper gen-plugin-config DmesgPlugin
110+
node-scraper gen-plugin-config DmesgPlugin
111111
```
112112

113113
This would produce the following config:
@@ -136,9 +136,9 @@ This would produce the following config:
136136
### 'run-plugins' sub command
137137
The plugins to run and their associated arguments can also be specified directly on the CLI using the 'run-plugins' sub-command. Using this sub-command you can specify a plugin name followed by the arguments for that particular plugin. Multiple plugins can be specified at once.
138138

139-
You can view the available arguments for a particular plugin by running `error-scraper run-plugins <plugin-name> -h`:
139+
You can view the available arguments for a particular plugin by running `node-scraper run-plugins <plugin-name> -h`:
140140
```sh
141-
usage: error-scraper run-plugins BiosPlugin [-h] [--collection {True,False}] [--analysis {True,False}] [--system-interaction-level STRING]
141+
usage: node-scraper run-plugins BiosPlugin [-h] [--collection {True,False}] [--analysis {True,False}] [--system-interaction-level STRING]
142142
[--data STRING] [--exp-bios-version [STRING ...]] [--regex-match {True,False}]
143143

144144
options:
@@ -156,22 +156,22 @@ options:
156156
157157
Run a single plugin
158158
```sh
159-
error-scraper run-plugins BiosPlugin --exp-bios-version TestBios123
159+
node-scraper run-plugins BiosPlugin --exp-bios-version TestBios123
160160
```
161161
162162
Run multiple plugins
163163
```sh
164-
error-scraper run-plugins BiosPlugin --exp-bios-version TestBios123 RocmPlugin --exp-rocm TestRocm123
164+
node-scraper run-plugins BiosPlugin --exp-bios-version TestBios123 RocmPlugin --exp-rocm TestRocm123
165165
```
166166
167167
Run plugins without specifying args (plugin defaults will be used)
168168
169169
```sh
170-
error-scraper run-plugins BiosPlugin RocmPlugin
170+
node-scraper run-plugins BiosPlugin RocmPlugin
171171
```
172172
173173
Use plugin configs and 'run-plugins'
174174
175175
```sh
176-
error-scraper run-plugins BiosPlugin
176+
node-scraper run-plugins BiosPlugin
177177
```
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@
2626
import logging
2727
from typing import Generic, Optional
2828

29-
from errorscraper.connection.inband import InBandConnection
30-
from errorscraper.connection.inband.inband import CommandArtifact, FileArtifact
31-
from errorscraper.enums import EventPriority, OSFamily, SystemInteractionLevel
32-
from errorscraper.generictypes import TCollectArg, TDataModel
33-
from errorscraper.interfaces import DataCollector, TaskResultHook
34-
from errorscraper.interfaces.task import SystemCompatibilityError
35-
from errorscraper.models import SystemInfo
29+
from nodescraper.connection.inband import InBandConnection
30+
from nodescraper.connection.inband.inband import CommandArtifact, FileArtifact
31+
from nodescraper.enums import EventPriority, OSFamily, SystemInteractionLevel
32+
from nodescraper.generictypes import TCollectArg, TDataModel
33+
from nodescraper.interfaces import DataCollector, TaskResultHook
34+
from nodescraper.interfaces.task import SystemCompatibilityError
35+
from nodescraper.models import SystemInfo
3636

3737

3838
class InBandDataCollector(
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
###############################################################################
2626
from typing import Generic
2727

28-
from errorscraper.connection.inband import InBandConnectionManager, SSHConnectionParams
29-
from errorscraper.generictypes import TAnalyzeArg, TCollectArg, TDataModel
30-
from errorscraper.interfaces import DataPlugin
28+
from nodescraper.connection.inband import InBandConnectionManager, SSHConnectionParams
29+
from nodescraper.generictypes import TAnalyzeArg, TCollectArg, TDataModel
30+
from nodescraper.interfaces import DataPlugin
3131

3232

3333
class InBandDataPlugin(
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727

2828
from pydantic import BaseModel
2929

30-
from errorscraper.enums import EventCategory, EventPriority
31-
from errorscraper.generictypes import TAnalyzeArg, TDataModel
32-
from errorscraper.interfaces.dataanalyzertask import DataAnalyzer
33-
from errorscraper.models.event import Event
30+
from nodescraper.enums import EventCategory, EventPriority
31+
from nodescraper.generictypes import TAnalyzeArg, TDataModel
32+
from nodescraper.interfaces.dataanalyzertask import DataAnalyzer
33+
from nodescraper.models.event import Event
3434

3535

3636
class ErrorRegex(BaseModel):
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
import sys
3232
from typing import Optional
3333

34-
from errorscraper.cli.constants import DEFAULT_CONFIG, META_VAR_MAP
35-
from errorscraper.cli.dynamicparserbuilder import DynamicParserBuilder
36-
from errorscraper.cli.inputargtypes import ModelArgHandler, json_arg, log_path_arg
37-
from errorscraper.configbuilder import ConfigBuilder
38-
from errorscraper.configregistry import ConfigRegistry
39-
from errorscraper.constants import DEFAULT_LOGGER
40-
from errorscraper.enums import ExecutionStatus, SystemInteractionLevel, SystemLocation
41-
from errorscraper.models import PluginConfig, SystemInfo
42-
from errorscraper.pluginexecutor import PluginExecutor
43-
from errorscraper.pluginregistry import PluginRegistry
44-
from errorscraper.resultcollators.tablesummary import TableSummary
34+
from nodescraper.cli.constants import DEFAULT_CONFIG, META_VAR_MAP
35+
from nodescraper.cli.dynamicparserbuilder import DynamicParserBuilder
36+
from nodescraper.cli.inputargtypes import ModelArgHandler, json_arg, log_path_arg
37+
from nodescraper.configbuilder import ConfigBuilder
38+
from nodescraper.configregistry import ConfigRegistry
39+
from nodescraper.constants import DEFAULT_LOGGER
40+
from nodescraper.enums import ExecutionStatus, SystemInteractionLevel, SystemLocation
41+
from nodescraper.models import PluginConfig, SystemInfo
42+
from nodescraper.pluginexecutor import PluginExecutor
43+
from nodescraper.pluginregistry import PluginRegistry
44+
from nodescraper.resultcollators.tablesummary import TableSummary
4545

4646

4747
def build_parser(
@@ -58,7 +58,7 @@ def build_parser(
5858
parser and subparsers for each plugin module
5959
"""
6060
parser = argparse.ArgumentParser(
61-
description="Error scraper CLI",
61+
description="node scraper CLI",
6262
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
6363
)
6464

@@ -126,7 +126,7 @@ def build_parser(
126126
"--log-path",
127127
default=".",
128128
type=log_path_arg,
129-
help="Specifies local path for error scraper logs, use 'None' to disable logging",
129+
help="Specifies local path for node scraper logs, use 'None' to disable logging",
130130
metavar=META_VAR_MAP[str],
131131
)
132132

0 commit comments

Comments
 (0)