paritytech / zombienet-sdk

ZombieNet SDK
https://paritytech.github.io/zombienet-sdk/zombienet_sdk/
GNU General Public License v3.0
32 stars 8 forks source link

feat: add support to build chain-spec with a custom command #204

Closed pepoviola closed 5 months ago

github-actions[bot] commented 5 months ago

Coverage after merging chain-spec-custom-build-command into main

51.83%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
crates/configuration/src
   global_settings.rs100%100%100%100%
   hrmp_channel.rs100%100%100%100%
   network.rs98.88%100%100%98.78%118, 123, 131, 176, 81, 89
   parachain.rs93.75%100%96.74%93.47%363–375, 377–384, 387, 46–47, 60–62, 642–651, 76–79
   relaychain.rs93.79%100%96.67%93.49%363–372, 86–88
   utils.rs40%100%40%40%11–13, 15–17, 19–21
crates/configuration/src/shared
   errors.rs100%100%100%100%
   helpers.rs100%100%100%100%
   node.rs95.85%100%96.88%95.77%119, 136, 142, 388–406, 408, 44
   resources.rs97.10%100%97.56%97.04%102, 114, 126–128, 147–150
   types.rs94.81%100%92.31%95.22%284–286, 355–357, 383–384, 386–388, 407, 60–62
crates/file-server/src
   main.rs0%100%0%0%22–49, 51–58, 60–61, 63–65, 67–70, 72–73, 75, 77–81, 83–88
crates/orchestrator/src
   errors.rs0%100%0%0%8
   lib.rs23.89%100%28.89%23.39%100–101, 103, 105–110, 112–116, 119, 121–138, 142–169, 173–182, 185, 188–192, 194, 196–200, 203–221, 223–228, 230–250, 252, 254–256, 260–262, 265, 268–273, 275–278, 281–285, 288, 290–291, 294–298, 300, 302–316, 319–321, 323–328, 338–362, 367–368, 377, 388, 396–399, 401, 420–422, 424–434, 436–437, 439–447, 449–456, 458–459, 46, 460–465, 467–469, 47, 470–478, 48–51, 53–58, 60–67, 69–74, 77–83, 86–88, 90–92, 94–99
   network.rs0%100%0%0%117–127, 129–130, 132–136, 139–145, 147–148, 150–153, 156–174, 176, 189–192, 219–232, 234, 236–246, 248–262, 264–265, 267–271, 274–277, 279–286, 288, 291–296, 298–299, 301–304, 307–313, 319–322, 357–362, 364–368, 371, 373–378, 38, 380–388, 39, 391–393, 396–397, 399, 40, 402, 404–409, 41, 410–419, 42, 420–421, 423–425, 428–429, 43, 430–432, 434, 436–439, 44, 440, 445–449, 45, 450–459, 46, 460–479, 482–485, 487–492, 494–495, 500–516, 518–526, 528–530, 532–534, 537–541, 543, 545–547, 549–551, 553–555, 557–559, 561–563, 565–567, 569–574, 576–582, 59–73, 76–78, 80–82, 85–87
   network_spec.rs40.30%100%32.14%41.25%100–105, 108–111, 114–120, 123–124, 127–138, 141–157, 160–164, 166–169, 171–179, 181–187, 190–195, 197–206, 208–210, 212, 47, 63–70, 72–74, 76–82, 85–93, 96–98
   spawner.rs0%100%0%0%101–106, 108–111, 114–123, 125, 128–130, 133–137, 139, 144–149, 151, 153–157, 159–163, 166–176, 178–179, 181, 185–188, 190–195, 197–207, 209–212, 215–216, 219–226, 228–233, 235, 237–244, 44–57, 59–60, 62, 64–67, 71–72, 74, 77–97, 99
crates/orchestrator/src/generators
   bootnode_addr.rs96.94%100%100%96.67%
   chain_spec.rs24.82%100%18.67%25.34%110–126, 128–141, 143, 147–152, 156, 158, 160, 163–167, 169–173, 175, 177–180, 183–194, 196–201, 203–205, 208–225, 228–234, 236, 238–243, 245, 248–256, 258–262, 264, 266–277, 279–282, 284–286, 288–297, 299–311, 313, 316–321, 323–324, 326–339, 341, 344–349, 351–352, 355–368, 370–375, 377–379, 381–383, 386–390, 392–414, 418–427, 430–433, 436, 438–439, 441–456, 458, 460–464, 466, 469, 472–473, 476–480, 483–507, 511–513, 516–524, 534–542, 544–556, 558–566, 569–571, 575–578, 580–581, 584–591, 593–595, 598–600, 602, 607–618, 622–635, 637, 640–641, 644–650, 652–657, 659–664, 666, 668, 670–679, 681–684, 687–688, 691–693, 695, 697–698, 700–704, 706–709, 711, 713–714, 716–717, 719–721, 723–725, 727–729, 732–734, 737–741, 743, 745, 764, 788, 792–798, 800–809, 81, 810, 812–813, 815–819, 82, 820–829, 83, 830–835, 837, 85, 850, 854–859, 86, 860–869, 87, 870–876, 878, 887–897, 899, 901–920, 923–925, 927, 930, 932, 94–97
   command.rs0%100%0%0%100–103, 106–118, 120–126, 128, 131–136, 138, 141–154, 156, 159–161, 163, 166–169, 17, 170–179, 18, 180–189, 19, 190–199, 20, 200–203, 205, 207, 209, 21, 210–219, 22, 220–229, 23, 230, 232–235, 237–239, 24, 240–242, 244–249, 25, 250–252, 255–259, 26, 260–265, 267–269, 27, 270–271, 273, 276–284, 286, 289–305, 308–313, 315, 318–320, 322, 325–345, 347–349, 351–352, 354, 356, 359–361, 363, 365, 47–65, 67–69, 71–79, 82–99
   errors.rs0%100%0%0%4
   identity.rs81.25%100%50%85.71%13
   key.rs93.97%100%72.73%96.19%36
   keystore.rs0%100%0%0%19–31, 34–46, 48–55, 57–64, 66, 68–86
   para_artifact.rs20%100%40%18.75%100–104, 106, 109–115, 117, 120–130, 134–135, 54–56, 58–71, 73–76, 80–81, 83, 85–95, 97, 99
   port.rs93.33%100%75%96.15%
crates/orchestrator/src/network
   node.rs0%100%0%0%100–106, 108–110, 113–114, 118–121, 124–127, 134–139, 149–156, 160–168, 171–173, 175, 179–181, 183–189, 191–193, 195–198, 200–204, 208–216, 221–228, 230, 232, 236, 239–260, 264–267, 269–278, 28–43, 45–47, 49–51, 55–58, 61–63, 66–70, 77–87, 90–91, 98–99
   parachain.rs62.68%100%69.23%62.24%100–105, 108–119, 121, 123, 126–131, 134–135, 137–142, 146–149, 153–157, 159–162, 164, 168–169, 66, 69–74, 76–83, 93–97
   relaychain.rs0%100%0%0%14–21, 24–26
crates/orchestrator/src/network_helper
   verifier.rs0%100%0%0%10–12, 17, 19–25, 27–32, 34, 8–9
crates/orchestrator/src/network_spec
   node.rs34.01%100%16.67%34.75%127–128, 130–133, 147, 158–159, 193–197, 199–200, 202, 205, 207–210, 212–215, 218, 222–227, 229, 232, 234–259, 26, 260–266, 268, 27, 270–277, 28–38
   parachain.rs60.26%100%40%61.70%107, 112, 122, 152, 157–160, 163, 175–178, 181, 220–233, 235–247, 249, 251–252, 79, 84–86, 98
   relaychain.rs94.59%100%100%94.12%110, 117, 79, 86
crates/orchestrator/src/shared
   types.rs66.67%100%66.67%66.67%45–49
crates/prom-metrics-parser/src
   lib.rs93.33%100%87.50%93.75%103, 125, 53–55, 7, 79
crates/provider/src
   lib.rs0%100%0%0%137–140, 187–189, 196–198, 25
crates/provider/src/docker
   client.rs0%100%0%0%10, 101–119, 121–131, 133–144, 146–152, 154–160, 162–165, 167–170, 174–175, 177–178, 180–185, 187–196, 200–205, 207–216, 218–224, 226–232, 234–245, 247–253, 255–261, 263–274, 276–287, 289–293, 295–297, 299–308, 310–320, 322–330, 332–351, 353–363, 365–370, 372–381, 383–394, 396, 398–399, 40, 400–403, 405, 407–408, 410–411, 414–415, 417–419, 421–429, 431–434, 436–439, 442–444, 446–452, 454–458, 461–462, 464–469, 471, 473–474, 476–477, 479–492, 496–497, 499–502, 504–506, 508–512, 514–518, 52, 521–523, 525–527, 529, 531–534, 63, 79–89, 91–98
   namespace.rs0%100%0%0%100–107, 109–115, 117–128, 131–138, 140–147, 150–160, 162–163, 165–171, 174–187, 190–200, 202–203, 205–207, 215–217, 219–221, 223–225, 227–229, 231–238, 243–244, 246–251, 253–258, 260, 262–263, 265–269, 271–286, 288–294, 296–297, 299–304, 307–313, 316–320, 322–326, 328, 330–335, 337–342, 346–347, 349–351, 353–358, 360–362, 364–365, 372–383, 385–388, 390–391, 49–58, 60–72, 74–75, 77–81, 83–84, 86–95, 97–99
   node.rs0%100%0%0%100–119, 121–123, 125, 127, 129–130, 132–166, 169–178, 180–181, 183–187, 225–234, 236–237, 239–259, 261–262, 264–267, 270–272, 274–275, 277–296, 298–299, 301–306, 314–316, 318–320, 322–324, 326–328, 330–332, 334–336, 338–340, 342–344, 346–350, 352–354, 356–358, 363–391, 396–398, 405–408, 410–416, 418–445, 447–448, 454–456, 458–465, 467–472, 474–489, 491–492, 494–509, 511–512, 514–517, 519–533, 535–536, 538–542, 544–546, 548–549, 73–78, 80–84, 86–91, 93–98
   provider.rs0%100%0%0%34–50, 52–55, 63–65, 67–69, 71–78, 80–88, 90–96
crates/provider/src/kubernetes
   client.rs0%100%0%0%100–101, 103–134, 136, 138–139, 141–163, 165–172, 174–176, 178–190, 192–196, 198–202, 205–227, 229, 231–247, 249–259, 26, 260–264, 266–271, 274–278, 280, 282–283, 286–287, 289–305, 308–310, 312, 317, 320, 323, 325–330, 332–338, 340–341, 343–366, 368–369, 373–379, 38, 380–389, 39, 390–399, 40, 400–409, 41, 411–413, 416–419, 42, 420–429, 43, 430, 432–444, 446–447, 449, 45, 450–462, 464–477, 48, 481–482, 49, 492–499, 50, 500–509, 51, 510, 52–53, 56–64, 66–85, 87, 89–90, 92–98
   namespace.rs0%100%0%0%100–106, 108–109, 111–126, 128–134, 136–138, 140–145, 148–152, 154–166, 169–179, 181–216, 218–222, 225–226, 228–235, 237–244, 246–250, 252–253, 255–262, 264–268, 270–271, 273–274, 276–295, 297–299, 301–305, 307–308, 310–312, 319–330, 332–335, 337–338, 346–348, 350–352, 354–356, 358–360, 362–369, 374–375, 378–383, 385–390, 392, 394–395, 397–401, 403–417, 419–425, 427–428, 430–435, 438–444, 447–451, 453–457, 459, 461–466, 468–473, 477–478, 480–482, 484–489, 491–493, 495–496, 56–65, 67–81, 83–84, 86–88, 90–97, 99
   node.rs0%100%0%0%100–105, 107–127, 129–131, 133, 135, 137–138, 140–160, 162–166, 168–169, 171–179, 182–207, 209–213, 215–216, 218–225, 227–228, 230–237, 242–266, 268–269, 271–280, 282–283, 285–304, 306–307, 309–312, 315–317, 319–320, 322–340, 342–343, 345–350, 352–359, 361–364, 366–369, 371, 373–381, 383–384, 386–391, 393–396, 404–406, 408–410, 412–414, 416–418, 420–422, 424–426, 428–430, 432–434, 436–440, 443–448, 450–451, 453–456, 458–459, 465, 467–469, 471–475, 477–483, 488–489, 491–493, 495, 497–499, 501–515, 520–536, 543–550, 552–554, 556–571, 573–592, 594–608, 610–611, 617–619, 621–626, 628, 630–635, 637–640, 642, 644–658, 660–661, 663–677, 679–680, 682–685, 687–700, 702–703, 705–709, 711–713, 715–716, 80–85, 87–91, 93–98
   pod_spec_builder.rs0%100%0%0%100–125, 127–149, 15, 150–152, 154–159, 16, 160–166, 168–169, 17, 170–172, 174–176, 178–179, 18, 180, 182–183, 185, 187, 19–32, 34–71, 73–90, 92–99
   provider.rs0%100%0%0%34–50, 52–55, 63–65, 67–69, 71–78, 80–88, 90–96
crates/provider/src/native
   namespace.rs0%100%0%0%100–105, 107, 109–110, 112–115, 117–129, 131–137, 139–141, 143, 147–153, 156–160, 162–173, 175, 177–183, 185–190, 194–195, 197, 199–200, 202–204, 207–209, 211–212, 41–49, 51–60, 68–70, 72–74, 76–78, 80–87, 92–98
   node.rs0%100%0%0%100–107, 109–129, 131–133, 135, 137, 139–140, 142–150, 152–153, 155–166, 168–169, 171–175, 178–182, 186–188, 190–191, 193–201, 203–213, 215–217, 219–220, 224–225, 227–250, 252–271, 273, 275, 277, 279–280, 282–289, 292, 294–295, 297–298, 300–302, 306–307, 309–316, 318–319, 321–349, 351–352, 354–359, 367–369, 371–373, 375–377, 379–381, 383–385, 387–389, 391–393, 395–397, 399–406, 408–410, 412–414, 419–432, 434–435, 437–440, 442, 447–452, 455–472, 475–481, 488–497, 499–510, 512–513, 519–528, 530–531, 533–534, 536–537, 539–540, 542–543, 545–546, 548–549, 551–554, 556–558, 560–563, 565, 567–568, 570–573, 575–577, 579–580, 82–91, 93–99
   provider.rs0%100%0%0%33–50, 52–55, 63–65, 67–69, 71–78, 80–87, 89–95
crates/provider/src/shared
   helpers.rs100%100%100%100%
   types.rs4%100%2.86%4.17%100–110, 112–118, 120–130, 132–135, 147–158, 160–167, 169–179, 192–202, 204–218, 220–226, 228–234, 236–239, 250–259, 261–268, 270–280, 290–299, 301–308, 310–320, 344–350, 354–361, 55–71, 73–79, 81–84, 86–89, 91–98
crates/sdk/src
   lib.rs0%100%0%0%34–39, 41–46, 48–53
crates/support/src
   fs.rs100%100%100%100%
   net.rs0%100%0%0%10, 4–9
   replacer.rs96.67%100%85.71%98.11%
crates/support/src/fs
   in_memory.rs96.39%100%94.95%96.52%107, 248–253, 41–44, 46, 48–51, 53, 55–58, 60
   local.rs98.76%100%96.67%99.01%63, 92–94