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

Get a config from toml and create a network #100

Merged
merged 43 commits into from
Sep 21, 2023
Merged

Conversation

wirednkod
Copy link
Contributor

@wirednkod wirednkod commented Sep 5, 2023

Fixes #97

@wirednkod wirednkod marked this pull request as draft September 5, 2023 16:18
crates/configuration/src/network.rs Outdated Show resolved Hide resolved
@github-actions
Copy link

Coverage after merging nik-toml-to-network into main

88.48%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
crates/configuration/src
   global_settings.rs96.51%100%86.21%98%47
   hrmp_channel.rs93.94%100%85%96.20%45
   network.rs99.21%100%97.06%99.42%123, 128, 137, 251, 79
   parachain.rs99.17%100%95.96%99.54%174
   relaychain.rs98.66%100%93.94%99.25%95
   utils.rs100%100%100%100%
crates/configuration/src/shared
   errors.rs50%100%50%50%
   helpers.rs100%100%100%100%
   node.rs98.08%100%91.57%98.80%121, 127, 251
   resources.rs95.96%100%94.37%96.31%102, 114, 126–128, 147–150
   types.rs90.74%100%84.16%92.75%279–281, 350–352, 367, 371, 60–62
crates/orchestrator/src
   lib.rs100%100%100%100%
crates/provider/src
   errors.rs25%100%33.33%20%6–8
   lib.rs0%100%0%0%60–72, 74–85, 88–90
   native.rs46.71%100%48.10%46.54%100–103, 105, 108–109, 111–114, 129, 137, 163–180, 183–191, 193–202, 204–209, 212–258, 260–264, 266, 268–276, 278–279, 281, 283, 290–295, 297–299, 30, 300–302, 304–308, 311–321, 324, 334–335, 337–341, 344–349, 363, 367, 372–378, 385, 402, 410–411, 427, 429–434, 437–468, 471, 473–479, 481–491, 498, 511, 530, 552, 555–560, 564–567, 570–573, 575–584, 586–590, 592, 596–601, 603–610, 612–625, 627–628, 630–632, 635–641, 643–644, 795, 90, 95–99
crates/provider/src/shared
   types.rs9.36%100%10%8.79%116, 123–128, 133, 141, 148, 178, 20, 30, 37, 52–58, 66, 72, 78
crates/support/src
   net.rs0%100%0%0%10, 4–9
crates/support/src/fs
   errors.rs0%100%0%0%3
   local_file.rs36.36%100%33.33%37.50%23–25, 27–29, 33–35, 7
   mock.rs44.83%100%45.83%44.63%109, 124, 136–145, 147–156, 158–172, 52–57, 61–66, 70–75, 79–84
crates/test-runner/src
   lib.rs100%100%100%100%

@github-actions
Copy link

Coverage after merging nik-toml-to-network into main

88.45%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
crates/configuration/src
   global_settings.rs96.51%100%86.21%98%47
   hrmp_channel.rs93.94%100%85%96.20%45
   network.rs99.21%100%97.06%99.42%123, 128, 137, 251, 79
   parachain.rs99.17%100%95.96%99.54%174
   relaychain.rs98.66%100%93.94%99.25%95
   utils.rs100%100%100%100%
crates/configuration/src/shared
   errors.rs50%100%50%50%
   helpers.rs100%100%100%100%
   node.rs98.08%100%91.57%98.80%121, 127, 251
   resources.rs95.96%100%94.37%96.31%102, 114, 126–128, 147–150
   types.rs90.29%100%84.16%92.11%279–281, 350–352, 375–376, 378–380, 60–62
crates/orchestrator/src
   lib.rs100%100%100%100%
crates/provider/src
   errors.rs25%100%33.33%20%6–8
   lib.rs0%100%0%0%60–72, 74–85, 88–90
   native.rs46.71%100%48.10%46.54%100–103, 105, 108–109, 111–114, 129, 137, 163–180, 183–191, 193–202, 204–209, 212–258, 260–264, 266, 268–276, 278–279, 281, 283, 290–295, 297–299, 30, 300–302, 304–308, 311–321, 324, 334–335, 337–341, 344–349, 363, 367, 372–378, 385, 402, 410–411, 427, 429–434, 437–468, 471, 473–479, 481–491, 498, 511, 530, 552, 555–560, 564–567, 570–573, 575–584, 586–590, 592, 596–601, 603–610, 612–625, 627–628, 630–632, 635–641, 643–644, 795, 90, 95–99
crates/provider/src/shared
   types.rs9.36%100%10%8.79%116, 123–128, 133, 141, 148, 178, 20, 30, 37, 52–58, 66, 72, 78
crates/support/src
   net.rs0%100%0%0%10, 4–9
crates/support/src/fs
   errors.rs0%100%0%0%3
   local_file.rs36.36%100%33.33%37.50%23–25, 27–29, 33–35, 7
   mock.rs44.83%100%45.83%44.63%109, 124, 136–145, 147–156, 158–172, 52–57, 61–66, 70–75, 79–84
crates/test-runner/src
   lib.rs100%100%100%100%

@wirednkod wirednkod requested a review from l0r1s September 18, 2023 12:14
Copy link
Collaborator

@pepoviola pepoviola left a comment

Choose a reason for hiding this comment

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

Looks good @wirednkod!!! Couple of comments and nits

@wirednkod wirednkod requested a review from pepoviola September 18, 2023 18:06
@github-actions
Copy link

Coverage after merging nik-toml-to-network into main

88.44%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
crates/configuration/src
   global_settings.rs96.51%100%86.21%98%47
   hrmp_channel.rs93.94%100%85%96.20%45
   network.rs99.20%100%97.06%99.42%111, 116, 124, 244, 80
   parachain.rs99.17%100%95.96%99.54%174
   relaychain.rs98.66%100%93.94%99.25%95
   utils.rs100%100%100%100%
crates/configuration/src/shared
   errors.rs50%100%50%50%
   helpers.rs100%100%100%100%
   node.rs98.08%100%91.57%98.80%121, 127, 251
   resources.rs95.96%100%94.37%96.31%102, 114, 126–128, 147–150
   types.rs90.29%100%84.16%92.11%279–281, 350–352, 375–376, 378–380, 60–62
crates/orchestrator/src
   lib.rs100%100%100%100%
crates/provider/src
   errors.rs25%100%33.33%20%6–8
   lib.rs0%100%0%0%60–72, 74–85, 88–90
   native.rs46.71%100%48.10%46.54%100–103, 105, 108–109, 111–114, 129, 137, 163–180, 183–191, 193–202, 204–209, 212–258, 260–264, 266, 268–276, 278–279, 281, 283, 290–295, 297–299, 30, 300–302, 304–308, 311–321, 324, 334–335, 337–341, 344–349, 363, 367, 372–378, 385, 402, 410–411, 427, 429–434, 437–468, 471, 473–479, 481–491, 498, 511, 530, 552, 555–560, 564–567, 570–573, 575–584, 586–590, 592, 596–601, 603–610, 612–625, 627–628, 630–632, 635–641, 643–644, 795, 90, 95–99
crates/provider/src/shared
   types.rs9.36%100%10%8.79%116, 123–128, 133, 141, 148, 178, 20, 30, 37, 52–58, 66, 72, 78
crates/support/src
   net.rs0%100%0%0%10, 4–9
crates/support/src/fs
   errors.rs0%100%0%0%3
   local_file.rs36.36%100%33.33%37.50%23–25, 27–29, 33–35, 7
   mock.rs44.83%100%45.83%44.63%109, 124, 136–145, 147–156, 158–172, 52–57, 61–66, 70–75, 79–84
crates/test-runner/src
   lib.rs100%100%100%100%

@github-actions
Copy link

Coverage after merging nik-toml-to-network into main

88.47%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
crates/configuration/src
   global_settings.rs96.51%100%86.21%98%47
   hrmp_channel.rs93.94%100%85%96.20%45
   network.rs99.21%100%97.06%99.42%111, 116, 124, 244, 80
   parachain.rs98.43%100%95.15%98.80%228, 51–53, 67–70
   relaychain.rs98.66%100%93.94%99.25%95
   utils.rs100%100%100%100%
crates/configuration/src/shared
   errors.rs50%100%50%50%
   helpers.rs100%100%100%100%
   node.rs98.08%100%91.57%98.80%121, 127, 251
   resources.rs96.09%100%94.52%96.43%102, 114, 126–128, 147–150
   types.rs90.29%100%84.16%92.11%279–281, 350–352, 375–376, 378–380, 60–62
crates/orchestrator/src
   lib.rs100%100%100%100%
crates/provider/src
   errors.rs25%100%33.33%20%6–8
   lib.rs0%100%0%0%60–72, 74–85, 88–90
   native.rs46.71%100%48.10%46.54%100–103, 105, 108–109, 111–114, 129, 137, 163–180, 183–191, 193–202, 204–209, 212–258, 260–264, 266, 268–276, 278–279, 281, 283, 290–295, 297–299, 30, 300–302, 304–308, 311–321, 324, 334–335, 337–341, 344–349, 363, 367, 372–378, 385, 402, 410–411, 427, 429–434, 437–468, 471, 473–479, 481–491, 498, 511, 530, 552, 555–560, 564–567, 570–573, 575–584, 586–590, 592, 596–601, 603–610, 612–625, 627–628, 630–632, 635–641, 643–644, 795, 90, 95–99
crates/provider/src/shared
   types.rs9.36%100%10%8.79%116, 123–128, 133, 141, 148, 178, 20, 30, 37, 52–58, 66, 72, 78
crates/support/src
   net.rs0%100%0%0%10, 4–9
crates/support/src/fs
   errors.rs0%100%0%0%3
   local_file.rs36.36%100%33.33%37.50%23–25, 27–29, 33–35, 7
   mock.rs44.83%100%45.83%44.63%109, 124, 136–145, 147–156, 158–172, 52–57, 61–66, 70–75, 79–84
crates/test-runner/src
   lib.rs100%100%100%100%

@github-actions
Copy link

Coverage after merging nik-toml-to-network into main

88.58%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
crates/configuration/src
   global_settings.rs97.36%100%89.29%98.49%
   hrmp_channel.rs95.88%100%89.47%97.44%
   network.rs99.34%100%97.78%99.49%111, 116, 124, 80
   parachain.rs98.63%100%96.08%98.91%51–53, 67–70
   relaychain.rs98.99%100%95.38%99.44%
   utils.rs100%100%100%100%
crates/configuration/src/shared
   errors.rs50%100%50%50%
   helpers.rs100%100%100%100%
   node.rs98.32%100%92.68%98.93%121, 127
   resources.rs96.09%100%94.52%96.43%102, 114, 126–128, 147–150
   types.rs90.29%100%84.16%92.11%279–281, 350–352, 375–376, 378–380, 60–62
crates/orchestrator/src
   lib.rs100%100%100%100%
crates/provider/src
   errors.rs25%100%33.33%20%6–8
   lib.rs0%100%0%0%60–72, 74–85, 88–90
   native.rs46.71%100%48.10%46.54%100–103, 105, 108–109, 111–114, 129, 137, 163–180, 183–191, 193–202, 204–209, 212–258, 260–264, 266, 268–276, 278–279, 281, 283, 290–295, 297–299, 30, 300–302, 304–308, 311–321, 324, 334–335, 337–341, 344–349, 363, 367, 372–378, 385, 402, 410–411, 427, 429–434, 437–468, 471, 473–479, 481–491, 498, 511, 530, 552, 555–560, 564–567, 570–573, 575–584, 586–590, 592, 596–601, 603–610, 612–625, 627–628, 630–632, 635–641, 643–644, 795, 90, 95–99
crates/provider/src/shared
   types.rs9.36%100%10%8.79%116, 123–128, 133, 141, 148, 178, 20, 30, 37, 52–58, 66, 72, 78
crates/support/src
   net.rs0%100%0%0%10, 4–9
crates/support/src/fs
   errors.rs0%100%0%0%3
   local_file.rs40%100%40%40%22–24, 26–28, 32–34
   mock.rs44.83%100%45.83%44.63%109, 124, 136–145, 147–156, 158–172, 52–57, 61–66, 70–75, 79–84
crates/test-runner/src
   lib.rs100%100%100%100%

@wirednkod wirednkod merged commit fe91d05 into main Sep 21, 2023
@wirednkod wirednkod deleted the nik-toml-to-network branch September 21, 2023 15:19
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.

Configuration toml to network
3 participants