Commit 609c67d
Derive overlay minimum disk space from feature flags
Overlay analysis required 20 GB of available disk space, lowered to
14 GB when overlay_analysis_resource_checks_v2 was enabled. That gave
us a single step to roll out, and any further reduction needed another
flag and another release.
Determine the threshold from the new overlay_analysis_min_disk_N_gb
flags instead, taking the lowest one that is enabled so that a lower
limit can be rolled out to a subset of repositories without first
disabling the flag above it. When none are enabled, the 14 GB limit
now applies unconditionally, replacing the 20 GB default.
Thresholds remain in decimal MB, matching the bytes-per-MB convention
the disk check already used, so the effective byte values are unchanged
from the previous 14 GB path. Also log the available and required space
at debug level when the check passes, so that run logs show which
threshold took effect.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 7526bed commit 609c67d
3 files changed
Lines changed: 128 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
| 1298 | + | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
1304 | | - | |
1305 | 1304 | | |
1306 | 1305 | | |
1307 | 1306 | | |
1308 | | - | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1309 | 1328 | | |
1310 | 1329 | | |
1311 | 1330 | | |
| |||
1315 | 1334 | | |
1316 | 1335 | | |
1317 | 1336 | | |
1318 | | - | |
| 1337 | + | |
1319 | 1338 | | |
1320 | 1339 | | |
1321 | 1340 | | |
1322 | 1341 | | |
1323 | 1342 | | |
1324 | | - | |
| 1343 | + | |
1325 | 1344 | | |
1326 | 1345 | | |
1327 | 1346 | | |
1328 | | - | |
| 1347 | + | |
1329 | 1348 | | |
1330 | 1349 | | |
1331 | 1350 | | |
| |||
1336 | 1355 | | |
1337 | 1356 | | |
1338 | 1357 | | |
1339 | | - | |
| 1358 | + | |
1340 | 1359 | | |
1341 | 1360 | | |
1342 | 1361 | | |
1343 | 1362 | | |
1344 | 1363 | | |
| 1364 | + | |
| 1365 | + | |
1345 | 1366 | | |
1346 | 1367 | | |
1347 | 1368 | | |
1348 | | - | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
1349 | 1392 | | |
1350 | 1393 | | |
1351 | 1394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| |||
588 | 597 | | |
589 | 598 | | |
590 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
591 | 617 | | |
592 | 618 | | |
593 | 619 | | |
594 | 620 | | |
595 | | - | |
| 621 | + | |
596 | 622 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
| 623 | + | |
| 624 | + | |
603 | 625 | | |
604 | 626 | | |
605 | 627 | | |
606 | 628 | | |
607 | 629 | | |
608 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
609 | 636 | | |
610 | 637 | | |
611 | 638 | | |
| |||
648 | 675 | | |
649 | 676 | | |
650 | 677 | | |
| 678 | + | |
651 | 679 | | |
652 | 680 | | |
653 | 681 | | |
654 | | - | |
655 | 682 | | |
656 | | - | |
| 683 | + | |
| 684 | + | |
657 | 685 | | |
658 | 686 | | |
659 | 687 | | |
| |||
752 | 780 | | |
753 | 781 | | |
754 | 782 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | 783 | | |
759 | 784 | | |
760 | 785 | | |
| |||
770 | 795 | | |
771 | 796 | | |
772 | 797 | | |
| 798 | + | |
773 | 799 | | |
774 | 800 | | |
775 | 801 | | |
776 | | - | |
777 | 802 | | |
778 | 803 | | |
779 | 804 | | |
| |||
0 commit comments