Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

client: fix invalid node name pattern regex#14593

Merged
paritytech-processbot[bot] merged 4 commits intomasterfrom
andre/fix-client-name-regex
Jul 18, 2023
Merged

client: fix invalid node name pattern regex#14593
paritytech-processbot[bot] merged 4 commits intomasterfrom
andre/fix-client-name-regex

Conversation

@andresilva
Copy link
Contributor

@andresilva andresilva commented Jul 17, 2023

See https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/3206771.

polkadot companion: paritytech/polkadot#7484

(the companion above is fake, needed to unlock ci)

@andresilva andresilva requested a review from bkchr July 17, 2023 22:20
@andresilva andresilva added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jul 17, 2023
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

Thanks! We will have to merge it red.

@andresilva andresilva changed the title client: fix invalid name pattern regex client: fix invalid node name pattern regex Jul 17, 2023
@michalkucharczyk
Copy link
Contributor

michalkucharczyk commented Jul 18, 2023

Are other protocols' prefixes fine (like 'wss://')?

@bkchr
Copy link
Member

bkchr commented Jul 18, 2023

Are other protocols' prefixes fine (like 'wss://')?

In the end this entire check here is useless anyway, because everyone could send whatever they want to the telemetry backend. So, this here is just some kind of sanity check.

@bkchr
Copy link
Member

bkchr commented Jul 18, 2023

bot merge force

@paritytech-processbot paritytech-processbot bot merged commit 696d09b into master Jul 18, 2023
@paritytech-processbot paritytech-processbot bot deleted the andre/fix-client-name-regex branch July 18, 2023 05:56
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
* client: fix invalid name pattern regex

* Update client/cli/src/commands/run_cmd.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* client: test node name is non-empty

* client: add more tests to is_node_name_valid

---------

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Ank4n pushed a commit that referenced this pull request Jul 22, 2023
* client: fix invalid name pattern regex

* Update client/cli/src/commands/run_cmd.rs

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* client: test node name is non-empty

* client: add more tests to is_node_name_valid

---------

Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants