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/file server #150

Merged
merged 5 commits into from
Jan 19, 2024
Merged

Feat/file server #150

merged 5 commits into from
Jan 19, 2024

Conversation

l0r1s
Copy link
Contributor

@l0r1s l0r1s commented Jan 18, 2024

  • Added basic axum fileserver to upload/download files temporary to prevent error due to failure with exec + tar using kube.rs
  • Added build and push to repository of image to be used in k8s

@l0r1s l0r1s requested a review from pepoviola January 18, 2024 22:44
Copy link

Coverage after merging feat/file-server into main

76.05%

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.rs99.22%100%97.78%99.36%117, 122, 130, 175, 80, 88
   parachain.rs97.66%100%95.37%97.92%50–52, 587–596, 66–69
   relaychain.rs96.60%100%92.65%97.09%338–347, 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.rs98.32%100%92.68%98.93%129, 135
   resources.rs96.09%100%94.52%96.43%102, 114, 126–128, 147–150
   types.rs90.51%100%84.31%92.31%284–286, 355–357, 383–384, 386–388, 60–62
crates/file-server/src
   main.rs0%100%0%0%16, 22–41, 43–47, 50–57, 59–60, 62–64, 66–69, 71–72, 74, 76–80, 82–87
crates/orchestrator/src
   errors.rs0%100%0%0%8
   lib.rs0%100%0%0%100–103, 106, 108–123, 127–150, 154–163, 166, 169–173, 175, 177–181, 184–202, 204–209, 211–232, 236–238, 241, 244–249, 251–254, 257–261, 264, 266–267, 270–274, 276, 278–285, 287–292, 299, 302–326, 331–332, 342, 349–351, 353–362, 364–365, 367–375, 377–384, 386–393, 395–406, 409, 44–49, 51–56, 58–64, 66–69, 71, 74, 76–77, 83–90, 93–98
   network.rs0%100%0%0%112–122, 124–125, 127–131, 134–140, 142–162, 164, 177–182, 209–222, 224, 226–236, 238–252, 254–255, 257–261, 264–267, 269–276, 278, 281–286, 288–289, 291–297, 303–306, 337–341, 343–347, 350, 352–357, 359–367, 370–373, 375–379, 38, 380–389, 39, 390–392, 394–396, 399, 40, 400–403, 405, 407–409, 41, 410–411, 416–419, 42, 420–429, 43, 430–439, 44, 440–447, 45, 450–453, 455–459, 46, 460, 462–463, 468–484, 486–488, 491–495, 497, 499–501, 503–505, 507–509, 511–513, 515–517, 519–521, 59–73, 77–79
   network_spec.rs93.67%100%83.33%95.52%11, 38
   spawner.rs0%100%0%0%100–108, 110, 113–115, 118–122, 124, 129–134, 136–152, 154–159, 161–177, 19, 42–55, 57–58, 60, 62–65, 69–70, 72, 75–95, 97–99
crates/orchestrator/src/generators
   bootnode_addr.rs97.17%100%100%96.81%
   chain_spec.rs26.65%100%23.38%26.96%100–116, 118–133, 135, 140–153, 156–162, 164–166, 169–197, 199–202, 204–206, 208–217, 219–229, 23, 230–231, 233, 236–241, 243–244, 246–259, 261, 264–269, 271–272, 275–288, 290–295, 297–299, 301–303, 306–311, 313–331, 334–343, 346–349, 352, 354–355, 357–372, 374, 376–380, 382, 385, 388–389, 39, 392–397, 400–424, 428–430, 433–441, 451–459, 461–469, 47, 470–473, 475–483, 486–488, 492–495, 497–498, 501–508, 510–512, 515–517, 519, 524–535, 539–552, 554, 557–558, 561–567, 569–574, 576–581, 583, 585, 587–596, 598–601, 604–605, 608–610, 612, 614–615, 617–621, 623–626, 628, 630–631, 633–634, 636–638, 640–642, 644–646, 649–651, 654–658, 660, 662, 681, 705, 709–715, 717–727, 729–730, 732–752, 754, 76, 767, 77, 771–779, 78, 780–791, 793, 80, 802–809, 81, 810–812, 814, 816–819, 82, 820–833, 836–838, 840, 843, 845, 89–92
   command.rs0%100%0%0%100–112, 114–120, 122, 125–130, 132–133, 136–148, 15, 150, 153–155, 157–158, 16, 161–169, 17, 170–179, 18, 180–189, 19, 190–197, 199, 20, 201, 203–209, 21, 210–219, 22, 220–224, 226–229, 23, 231–233, 235–239, 24, 240–243, 246–250, 252–256, 258, 261–269, 271, 274–290, 293–298, 300, 303–305, 307–308, 311–333, 335, 337, 44–62, 64–66, 68–76, 79–97
   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%19–31, 34–46, 48–55, 57–64, 66, 68–86
   para_artifact.rs15.94%100%10%16.95%12, 18, 25, 44–46, 48–64, 66–69, 72–81, 83–88, 92–93
   port.rs93.33%100%83.33%95.83%
crates/orchestrator/src/network
   node.rs0%100%0%0%100–107, 109–110, 113–114, 118–121, 124–127, 13, 134–139, 149–158, 161–163, 165, 167–173, 175–177, 179–182, 184–188, 192–200, 205–221, 226–228, 27–42, 44–46, 48–50, 54–57, 60–62, 65–69, 76–84, 86–87, 90–91, 98–99
   parachain.rs61.99%100%76.47%60.39%100–104, 107–114, 116, 118, 121–126, 129–130, 132–137, 141–144, 146–149, 207, 66, 69–74, 76–83, 93–97
   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.rs36.30%100%25%37.01%119–120, 122–125, 137, 175–179, 181–182, 184, 187, 189–192, 194–197, 202–207, 209, 212, 214–244, 246, 25–36
   parachain.rs55.74%100%33.33%56.90%100, 105, 130, 135–138, 141, 152–155, 158, 196–207, 209–212, 214–219, 22, 220, 222, 224–225, 76–78, 81, 83–85, 91
   relaychain.rs88.71%100%66.67%91.07%100, 17, 70, 93
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.rs91.94%100%80%92.98%103, 125, 53–55, 7, 79
crates/provider/src
   lib.rs50%100%50%50%
crates/provider/src/native
   helpers.rs89.36%100%100%88.51%30–31, 36–38, 59, 90, 94, 98
   namespace.rs88.65%100%85%88.96%109–113, 184, 194–199, 206, 213, 219, 221, 228, 230–231, 245, 310, 317, 322, 327, 332, 339, 352, 422, 430, 456, 461, 465, 485, 489, 524, 531, 547, 585, 589, 74
   node.rs92.28%100%91.45%92.38%1034, 1060, 1130, 116, 1172, 1207, 1218, 1243, 1247–1249, 1252, 1284, 156, 165, 189, 201, 209, 221, 235, 255, 260, 273, 322, 333, 367, 378, 392, 398, 435, 446, 478, 486, 513, 521, 560, 57, 575, 58, 580, 59, 590, 61, 615, 62, 627, 63, 656, 666, 682, 689, 715, 739, 777, 781–783, 786, 812, 848, 85–87, 872, 89–91, 93, 931, 94–95, 970
   provider.rs97.60%100%96.30%97.86%15, 179, 85
crates/provider/src/shared
   types.rs84.75%100%75.68%86.56%124, 141–147, 15–18, 21, 250–257, 80
crates/sdk/src
   lib.rs0%100%0%0%29–33
crates/support/src
   fs.rs75%100%66.67%80%
   net.rs0%100%0%0%10, 4–9
   process.rs100%100%100%100%
crates/support/src/fs
   in_memory.rs95.55%100%96.45%95.37%108, 252, 276, 327, 379, 387, 395, 403, 41–42, 425, 43, 433, 44, 46, 48–51, 53, 548, 570, 58, 598, 615, 633, 640, 659, 686, 703
   local.rs96.23%100%93.98%96.77%63, 8, 89–94
crates/support/src/process
   fake.rs82.69%100%84.62%82.31%126–131, 147, 205, 22, 229–230, 232–249, 302, 319–323, 333, 360, 39–40, 47, 63, 82, 91
   os.rs0%100%0%0%100–102, 16–18, 20–23, 25–27, 29–32, 34–36, 38–40, 43, 47–52, 54–56, 58–60, 62–64, 66–68, 70–71, 76–82, 84–89, 9, 91–95, 97–99
crates/test-runner/src
   lib.rs100%100%100%100%

@l0r1s l0r1s requested a review from wirednkod January 19, 2024 13:15
@l0r1s l0r1s merged commit 5a59e23 into main Jan 19, 2024
5 checks passed
@l0r1s l0r1s deleted the feat/file-server branch January 19, 2024 13:16
@l0r1s
Copy link
Contributor Author

l0r1s commented Jan 19, 2024

I merge it to use it but still available for review @wirednkod @pepoviola

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.

1 participant