paritytech / zombienet-sdk

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

Feat/docker provider #198

Closed l0r1s closed 3 months ago

l0r1s commented 4 months ago

WIP

pepoviola commented 3 months ago

Hi @l0r1s, looks great. What's the current status. I can continue with the implementation.

Thx!!

github-actions[bot] commented 3 months ago

Coverage after merging feat/docker-provider into main

51.67%

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%119, 124, 132, 177, 82, 90
   parachain.rs93.55%100%96.59%93.28%353–365, 367–374, 377, 46–47, 60–62, 632–641, 76–79
   relaychain.rs93.46%100%96.43%93.15%341–350, 77–79
   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%101–106, 109–112, 115–121, 124–125, 128–139, 142–158, 161–165, 167–170, 172–180, 182–188, 191–196, 198–207, 209–211, 213, 48, 64–71, 73–75, 77–83, 86–94, 97–99
   spawner.rs0%100%0%0%100, 102–107, 109–112, 115–124, 126, 129–131, 134–138, 140, 145–150, 152, 154–158, 160–164, 167–177, 179–180, 182, 186–189, 191–196, 198–208, 210–213, 216–217, 220–227, 229–234, 236, 238–245, 45–58, 60–61, 63, 65–68, 72–73, 75, 78–98
crates/orchestrator/src/generators
   bootnode_addr.rs96.94%100%100%96.67%
   chain_spec.rs25.48%100%19.72%25.95%110–126, 128–141, 143, 148–161, 164–175, 177–182, 184–186, 189–206, 209–215, 217, 219–224, 226, 229–248, 250–253, 255–257, 259–268, 270–282, 284, 287–292, 294–295, 297–310, 312, 315–320, 322–323, 326–339, 341–346, 348–350, 352–354, 357–361, 363–385, 389–398, 401–404, 407, 409–410, 412–427, 429, 431–435, 437, 440, 443–444, 447–451, 454–478, 482–484, 487–495, 505–513, 515–527, 529–537, 540–542, 546–549, 551–552, 555–562, 564–566, 569–571, 573, 578–589, 593–606, 608, 611–612, 615–621, 623–628, 630–635, 637, 639, 641–650, 652–655, 658–659, 662–664, 666, 668–669, 671–675, 677–680, 682, 684–685, 687–688, 690–692, 694–696, 698–700, 703–705, 708–712, 714, 716, 735, 759, 763–769, 771–781, 783–784, 786–806, 808, 81–82, 821, 825–829, 83, 830–847, 849, 85, 858–859, 86, 860–868, 87, 870, 872–891, 894–896, 898, 901, 903, 94–97
   command.rs0%100%0%0%100–102, 105–117, 119–125, 127, 130–135, 137, 140–153, 155, 158–159, 16, 160, 162, 165–169, 17, 170–179, 18, 180–189, 19, 190–199, 20, 200–202, 204, 206, 208–209, 21, 210–219, 22, 220–229, 23, 231–234, 236–239, 24, 240–241, 243–249, 25, 250–251, 254–259, 26, 260–264, 266–270, 272, 275–283, 285, 288–304, 307–312, 314, 317–319, 321, 324–344, 346–348, 350–351, 353, 355, 358–360, 362, 364, 46–64, 66–68, 70–78, 81–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%20–32, 35–47, 49–56, 58–65, 67, 69–87
   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%101–106, 109–120, 122, 124, 127–132, 135–136, 138–143, 147–150, 154–158, 160–163, 165, 169–170, 67, 70–75, 77–84, 94–98
   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.rs59.03%100%40%60.45%107, 112, 141, 146–149, 152, 164–167, 170, 209–222, 224–236, 238, 240–241, 79, 84–86, 98
   relaychain.rs95.65%100%100%95.24%101, 108, 76
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–108, 110–116, 118–129, 132–139, 141–148, 151–161, 163–164, 166–172, 175–188, 191–201, 203–204, 206–208, 216–218, 220–222, 224–226, 228–230, 232–239, 244–245, 247–252, 254–259, 261, 263–264, 266–270, 272–287, 289–295, 297–298, 300–305, 308–314, 317–321, 323–327, 329, 331–336, 338–343, 347–348, 350–352, 354–359, 361–363, 365–366, 373–384, 386–389, 391–392, 50–59, 61–73, 75–76, 78–82, 84–85, 87–96, 98–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–107, 109–110, 112–127, 129–135, 137–139, 141–146, 149–153, 155–167, 170–180, 182–217, 219–223, 226–227, 229–236, 238–245, 247–251, 253–254, 256–263, 265–269, 271–272, 274–275, 277–296, 298–300, 302–306, 308–309, 311–313, 320–331, 333–336, 338–339, 347–349, 351–353, 355–357, 359–361, 363–370, 375–376, 379–384, 386–391, 393, 395–396, 398–402, 404–418, 420–426, 428–429, 431–436, 439–445, 448–452, 454–458, 460, 462–467, 469–474, 478–479, 481–483, 485–490, 492–494, 496–497, 57–66, 68–82, 84–85, 87–89, 91–98
   node.rs0%100%0%0%100–101, 103–108, 110–130, 132–134, 136, 138, 140–141, 143–163, 165–169, 171–172, 174–182, 185–210, 212–216, 218–219, 221–228, 230–231, 233–240, 245–269, 271–272, 274–283, 285–286, 288–307, 309–310, 312–315, 318–320, 322–323, 325–343, 345–346, 348–353, 355–362, 364–367, 369–372, 374, 376–384, 386–387, 389–394, 396–399, 407–409, 411–413, 415–417, 419–421, 423–425, 427–429, 431–433, 435–437, 439–443, 446–451, 453–454, 456–459, 461–462, 468, 470–472, 474–478, 480–486, 491–492, 494–496, 498, 500–502, 504–518, 523–539, 546–553, 555–557, 559–574, 576–595, 597–611, 613–614, 620–622, 624–629, 631, 633–638, 640–643, 645, 647–661, 663–664, 666–680, 682–683, 685–688, 690–703, 705–706, 708–712, 714–716, 718–719, 83–88, 90–94, 96–99
   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.rs90.79%100%88.89%91.04%10–12, 8–9
   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
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