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

fix(k8s): collator port assignment to use in cmd #197

Closed pepoviola closed 4 months ago

pepoviola commented 4 months ago
github-actions[bot] commented 4 months ago

Coverage after merging fix-collator-port-assignment into main

57.49%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
crates/configuration/src
   global_settings.rs98.46%100%93.33%99.13%
   hrmp_channel.rs95.88%100%89.47%97.44%
   network.rs98.51%100%97.78%98.58%119, 124, 132, 177, 82, 90
   parachain.rs93.25%100%94.50%93.12%353–365, 367–374, 377, 46–47, 60–62, 632–641, 76–79
   relaychain.rs92.74%100%92.65%92.75%341–350, 77–79
   utils.rs40%100%40%40%11–13, 15–17, 19–21
crates/configuration/src/shared
   errors.rs50%100%50%50%
   helpers.rs100%100%100%100%
   node.rs94.88%100%91.67%95.23%119, 136, 142, 388–406, 408
   resources.rs96.09%100%94.52%96.43%102, 114, 126–128, 147–150
   types.rs90.77%100%84.31%92.58%284–286, 355–357, 383–384, 386–388, 60–62
crates/file-server/src
   main.rs0%100%0%0%16, 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.rs24.16%100%29.41%23.57%100–102, 104, 106–111, 113–117, 120, 122–139, 143–170, 174–183, 186, 189–193, 195, 197–201, 204–222, 224–229, 231–251, 253, 255–257, 261–263, 266, 269–274, 276–279, 282–286, 289, 291–292, 295–299, 301, 303–317, 320–322, 324–329, 339–363, 368–369, 378, 389, 397–400, 402, 414, 421–423, 425–435, 437–438, 440–448, 450–457, 459, 46, 460–466, 468–469, 47, 470–479, 48, 482, 49–51, 53–58, 60–67, 69–72, 74, 77–83, 86, 88–90, 92–93, 95–99
   network.rs0%100%0%0%117–127, 129–130, 132–136, 139–145, 147–167, 169, 182–185, 212–225, 227, 229–239, 241–255, 257–258, 260–264, 267–270, 272–279, 281, 284–289, 291–292, 294–300, 306–309, 344–349, 351–355, 358, 360–365, 367–375, 378–379, 38, 380, 383–384, 386, 389, 39, 391–399, 40, 400–408, 41, 410–412, 415–419, 42, 421, 423–427, 43, 432–439, 44, 440–449, 45, 450–459, 46, 460–466, 469–472, 474–479, 481–482, 487–503, 505–513, 515–517, 519–521, 524–528, 530, 532–534, 536–538, 540–542, 544–546, 548–550, 552–554, 556–561, 563–569, 59–73, 76–78, 80–82, 85–87
   network_spec.rs47.01%100%38.46%48.08%100–116, 119–123, 125–128, 130–138, 140–146, 149–154, 156–165, 167–169, 171, 21, 48, 64–71, 73–75, 77–83, 86–97
   spawner.rs0%100%0%0%100, 102–107, 109–112, 115–124, 126, 129–131, 134–138, 140, 145–150, 152–161, 163–164, 166, 170–173, 175–180, 182–192, 194–197, 200–201, 204–211, 213–218, 22, 220, 222–229, 45–58, 60–61, 63, 65–68, 72–73, 75, 78–98
crates/orchestrator/src/generators
   bootnode_addr.rs97.17%100%100%96.81%
   chain_spec.rs25.99%100%23.46%26.22%110–126, 128–141, 143, 148–161, 164–175, 177–182, 184–186, 189–206, 209–215, 217, 219–224, 226, 229–239, 24, 240–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, 40, 401–404, 407, 409–410, 412–427, 429, 431–435, 437, 440, 443–444, 447–451, 454–478, 48, 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.rs82.35%100%60%86.21%13
   key.rs94.44%100%81.25%96.36%36
   keystore.rs0%100%0%0%20–32, 35–47, 49–56, 58–65, 67, 69–87
   para_artifact.rs17.53%100%18.18%17.44%100–104, 106, 109–115, 117, 120–130, 134–135, 14, 20, 27, 54–56, 58–71, 73–76, 80–81, 83, 85–95, 97, 99
   port.rs94.12%100%83.33%96.43%
crates/orchestrator/src/network
   node.rs0%100%0%0%100–104, 106–108, 111–112, 116–119, 122–125, 132–137, 14, 147–154, 158–166, 169–171, 173, 175–181, 183–185, 187–190, 192–196, 200–208, 213–229, 233–236, 238–247, 28–43, 45–47, 49–51, 55–58, 61–63, 66–70, 77–86, 89–90, 97–99
   parachain.rs64.06%100%76.47%63%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, 5
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.rs33.99%100%22.22%34.72%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.rs57.43%100%33.33%59.56%107, 112, 141, 146–149, 152, 164–167, 170, 209–222, 224–229, 23, 230–236, 238, 240–241, 79, 84–86, 98
   relaychain.rs90.41%100%75%92.31%101, 108, 17, 76
crates/orchestrator/src/shared
   macros.rs0%100%0%0%3
   types.rs32%100%21.05%38.71%15, 45–49, 52, 61, 72
crates/prom-metrics-parser/src
   lib.rs92.06%100%81.82%93.04%103, 125, 53–55, 7, 79
crates/provider/src
   lib.rs0%100%0%0%136–139, 186–188, 195–197, 24
crates/provider/src/kubernetes
   client.rs0%100%0%0%100, 102–133, 135, 137–138, 140–162, 164–168, 170–172, 174–186, 188–192, 194–198, 201–223, 225, 227–243, 245–249, 25, 250–260, 262–267, 270–274, 276, 278–279, 282–283, 285–301, 304–306, 308, 31, 313, 316, 319, 321–326, 328–334, 336–337, 339–362, 364–365, 369, 37, 370–379, 38, 380–389, 39, 390–399, 40, 400–405, 407–409, 41, 412–419, 42, 420–426, 428–439, 44, 440, 442–443, 445–458, 460–469, 47, 470–473, 477–478, 48, 488–489, 49, 490–499, 50, 500–506, 51–52, 55–63, 65–84, 86, 88–89, 91–97, 99
   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–334, 342–344, 346–348, 350–352, 354–356, 358–365, 370–371, 374–379, 381–386, 388–389, 391–395, 397–411, 413–419, 421–422, 424–429, 432–438, 441–445, 447–451, 453, 455–460, 462–467, 471–472, 474–476, 478–483, 485–487, 489–490, 57–66, 68–82, 84–85, 87–89, 91–98
   node.rs0%100%0%0%100–123, 125–127, 129, 131, 133–134, 136–153, 155–157, 160, 162–166, 168–169, 171–179, 182–207, 209–213, 215–216, 218–225, 227–228, 230–237, 242–263, 265–266, 268–269, 271–280, 282–283, 285–304, 306–307, 309–312, 315–317, 319–320, 322–336, 338–339, 341–346, 348–355, 357–360, 362–365, 367, 369–377, 379–380, 382–387, 389–392, 400–402, 404–406, 408–410, 412–414, 416–418, 420–422, 424–426, 428–430, 432–436, 438–443, 445–446, 448–451, 453–454, 460, 462–464, 466–470, 472–478, 483–484, 486–488, 490, 492–494, 496–510, 515–531, 538–539, 541–543, 545–556, 558–573, 575–585, 587–588, 594–596, 598–603, 605, 607–612, 614–617, 619, 621–635, 637–638, 640–654, 656–657, 659–662, 664–677, 679–680, 682–686, 688–690, 692–693, 77–84, 86–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–108, 110–113, 115–127, 129–135, 137–139, 141, 145–151, 154–158, 160–171, 173, 175–181, 183–188, 192–193, 195, 197–198, 200–202, 205–207, 209–210, 41–49, 51–60, 68–70, 72–74, 76–78, 80–87, 92–98
   node.rs0%100%0%0%100–120, 122–124, 126, 128, 130–131, 133–141, 143–144, 146–157, 159–160, 162–166, 169–173, 177–179, 181–182, 184–192, 194–204, 206–208, 210–211, 215–216, 218–241, 243–262, 264, 266, 268, 270–271, 273–280, 283, 285–286, 288–289, 291–293, 297–298, 300–307, 309–310, 312–340, 342–343, 345–350, 358–360, 362–364, 366–368, 370–372, 374–376, 378–380, 382–384, 386–388, 390–397, 399–401, 403–405, 410–423, 425–426, 428–431, 433, 438–443, 446–463, 466–472, 479–488, 490–495, 497–498, 504–513, 515–516, 518–519, 521–522, 524–525, 527–528, 530–531, 533–534, 536–539, 541–543, 545–548, 550, 552–553, 555–558, 560–562, 564–565, 67–82, 84–89, 91–98
   provider.rs0%100%0%0%33–50, 52–55, 63–65, 67–69, 71–78, 80–87, 89–95
crates/provider/src/shared
   helpers.rs91.86%100%92.86%91.67%10–12, 8–9
   types.rs5.19%100%6.82%4.90%100–107, 109–115, 117–119, 12, 120–127, 130, 139–150, 152–159, 161–171, 174, 184–194, 196–210, 212–218, 220–226, 228–231, 234, 242–251, 253–259, 26, 260, 262–272, 282–291, 293–300, 302–312, 336–342, 346–353, 53–68, 70–76, 78–81, 83–86, 88–95, 97–99
crates/sdk/src
   lib.rs0%100%0%0%33–37, 39–43
crates/support/src
   fs.rs75%100%66.67%80%
   net.rs0%100%0%0%10, 4–9
crates/support/src/fs
   in_memory.rs95.72%100%92.20%96.13%107, 248–253, 41–44, 46, 48–51, 53, 55–58, 60, 63, 9
   local.rs97.87%100%93.98%98.48%63, 8, 92–94