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

Misc Node Manager UX Improvements #1474

Merged
merged 6 commits into from
Mar 21, 2024

Conversation

jacderida
Copy link
Contributor

@jacderida jacderida commented Mar 20, 2024

  • 687df21 feat: uniform behaviour for all add commands

    The three add commands for safenode, safenodemand and faucet now behave in a uniform way,
    all supporting --path, --url and --version arguments. These enable a binary to be provided via
    a path, a URL pointing to a tar/zip containing the binary, or by a specific version number,
    respectively.

    The safenodemand service also now supports running as a non-root user.

  • 227574b feat: provide --metrics-port arg for add cmd

    Enables a port range to be specified for the metrics server ports on a series of node services.
    Users who run the metrics server with a specific port range can take advantage of this.

  • 7790105 feat: provide --rpc-port arg for add cmd

    This feature was requested in community feedback. It behaves the same way as the other port
    arguments, in that it can be a range.

    Some of the add_node tests were changed to remove the use of a custom RPC address argument because
    the test case did not concern itself with customising the RPC address.

  • 207fe50 feat: arguments can be used multiple times

    The --service-name and --peer-id arguments are changed from single use to multiple. This feature
    was requested in community feedback.

    It was only requested for one command, but a few different commands use these arguments, so all were
    updated to behave consistently.

    The integration tests were updated to make use of the arguments multiple times, which will function
    as a test for the change.

  • 2736e8c feat: add --interval arg to start command

    Another feature that was requested by the community.

    Add a controllable delay between each service start.

  • 2626bdb docs: clarify version number usage

    This was also requested by the community. People were attempting to use a 'v' prefix.

Description

reviewpad:summary

.with(eq(ServiceInstallCtx {
args: vec![
OsString::from("--rpc"),
OsString::from("127.0.0.1:20002"),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note test

Do not leave debug code in production
.with(eq(ServiceInstallCtx {
args: vec![
OsString::from("--rpc"),
OsString::from("127.0.0.1:20001"),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note test

Do not leave debug code in production
.with(eq(ServiceInstallCtx {
args: vec![
OsString::from("--rpc"),
OsString::from("127.0.0.1:20000"),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note test

Do not leave debug code in production
.with(eq(ServiceInstallCtx {
args: vec![
OsString::from("--rpc"),
OsString::from("127.0.0.1:15002"),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note test

Do not leave debug code in production
.with(eq(ServiceInstallCtx {
args: vec![
OsString::from("--rpc"),
OsString::from("127.0.0.1:15001"),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note test

Do not leave debug code in production
.with(eq(ServiceInstallCtx {
args: vec![
OsString::from("--rpc"),
OsString::from("127.0.0.1:15000"),

Check notice

Code scanning / devskim

Accessing localhost could indicate debug code, or could hinder scaling. Note test

Do not leave debug code in production
@jacderida jacderida force-pushed the node-manager-misc-ux branch 2 times, most recently from 95318bb to b963eb7 Compare March 20, 2024 17:29
The three `add` commands for `safenode`, `safenodemand` and `faucet` now behave in a uniform way,
all supporting `--path`, `--url` and `--version` arguments. These enable a binary to be provided via
a path, a URL pointing to a tar/zip containing the binary, or by a specific version number,
respectively.

The `safenodemand` service also now supports running as a non-root user.
Enables a port range to be specified for the metrics server ports on a series of node services.
Users who run the metrics server with a specific port range can take advantage of this.
This feature was requested in community feedback. It behaves the same way as the other port
arguments, in that it can be a range.

Some of the `add_node` tests were changed to remove the use of a custom RPC address argument because
the test case did not concern itself with customising the RPC address.
The `--service-name` and `--peer-id` arguments are changed from single use to multiple. This feature
was requested in community feedback.

It was only requested for one command, but a few different commands use these arguments, so all were
updated to behave consistently.

The integration tests were updated to make use of the arguments multiple times, which will function
as a test for the change.
Another feature that was requested by the community.

Add a controllable delay between each service start.
This was also requested by the community. People were attempting to use a 'v' prefix.
@jacderida jacderida force-pushed the node-manager-misc-ux branch from 3ef57e7 to 2626bdb Compare March 21, 2024 17:42
@jacderida jacderida changed the title WIP: Misc Node Manager UX Improvements Misc Node Manager UX Improvements Mar 21, 2024
@bochaco bochaco added this pull request to the merge queue Mar 21, 2024
Merged via the queue into maidsafe:main with commit 777a132 Mar 21, 2024
56 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants