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: add generic config list type and use throughout all config settings #6567

Merged

Conversation

hansieodendaal
Copy link
Contributor

@hansieodendaal hansieodendaal commented Sep 17, 2024

Description

Added a generic config list type for use with config files and applied this to config arrays of type 'Vec'. With this PR, all array-type config options can be omitted in the config file and/or passed in via the command line as a config property override with `-p '.

Motivation and Context

Using config options where arrays have been used was not flexible or consistent throughout the config implementation.

How Has This Been Tested?

Added unit tests.
System-level testing.

What process can a PR reviewer use to test or verify this change?

Code review.
System-level testing.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Added a generic config list type for use with config files and applied this to
config arrays of type 'Vec<T>'.
Copy link

github-actions bot commented Sep 17, 2024

Test Results (CI)

    3 files    129 suites   39m 16s ⏱️
1 320 tests 1 320 ✅ 0 💤 0 ❌
3 958 runs  3 958 ✅ 0 💤 0 ❌

Results for commit 759bf68.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Sep 17, 2024
Copy link

github-actions bot commented Sep 17, 2024

Test Results (Integration tests)

36 tests   36 ✅  15m 15s ⏱️
11 suites   0 💤
 2 files     0 ❌

Results for commit 759bf68.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@leet4tari leet4tari left a comment

Choose a reason for hiding this comment

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

can't comment on the code, but only some very basic testing on minotari_node with base_node.grpc_server_allow_methods with example options and esmeralda.p2p.seeds.peer_seeds as empty.

@SWvheerden SWvheerden merged commit 13afb6f into tari-project:development Sep 17, 2024
17 checks passed
@hansieodendaal hansieodendaal deleted the ho_generic_config_list branch September 18, 2024 05:20
@hansieodendaal hansieodendaal changed the title feat: add generic config list type and use throughout all config settings feat!: add generic config list type and use throughout all config settings Sep 19, 2024
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Sep 19, 2024
@hansieodendaal hansieodendaal changed the title feat!: add generic config list type and use throughout all config settings feat: add generic config list type and use throughout all config settings Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants