Skip to content

Conversation

@javihernandez
Copy link
Owner

No description provided.

soksanichenko and others added 30 commits September 30, 2022 14:02
ALBS-546: asio.src placed to mariadb module but should be in mariadb-devel
ALBS-648: Removed oval-cacher from albs-web-server
Fixed NoneType error, reduced amount calls to DB
  It generated wrong dictionary of repos-platform of a product
  (an arch was absent in name of a repo).
Fixed package exporter to use less 'chown' operations
Revert "ALBS-546: asio.src placed to mariadb module but should be in mariadb-devel"
Fixed incorrect additional source artifacts in modules metadata
Added separate dramatiq workers for builds and releases
* Small fixes for mock_enabled feature

* Fixed old error with srpm_hash if SRPM artifact is missing in task
…failed build items (AlmaLinux#333)

* Added ability to run builds in parallel mode

* Added parallel restart failed build items

* Code refactoring

* Deleted dev script

* Bug fix
Korulag and others added 18 commits February 27, 2023 13:00
Add secureboot macros to beta platform
Bumps [sentry-sdk[fastapi]](https://github.com/getsentry/sentry-python) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/getsentry/sentry-python/releases)
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md)
- [Commits](getsentry/sentry-python@1.15.0...1.16.0)

---
updated-dependencies:
- dependency-name: sentry-sdk[fastapi]
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…-sdk-fastapi--1.16.0

Bump sentry-sdk[fastapi] from 1.15.0 to 1.16.0
ALBS-1019: Fixed deduplication at get_available_sign_task()
* ALBS-997: Added ability to revert AlmaLinux releases

* Black syntax

* Added tests for releases, code refactoring

* Added pytest-cov module and github action
@github-actions
Copy link

github-actions bot commented Mar 6, 2023

Total coverage

Coverage report
FileStmtsMissCoverMissing
__init__.py00100% 
app.py481177%31, 43–45, 47–48, 50–51, 53–54, 56
build_planner.py31511663%70, 78–79, 82, 87, 92–93, 96–102, 175, 184, 186, 189, 191, 193–197, 199, 201, 211, 213, 215–217, 222, 227–232, 234, 236, 238–240, 242–244, 247–249, 251–257, 259–263, 265, 267, 269, 280, 282–286, 291–292, 296–297, 300–310, 321, 332–334, 336–340, 373–374, 379, 390, 393–395, 402–403, 419, 475, 484, 487, 500, 508–510, 518, 532, 553–554, 562
config.py460100% 
constants.py101496%71, 73, 135, 139
database.py180100% 
dependencies.py301356%36–39, 41, 46–48, 50, 54–56, 58
errors.py49295%90–91
models.py4784091%82–87, 95–96, 98–99, 103–106, 241, 478, 506, 513–515, 607, 873, 877, 1138–1140, 1143–1145, 1152, 1268–1269, 1273–1274, 1277–1279, 1311–1312, 1316
pulp_models.py181497%203, 376, 379, 383
release_planner.py75547037%60, 70, 82, 92, 100, 107, 111, 115, 118–120, 123, 130, 133, 138–139, 149, 198–201, 210–222, 226–239, 245–247, 254, 257–258, 261, 277, 335, 337, 354–355, 359, 375–377, 381–382, 386–391, 397–402, 404–405, 413–414, 416–418, 420–421, 425–426, 429–432, 438, 440–446, 458, 461, 468, 474–478, 482–483, 510, 514–515, 517, 519–522, 524–525, 527, 533, 535–536, 545–547, 549, 558, 560, 562, 571, 573–578, 583–587, 594, 596–598, 600–601, 604, 606, 615, 620, 623, 628–629, 633–638, 645, 651, 658, 665–666, 689, 697, 701–706, 720, 779, 782, 787–792, 809, 818, 821–823, 832–835, 842, 852–853, 856, 862–865, 869–874, 877, 881, 888–893, 899–910, 913–915, 918, 921–922, 932–941, 944–959, 976, 997, 1019, 1030, 1034, 1037, 1067–1069, 1071–1075, 1079, 1082–1088, 1100–1102, 1105, 1108–1109, 1116, 1119, 1122–1123, 1134, 1138, 1145–1147, 1151–1153, 1160–1162, 1186–1188, 1192, 1194–1195, 1202–1204, 1206–1207, 1209, 1214, 1221–1225, 1229–1232, 1239–1241, 1247–1248, 1252–1260, 1267–1268, 1271, 1278–1281, 1286–1287, 1293–1295, 1297, 1301–1306, 1313–1314, 1320–1330, 1333–1336, 1347–1348, 1357–1361, 1366–1367, 1373–1374, 1378–1385, 1387–1388, 1394–1395, 1397–1404, 1409–1412, 1419–1420, 1422, 1426, 1444, 1453–1455, 1457–1458, 1469, 1481, 1493, 1508–1511, 1526–1531, 1538–1540, 1543–1544, 1548–1555, 1558–1559, 1561–1563, 1570–1571, 1575–1576, 1583, 1586, 1602, 1625, 1652–1657, 1660, 1664–1666, 1684
test_scheduler.py574128%20–23, 26–30, 46–48, 52–53, 57–64, 69–70, 83–86, 89–91, 93–95, 98–99, 101–104, 106
alembic
   __init__.py00100% 
   env.py23230%1, 3–4, 6–7, 10, 14, 18, 24, 32, 44–45, 52–53, 56, 63, 69–70, 74–75, 78–79, 81
auth
   __init__.py70100% 
   backend.py70100% 
   dependencies.py17288%31, 37
   schemas.py150100% 
   transport.py43881%39, 42, 46, 66, 71–74
   user_manager.py291451%33, 38–40, 44–53
auth/oauth
   __init__.py00100% 
   github.py221150%34–35, 41–44, 46, 52, 54–55, 57
crud
   __init__.py00100% 
   actions.py16193%22
   build.py1388439%40, 47, 50, 61, 64–66, 153–154, 165–166, 169, 171, 175, 184, 188, 192, 200–202, 209, 213, 217, 223, 225, 231–232, 241–242, 250, 256, 267, 277–290, 294, 298–313, 318, 321, 323, 327, 329, 331, 335, 339, 343, 347, 351, 355, 358, 364, 368, 379–384
   build_node.py44421352%37, 39–41, 69–75, 80, 84, 93–101, 103–108, 110, 114–119, 121–127, 129–131, 133, 138–146, 149–152, 155–156, 159, 162–164, 168–169, 171–173, 177–179, 181–189, 193, 196, 200, 205–211, 214, 216–219, 227–230, 236, 247, 251, 256, 264, 268, 308, 322–323, 327, 336–337, 340, 389, 400–401, 404–405, 408–411, 413–421, 429–430, 436–438, 445, 454, 457–458, 460, 493, 495, 501–502, 504–508, 523–525, 532–533, 566, 568–573, 576–577, 580–582, 587, 589–592, 599, 602, 607–610, 615–619, 659, 663, 666, 668, 672–673, 712, 719–720, 728–730, 735–736, 743, 768–771, 775–778, 798, 866, 870–871, 890, 904
   errata.py55543421%74–80, 93–94, 97–105, 110–113, 117, 120–121, 140, 144–145, 151, 153, 157–165, 170–194, 197–205, 208, 214–215, 219–229, 231–232, 296–304, 308, 311–340, 343–348, 351–370, 394, 401–407, 414–424, 431–434, 436–441, 443–446, 465, 474–478, 500–503, 510, 514–515, 524–528, 619, 660, 669, 675, 688–690, 694, 706–714, 720–728, 730, 741–743, 753–760, 764–768, 780–781, 785, 787–803, 817–822, 831–836, 846, 850–851, 886–888, 900–902, 919–920, 933–937, 950, 953, 963–969, 978–982, 986–988, 996–998, 1012, 1021–1024, 1028–1034, 1038–1043, 1047–1049, 1051–1059, 1064–1065, 1075–1082, 1088–1090, 1098–1099, 1104, 1115–1120, 1124, 1138, 1142, 1147–1148, 1156–1157, 1159, 1162–1165, 1167–1169, 1174–1181, 1183, 1189–1192, 1196, 1201–1204, 1212, 1214, 1216, 1219–1221, 1225, 1227, 1231–1234, 1239–1245, 1247, 1254–1264, 1267
   platform.py604328%16–18, 24–26, 29, 34–47, 49, 51, 56, 59–60, 62, 68–73, 76–78, 104–105, 112–114, 118, 121
   platform_flavors.py453522%12, 17–18, 28–35, 40, 44–51, 61–68, 72, 75–78, 82, 87
   products.py1144263%54, 58, 63, 151, 153, 158, 162, 175, 184–187, 190–192, 194–195, 199–202, 205–207, 218–224, 229, 242, 244–246, 248–251, 254, 256
   release.py571475%45, 53, 57, 61, 65, 71, 90, 100–101, 110, 119–121, 150
   repo_exporter.py685125%17, 19–21, 23–24, 28–32, 34, 36, 42–44, 46–47, 52, 54–55, 66–67, 71–75, 77, 79–82, 86, 90–91, 95, 97–98, 102, 104–105, 109, 111–112, 118, 120, 122, 126, 128, 130
   repository.py13211115%16–20, 25, 30–33, 42, 50–56, 58–62, 64–66, 68–69, 71–72, 74, 80, 86–93, 99–111, 118–119, 123–129, 133–134, 136, 141, 144–147, 149, 151, 153–156, 158, 162, 169, 173, 175, 179, 185, 190, 195–202, 205, 207, 213–216, 223–230, 236–238, 240, 245
   roles.py312229%18, 22–23, 26, 28–35, 37, 39–42, 44, 46–48, 50
   sign_key.py281932%12–13, 18, 20–21, 23–27, 33–41
   sign_task.py23620811%32–33, 37–38, 43–44, 50–55, 61–62, 67, 78–80, 82–83, 85–86, 88, 94, 96–97, 100–101, 103–104, 107, 112–115, 118, 122, 132–134, 136, 140, 144–147, 153–156, 158, 160–163, 175–178, 189–191, 195, 198, 206, 208, 212–215, 217, 219–220, 222–223, 227, 229–230, 232–237, 239–243, 246, 248, 250–253, 255–256, 259–260, 263–264, 267, 269–270, 272–276, 278, 283–284, 287, 289–293, 295, 298, 300–301, 305–309, 312, 314–318, 320, 324, 326–333, 335–340, 342, 344, 348–353, 355–359, 361–363, 365–367, 369, 374–376, 378–381, 383–384, 386–388, 390–394, 399, 406–408, 410–411, 413–414, 416, 419–421, 423–424, 426–428, 431–434, 437
   teams.py1124559%58, 61–63, 88, 98, 115, 137, 139, 143, 151–154, 164–165, 172–174, 182, 186–190, 194–206, 210–214, 217–218
   test.py14711720%23, 26, 33, 37, 39–40, 43–44, 50, 55–56, 61, 63, 68–71, 73, 75–79, 83–85, 94–98, 105–106, 109–110, 114, 116–117, 119–120, 124–125, 130, 132–133, 135, 139–140, 145, 150–153, 159–163, 165–170, 172, 174–175, 178–183, 185–195, 197, 200–203, 209, 213–214, 216–220, 248, 254–255, 257–263, 265–266, 269, 273–277, 284–285
   user.py1188825%28, 30, 36, 38, 42, 47, 52, 57, 79–80, 85, 89, 95, 98, 106, 115–116, 120–121, 123, 128, 130, 135, 137, 143, 145, 150, 152, 157, 160, 167, 169, 174, 178–182, 184–186, 189–193, 196–197, 199–200, 205–206, 212–219, 223–224, 231–232, 234, 239–240, 244–245, 252–254, 261–262, 264–265, 267, 270–271, 277–278, 280–281, 283, 290–291, 298–299
dramatiq
   __init__.py140100% 
   build.py812766%73–75, 83–84, 89, 91–96, 101, 105–106, 109, 116–117, 123, 134, 138–140, 150–151, 163–164
   errata.py12283%19, 29
   products.py1149021%27–28, 41–50, 52–56, 58, 61, 63–69, 71, 74, 76, 78, 88, 90–94, 97–99, 101–102, 104–108, 111–113, 115, 122, 128, 134–137, 144, 150, 156–161, 169, 172–173, 186, 201, 203–204, 206, 208–212, 214, 219–221, 223–224, 226–227, 231–234, 242
   releases.py19668%14–15, 19–20, 30, 40
   sign_task.py12283%16, 24
   tests.py251156%19–25, 28–29, 32, 42
   user.py20860%16–17, 19, 25–26, 28–29, 35
middlewares
   __init__.py110100% 
   not_found.py7185%11
   permissions.py7185%11
   products.py7185%11
   sign_task.py7185%11
   uploads.py7185%11
perms
   __init__.py00100% 
   actions.py330100% 
   authorization.py372921%10, 16, 19–25, 27–28, 30–31, 33–35, 37–38, 40, 42–43, 45–48, 50–52, 54
   roles.py130100% 
routers
   __init__.py10100% 
   build_node.py745328%30, 39–42, 47–50, 58–60, 62–65, 67, 72, 88–103, 106–107, 110–112, 116–118, 120–121, 123–129, 138–139
   builds.py472253%42–45, 70, 95, 98–100, 103, 108–110, 114, 120, 129, 134–137, 141–142
   coprs.py341847%27, 33–34, 42, 48–49, 63–65, 74–76, 80–84, 86
   docs.py413026%20–21, 23–38, 42–44, 49–51, 57–59, 65–67
   errata.py502060%30, 38, 49, 62, 78, 85–86, 100–103, 114–120, 125–126
   exporters.py26260%1, 3, 5–7, 10, 17–20, 23–26, 29, 31–33, 36, 38, 41, 43, 46, 48–49, 51
   platform_flavors.py17382%23, 31, 38
   platforms.py24483%37, 42, 50, 59
   products.py421954%31, 42–44, 52–54, 58, 69–70, 72, 75–76, 89–90, 92, 95–96, 108
   projects.py18666%26–28, 38–40
   releases.py38976%61, 71–72, 93–94, 107–108, 115–116
   repositories.py21671%22, 29–32, 38
   roles.py11190%21
   sign_key.py17382%21, 27, 33
   sign_task.py563046%36, 43, 51–52, 54–55, 64–68, 82–83, 89–91, 93, 97–98, 100, 108–110, 112, 116–121
   teams.py432151%36, 44, 53–56, 60, 69–72, 76, 84–87, 91, 99–102
   tests.py30970%27–28, 34–35, 41–42, 49, 56, 63
   uploads.py15193%27
   users.py472351%30, 41–45, 55–57, 60–61, 75, 86–88, 91–92, 106–108, 111–112, 126
schemas
   __init__.py00100% 
   action_schema.py770%1, 3, 6, 9–12
   artifact_schema.py550%1, 4, 6–8
   build_node_schema.py902077%46–53, 55–60, 62–67
   build_schema.py31912859%47–49, 52–54, 59, 63, 66–67, 71, 259, 307–317, 325–338, 340–346, 359–370, 373–379, 383, 386–388, 390–395, 397–404, 406, 425, 430, 434–436, 439, 444–445, 450–451, 457–461, 463–472, 476–477, 481, 484–485, 489, 491, 493–500, 510–515
   distro_schema.py27270%1, 3, 6, 9, 11–16, 19, 21–28, 31, 33–34, 37, 39–40, 42–43
   errata_schema.py110199%62
   exporter_schema.py990%1, 3, 6, 8–13
   platform_flavors_schema.py210100% 
   platform_schema.py450100% 
   product_schema.py380100% 
   project_schema.py70100% 
   release_schema.py410100% 
   remote_schema.py180100% 
   repository_schema.py400100% 
   role_schema.py70100% 
   sign_schema.py780100% 
   team_schema.py290100% 
   test_schema.py230100% 
   user_schema.py240100% 
scripts
   __init__.py00100% 
scripts/albs-gitea-listener
   __init__.py00100% 
   gitea_listener.py89890%6, 10–19, 21–23, 25, 28–30, 33–35, 38, 53, 55, 72–73, 75, 77, 79, 81–83, 86, 107–109, 120, 122–123, 126–127, 130, 141, 157–160, 163–167, 169–177, 179–183, 185, 189–192, 194–195, 197–198, 200, 204, 207, 213, 215–217, 220–224, 227–228
   gitea_models.py66660%5, 9–11, 14, 18, 22–34, 37, 41–43, 46, 50–55, 58, 62–79, 82, 86–91, 94, 98–106
scripts/git_cacher
   __init__.py00100% 
   git_cacher.py704831%30–33, 37, 41–45, 47–49, 53, 56–65, 71–77, 80–83, 86–88, 96–98, 103–105, 107–108, 112, 116
utils
   __init__.py00100% 
   alts_client.py322328%16–18, 29–30, 32–33, 42–47, 49–51, 53–57, 60–61
   asyncio_utils.py770%1, 4–5, 7–10
   beholder_client.py825928%19, 31, 36–37, 44, 52–55, 57–60, 72–73, 79–83, 90–92, 95, 100–103, 106–110, 112–114, 116–120, 122–125, 129–133, 135, 137–139, 142, 144, 147–149
   copr.py321746%23–24, 34, 40–45, 51–53, 63–64, 69–71
   debuginfo.py7185%16
   errata.py15311326%25, 29–30, 70, 76–81, 87–93, 97–103, 111, 116, 120, 124, 128–129, 134, 138–141, 145–147, 152–153, 160–161, 173–175, 181, 203, 213, 225–228, 235–237, 249–252, 257, 264–281, 285–311, 318–320, 324–328
   exporter.py352334%16, 18, 20–28, 32–37, 39, 43–47
   file_utils.py382923%24–27, 48–51, 55–59, 77, 100–101, 103–112, 114–116
   gitea.py684730%14–20, 22, 27–37, 48–54, 57–58, 60, 62, 66–71, 74–75, 78–79, 82–83, 86–87, 90–92
   github.py332815%9–10, 15–17, 21–22, 26–33, 37, 41–46, 50–55
   ids.py50100% 
   jwt_utils.py11463%26, 28–30
   modularity.py30511960%34–40, 52, 55–56, 59, 62, 85, 92–95, 99, 114–115, 119–122, 137–144, 154, 156, 165–168, 170, 179–182, 184, 206–208, 247–248, 250–252, 254–256, 258–261, 263–265, 267, 270, 273–276, 282, 286, 289–290, 295, 298–301, 303–305, 308–315, 319–343, 347, 403, 412, 416, 425, 437
   multilib.py16913023%28, 33, 38–40, 46–50, 54–55, 58, 62–67, 70, 73–74, 76, 81–87, 92–93, 99, 103–107, 111, 119, 124–125, 127, 129–130, 132–135, 138, 140, 143–144, 146–150, 154, 157–158, 160–166, 173–176, 178–184, 187–189, 191–194, 196–198, 202–204, 208–209, 216–217, 219–222, 226, 230, 238, 245, 254–255, 257, 260–261, 265–266, 268–272, 274–280, 282–283, 285–287, 289–290
   noarch.py845139%36–37, 39–40, 73–76, 78–79, 81–85, 89–99, 101–104, 111–116, 118–119, 121–128, 133–134, 136, 143–144
   parsing.py734439%24, 35–36, 39, 54, 80–89, 91–94, 96–98, 100–114, 116–118, 120–121, 138–139
   pulp_client.py50540519%43–48, 51, 60–61, 66–70, 73, 76, 81–82, 85–88, 91, 96–100, 103–108, 111–116, 122–126, 129–134, 137–142, 150–152, 158–165, 171–172, 175–180, 187–192, 195–198, 203–205, 221–223, 226–231, 237–240, 245–248, 251–258, 260–264, 267–270, 272, 275–276, 279, 282–284, 286–290, 293–294, 300–304, 306–307, 309, 312–313, 316–319, 321, 323, 326–339, 346, 351, 358, 363, 373–374, 378–379, 384–392, 397–399, 402–405, 409–412, 420–421, 425–429, 432, 437–438, 441, 444–446, 450–453, 455–456, 461–462, 470–471, 477–479, 484–485, 490–493, 496–497, 500–501, 506–507, 512–515, 525–531, 533, 541, 552–556, 562–569, 575–576, 585–588, 598, 603–607, 615–618, 623, 625–626, 638–644, 647–652, 657, 659–663, 667, 673–675, 684–687, 690–692, 695–698, 700, 703, 708–712, 718–719, 728–733, 736–743, 751–762, 765, 768–769, 771–773, 776–791, 796–800, 803–804, 808–810, 813–816, 829–830, 832–836, 844–846, 848, 857–859, 861–867
   pulp_utils.py291934%26, 31, 39, 48, 51–56, 58–60, 67–69, 78–80
   rpm_package.py7271%16, 21
   uploader.py1082675%35, 46, 51–52, 61, 73, 139–142, 175–176, 183–188, 199, 211–217
TOTAL8566431749% 

Tests Skipped Failures Errors Time
16 2 💤 0 ❌ 0 🔥 43.272s ⏱️

javihernandez pushed a commit that referenced this pull request Nov 24, 2023
javihernandez pushed a commit that referenced this pull request Nov 24, 2023
* Added initial RBAC implementation

This commit brings initial implementation of the RBAC in the build
system. This will allow to manage permissions over different objects
using user groups.

* Moved products, roles and teams to secure access

* Fixed build creation

* Fixed release feed

* Fixed release creation

* Fixed release schema

* Fixed release planner #2

* Added team reference to build

* Fixed review comments

Co-authored-by: Vasily Kleschov <[email protected]>
javihernandez pushed a commit that referenced this pull request Nov 24, 2023
javihernandez pushed a commit that referenced this pull request Feb 19, 2024
javihernandez pushed a commit that referenced this pull request Feb 19, 2024
javihernandez added a commit that referenced this pull request Feb 23, 2024
…new-modularity

* upstream/master:
  Rebased to latest migration in master
  Fixed black warnings #2
  Fixed black warnings
  Fixed tests #2
  Fixed tests
  Fixed relationships problems
  Add ability to create same errata record for several platforms
javihernandez added a commit that referenced this pull request Feb 28, 2024
* upstream/master: (62 commits)
  Revert "New modularity support after migration to new pulp"
  Fix 401 when click to the Advisory info
  Black syntax
  Ensure that OVAL data contains released records only
  Black syntax
  Rebased to latest migration in master
  Black/isort syntax
  Fix tests after new modularity workflow
  Update migration checks workflow to try merging if rebasing fails
  Update migration check workflow
  Adjust alembic migration after updating branch with current master
  Rebased to latest migration in master
  Fixed black warnings #2
  Fixed black warnings
  Fixed tests #2
  Fixed tests
  Fixed relationships problems
  Add ability to create same errata record for several platforms
  Update dependencies to mitigate security risks
  Black syntax
  ...
javihernandez pushed a commit that referenced this pull request Jun 6, 2024
javihernandez pushed a commit that referenced this pull request Jun 6, 2024
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.