@biffo/cli 0.382.0 → 0.384.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_skeletons/plugin-template/.githooks/pre-push +19 -3
- package/_skeletons/sibling-template/.githooks/pre-push +19 -3
- package/_skeletons/sibling-template/apps/frontend/package.json +4 -2
- package/_skeletons/sibling-template/apps/frontend/pnpm-lock.yaml +127 -125
- package/package.json +1 -1
- package/scripts/pgtest-diff-check.sh +8 -1
- package/scripts/verify.sh +106 -2
|
@@ -154,10 +154,26 @@ fi
|
|
|
154
154
|
# deliberate escape hatch AGENTS.md section 7 requires for loosening a gate --
|
|
155
155
|
# in the open, not by reaching for `--no-verify` and skipping every other check
|
|
156
156
|
# too.
|
|
157
|
+
#
|
|
158
|
+
# Pre-push ONLY, the lane is also SCOPED to the diff (see verify.sh): the full
|
|
159
|
+
# suite outgrew the fleet's 900s push timeout, and CI still runs all of it as
|
|
160
|
+
# the required check. `BIFFO_PGTEST_PREPUSH=1` marks this as a pre-push run
|
|
161
|
+
# (smaller budget); `BIFFO_PGTEST_CHANGED_FILES` names the changed paths;
|
|
162
|
+
# `BIFFO_PGTEST_SCOPE=none` means the diff is provably irrelevant, so the lane
|
|
163
|
+
# is not run. A hand-run `biffo verify` sets none of these and runs everything.
|
|
157
164
|
if [ -z "${BIFFO_SKIP_PGTEST:-}" ] && [ -n "$REFS_FILE" ]; then
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
165
|
+
PGTEST_LIST_FILE=$(mktemp) || PGTEST_LIST_FILE=""
|
|
166
|
+
trap 'rm -f "$REFS_FILE" "$PGTEST_LIST_FILE"' EXIT HUP INT TERM
|
|
167
|
+
export BIFFO_PGTEST_PREPUSH=1
|
|
168
|
+
BIFFO_PGTEST_DIFF_LIST_FILE="$PGTEST_LIST_FILE" sh scripts/biffo.sh pgtest-diff-check <"$REFS_FILE"
|
|
169
|
+
pgtest_status=$?
|
|
170
|
+
case "$pgtest_status" in
|
|
171
|
+
0)
|
|
172
|
+
export BIFFO_PGTEST_DIFF_RELEVANT=1
|
|
173
|
+
[ -n "$PGTEST_LIST_FILE" ] && export BIFFO_PGTEST_CHANGED_FILES="$PGTEST_LIST_FILE"
|
|
174
|
+
;;
|
|
175
|
+
1) export BIFFO_PGTEST_SCOPE=none ;;
|
|
176
|
+
esac
|
|
161
177
|
fi
|
|
162
178
|
|
|
163
179
|
# Through the version-pinned CLI since #1109, so a repo cannot run a gate two
|
|
@@ -154,10 +154,26 @@ fi
|
|
|
154
154
|
# deliberate escape hatch AGENTS.md section 7 requires for loosening a gate --
|
|
155
155
|
# in the open, not by reaching for `--no-verify` and skipping every other check
|
|
156
156
|
# too.
|
|
157
|
+
#
|
|
158
|
+
# Pre-push ONLY, the lane is also SCOPED to the diff (see verify.sh): the full
|
|
159
|
+
# suite outgrew the fleet's 900s push timeout, and CI still runs all of it as
|
|
160
|
+
# the required check. `BIFFO_PGTEST_PREPUSH=1` marks this as a pre-push run
|
|
161
|
+
# (smaller budget); `BIFFO_PGTEST_CHANGED_FILES` names the changed paths;
|
|
162
|
+
# `BIFFO_PGTEST_SCOPE=none` means the diff is provably irrelevant, so the lane
|
|
163
|
+
# is not run. A hand-run `biffo verify` sets none of these and runs everything.
|
|
157
164
|
if [ -z "${BIFFO_SKIP_PGTEST:-}" ] && [ -n "$REFS_FILE" ]; then
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
165
|
+
PGTEST_LIST_FILE=$(mktemp) || PGTEST_LIST_FILE=""
|
|
166
|
+
trap 'rm -f "$REFS_FILE" "$PGTEST_LIST_FILE"' EXIT HUP INT TERM
|
|
167
|
+
export BIFFO_PGTEST_PREPUSH=1
|
|
168
|
+
BIFFO_PGTEST_DIFF_LIST_FILE="$PGTEST_LIST_FILE" sh scripts/biffo.sh pgtest-diff-check <"$REFS_FILE"
|
|
169
|
+
pgtest_status=$?
|
|
170
|
+
case "$pgtest_status" in
|
|
171
|
+
0)
|
|
172
|
+
export BIFFO_PGTEST_DIFF_RELEVANT=1
|
|
173
|
+
[ -n "$PGTEST_LIST_FILE" ] && export BIFFO_PGTEST_CHANGED_FILES="$PGTEST_LIST_FILE"
|
|
174
|
+
;;
|
|
175
|
+
1) export BIFFO_PGTEST_SCOPE=none ;;
|
|
176
|
+
esac
|
|
161
177
|
fi
|
|
162
178
|
|
|
163
179
|
# Through the version-pinned CLI since #1109, so a repo cannot run a gate two
|
|
@@ -43,13 +43,15 @@
|
|
|
43
43
|
"pnpm": {
|
|
44
44
|
"overrides": {
|
|
45
45
|
"postcss@<8.5.18": ">=8.5.18",
|
|
46
|
-
"sharp@<0.35.
|
|
46
|
+
"sharp@<0.35.5": ">=0.35.5",
|
|
47
47
|
"brace-expansion@<5.0.12": ">=5.0.12",
|
|
48
48
|
"undici@<7.29.0": ">=7.29.0",
|
|
49
49
|
"undici@<8.10.2": ">=8.10.2",
|
|
50
50
|
"js-yaml@<4.3.2": ">=4.3.2 <5",
|
|
51
51
|
"nanoid@<3.3.17": ">=3.3.17 <4",
|
|
52
|
-
"browserslist@<4.28.7": ">=4.28.7"
|
|
52
|
+
"browserslist@<4.28.7": ">=4.28.7",
|
|
53
|
+
"source-map-js@<1.2.2": ">=1.2.2",
|
|
54
|
+
"maplibre-gl@<6.4.1": ">=6.4.1"
|
|
53
55
|
},
|
|
54
56
|
"auditConfig": {
|
|
55
57
|
"ignoreGhsas": [
|
|
@@ -6,13 +6,15 @@ settings:
|
|
|
6
6
|
|
|
7
7
|
overrides:
|
|
8
8
|
postcss@<8.5.18: '>=8.5.18'
|
|
9
|
-
sharp@<0.35.
|
|
9
|
+
sharp@<0.35.5: '>=0.35.5'
|
|
10
10
|
brace-expansion@<5.0.12: '>=5.0.12'
|
|
11
11
|
undici@<7.29.0: '>=7.29.0'
|
|
12
12
|
undici@<8.10.2: '>=8.10.2'
|
|
13
13
|
js-yaml@<4.3.2: '>=4.3.2 <5'
|
|
14
14
|
nanoid@<3.3.17: '>=3.3.17 <4'
|
|
15
15
|
browserslist@<4.28.7: '>=4.28.7'
|
|
16
|
+
source-map-js@<1.2.2: '>=1.2.2'
|
|
17
|
+
maplibre-gl@<6.4.1: '>=6.4.1'
|
|
16
18
|
|
|
17
19
|
importers:
|
|
18
20
|
|
|
@@ -478,144 +480,144 @@ packages:
|
|
|
478
480
|
resolution: {integrity: sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==}
|
|
479
481
|
engines: {node: '>=18'}
|
|
480
482
|
|
|
481
|
-
'@img/sharp-darwin-arm64@0.35.
|
|
482
|
-
resolution: {integrity: sha512-
|
|
483
|
+
'@img/sharp-darwin-arm64@0.35.5':
|
|
484
|
+
resolution: {integrity: sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==}
|
|
483
485
|
engines: {node: '>=20.9.0'}
|
|
484
486
|
cpu: [arm64]
|
|
485
487
|
os: [darwin]
|
|
486
488
|
|
|
487
|
-
'@img/sharp-darwin-x64@0.35.
|
|
488
|
-
resolution: {integrity: sha512
|
|
489
|
+
'@img/sharp-darwin-x64@0.35.5':
|
|
490
|
+
resolution: {integrity: sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==}
|
|
489
491
|
engines: {node: '>=20.9.0'}
|
|
490
492
|
cpu: [x64]
|
|
491
493
|
os: [darwin]
|
|
492
494
|
|
|
493
|
-
'@img/sharp-freebsd-wasm32@0.35.
|
|
494
|
-
resolution: {integrity: sha512-
|
|
495
|
+
'@img/sharp-freebsd-wasm32@0.35.5':
|
|
496
|
+
resolution: {integrity: sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==}
|
|
495
497
|
engines: {node: '>=20.9.0'}
|
|
496
498
|
os: [freebsd]
|
|
497
499
|
|
|
498
|
-
'@img/sharp-libvips-darwin-arm64@1.3.
|
|
499
|
-
resolution: {integrity: sha512-
|
|
500
|
+
'@img/sharp-libvips-darwin-arm64@1.3.4':
|
|
501
|
+
resolution: {integrity: sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==}
|
|
500
502
|
cpu: [arm64]
|
|
501
503
|
os: [darwin]
|
|
502
504
|
|
|
503
|
-
'@img/sharp-libvips-darwin-x64@1.3.
|
|
504
|
-
resolution: {integrity: sha512-
|
|
505
|
+
'@img/sharp-libvips-darwin-x64@1.3.4':
|
|
506
|
+
resolution: {integrity: sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==}
|
|
505
507
|
cpu: [x64]
|
|
506
508
|
os: [darwin]
|
|
507
509
|
|
|
508
|
-
'@img/sharp-libvips-linux-arm64@1.3.
|
|
509
|
-
resolution: {integrity: sha512-
|
|
510
|
+
'@img/sharp-libvips-linux-arm64@1.3.4':
|
|
511
|
+
resolution: {integrity: sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==}
|
|
510
512
|
cpu: [arm64]
|
|
511
513
|
os: [linux]
|
|
512
514
|
|
|
513
|
-
'@img/sharp-libvips-linux-arm@1.3.
|
|
514
|
-
resolution: {integrity: sha512-
|
|
515
|
+
'@img/sharp-libvips-linux-arm@1.3.4':
|
|
516
|
+
resolution: {integrity: sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==}
|
|
515
517
|
cpu: [arm]
|
|
516
518
|
os: [linux]
|
|
517
519
|
|
|
518
|
-
'@img/sharp-libvips-linux-ppc64@1.3.
|
|
519
|
-
resolution: {integrity: sha512-
|
|
520
|
+
'@img/sharp-libvips-linux-ppc64@1.3.4':
|
|
521
|
+
resolution: {integrity: sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==}
|
|
520
522
|
cpu: [ppc64]
|
|
521
523
|
os: [linux]
|
|
522
524
|
|
|
523
|
-
'@img/sharp-libvips-linux-riscv64@1.3.
|
|
524
|
-
resolution: {integrity: sha512-
|
|
525
|
+
'@img/sharp-libvips-linux-riscv64@1.3.4':
|
|
526
|
+
resolution: {integrity: sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==}
|
|
525
527
|
cpu: [riscv64]
|
|
526
528
|
os: [linux]
|
|
527
529
|
|
|
528
|
-
'@img/sharp-libvips-linux-s390x@1.3.
|
|
529
|
-
resolution: {integrity: sha512-
|
|
530
|
+
'@img/sharp-libvips-linux-s390x@1.3.4':
|
|
531
|
+
resolution: {integrity: sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==}
|
|
530
532
|
cpu: [s390x]
|
|
531
533
|
os: [linux]
|
|
532
534
|
|
|
533
|
-
'@img/sharp-libvips-linux-x64@1.3.
|
|
534
|
-
resolution: {integrity: sha512-
|
|
535
|
+
'@img/sharp-libvips-linux-x64@1.3.4':
|
|
536
|
+
resolution: {integrity: sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==}
|
|
535
537
|
cpu: [x64]
|
|
536
538
|
os: [linux]
|
|
537
539
|
|
|
538
|
-
'@img/sharp-libvips-linuxmusl-arm64@1.3.
|
|
539
|
-
resolution: {integrity: sha512-
|
|
540
|
+
'@img/sharp-libvips-linuxmusl-arm64@1.3.4':
|
|
541
|
+
resolution: {integrity: sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==}
|
|
540
542
|
cpu: [arm64]
|
|
541
543
|
os: [linux]
|
|
542
544
|
|
|
543
|
-
'@img/sharp-libvips-linuxmusl-x64@1.3.
|
|
544
|
-
resolution: {integrity: sha512-
|
|
545
|
+
'@img/sharp-libvips-linuxmusl-x64@1.3.4':
|
|
546
|
+
resolution: {integrity: sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==}
|
|
545
547
|
cpu: [x64]
|
|
546
548
|
os: [linux]
|
|
547
549
|
|
|
548
|
-
'@img/sharp-linux-arm64@0.35.
|
|
549
|
-
resolution: {integrity: sha512-
|
|
550
|
+
'@img/sharp-linux-arm64@0.35.5':
|
|
551
|
+
resolution: {integrity: sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==}
|
|
550
552
|
engines: {node: '>=20.9.0'}
|
|
551
553
|
cpu: [arm64]
|
|
552
554
|
os: [linux]
|
|
553
555
|
|
|
554
|
-
'@img/sharp-linux-arm@0.35.
|
|
555
|
-
resolution: {integrity: sha512-
|
|
556
|
+
'@img/sharp-linux-arm@0.35.5':
|
|
557
|
+
resolution: {integrity: sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==}
|
|
556
558
|
engines: {node: '>=20.9.0'}
|
|
557
559
|
cpu: [arm]
|
|
558
560
|
os: [linux]
|
|
559
561
|
|
|
560
|
-
'@img/sharp-linux-ppc64@0.35.
|
|
561
|
-
resolution: {integrity: sha512-
|
|
562
|
+
'@img/sharp-linux-ppc64@0.35.5':
|
|
563
|
+
resolution: {integrity: sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==}
|
|
562
564
|
engines: {node: '>=20.9.0'}
|
|
563
565
|
cpu: [ppc64]
|
|
564
566
|
os: [linux]
|
|
565
567
|
|
|
566
|
-
'@img/sharp-linux-riscv64@0.35.
|
|
567
|
-
resolution: {integrity: sha512-
|
|
568
|
+
'@img/sharp-linux-riscv64@0.35.5':
|
|
569
|
+
resolution: {integrity: sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==}
|
|
568
570
|
engines: {node: '>=20.9.0'}
|
|
569
571
|
cpu: [riscv64]
|
|
570
572
|
os: [linux]
|
|
571
573
|
|
|
572
|
-
'@img/sharp-linux-s390x@0.35.
|
|
573
|
-
resolution: {integrity: sha512-
|
|
574
|
+
'@img/sharp-linux-s390x@0.35.5':
|
|
575
|
+
resolution: {integrity: sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==}
|
|
574
576
|
engines: {node: '>=20.9.0'}
|
|
575
577
|
cpu: [s390x]
|
|
576
578
|
os: [linux]
|
|
577
579
|
|
|
578
|
-
'@img/sharp-linux-x64@0.35.
|
|
579
|
-
resolution: {integrity: sha512-
|
|
580
|
+
'@img/sharp-linux-x64@0.35.5':
|
|
581
|
+
resolution: {integrity: sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==}
|
|
580
582
|
engines: {node: '>=20.9.0'}
|
|
581
583
|
cpu: [x64]
|
|
582
584
|
os: [linux]
|
|
583
585
|
|
|
584
|
-
'@img/sharp-linuxmusl-arm64@0.35.
|
|
585
|
-
resolution: {integrity: sha512-
|
|
586
|
+
'@img/sharp-linuxmusl-arm64@0.35.5':
|
|
587
|
+
resolution: {integrity: sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==}
|
|
586
588
|
engines: {node: '>=20.9.0'}
|
|
587
589
|
cpu: [arm64]
|
|
588
590
|
os: [linux]
|
|
589
591
|
|
|
590
|
-
'@img/sharp-linuxmusl-x64@0.35.
|
|
591
|
-
resolution: {integrity: sha512-
|
|
592
|
+
'@img/sharp-linuxmusl-x64@0.35.5':
|
|
593
|
+
resolution: {integrity: sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==}
|
|
592
594
|
engines: {node: '>=20.9.0'}
|
|
593
595
|
cpu: [x64]
|
|
594
596
|
os: [linux]
|
|
595
597
|
|
|
596
|
-
'@img/sharp-wasm32@0.35.
|
|
597
|
-
resolution: {integrity: sha512-
|
|
598
|
+
'@img/sharp-wasm32@0.35.5':
|
|
599
|
+
resolution: {integrity: sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==}
|
|
598
600
|
engines: {node: '>=20.9.0'}
|
|
599
601
|
|
|
600
|
-
'@img/sharp-webcontainers-wasm32@0.35.
|
|
601
|
-
resolution: {integrity: sha512-
|
|
602
|
+
'@img/sharp-webcontainers-wasm32@0.35.5':
|
|
603
|
+
resolution: {integrity: sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==}
|
|
602
604
|
engines: {node: '>=20.9.0'}
|
|
603
605
|
cpu: [wasm32]
|
|
604
606
|
|
|
605
|
-
'@img/sharp-win32-arm64@0.35.
|
|
606
|
-
resolution: {integrity: sha512-
|
|
607
|
+
'@img/sharp-win32-arm64@0.35.5':
|
|
608
|
+
resolution: {integrity: sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==}
|
|
607
609
|
engines: {node: '>=20.9.0'}
|
|
608
610
|
cpu: [arm64]
|
|
609
611
|
os: [win32]
|
|
610
612
|
|
|
611
|
-
'@img/sharp-win32-ia32@0.35.
|
|
612
|
-
resolution: {integrity: sha512-
|
|
613
|
+
'@img/sharp-win32-ia32@0.35.5':
|
|
614
|
+
resolution: {integrity: sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==}
|
|
613
615
|
engines: {node: ^20.9.0}
|
|
614
616
|
cpu: [ia32]
|
|
615
617
|
os: [win32]
|
|
616
618
|
|
|
617
|
-
'@img/sharp-win32-x64@0.35.
|
|
618
|
-
resolution: {integrity: sha512-
|
|
619
|
+
'@img/sharp-win32-x64@0.35.5':
|
|
620
|
+
resolution: {integrity: sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==}
|
|
619
621
|
engines: {node: '>=20.9.0'}
|
|
620
622
|
cpu: [x64]
|
|
621
623
|
os: [win32]
|
|
@@ -2262,8 +2264,8 @@ packages:
|
|
|
2262
2264
|
resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}
|
|
2263
2265
|
engines: {node: '>= 0.4'}
|
|
2264
2266
|
|
|
2265
|
-
sharp@0.35.
|
|
2266
|
-
resolution: {integrity: sha512-
|
|
2267
|
+
sharp@0.35.5:
|
|
2268
|
+
resolution: {integrity: sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==}
|
|
2267
2269
|
engines: {node: '>=20.9.0'}
|
|
2268
2270
|
peerDependencies:
|
|
2269
2271
|
'@types/node': '*'
|
|
@@ -2298,8 +2300,8 @@ packages:
|
|
|
2298
2300
|
siginfo@2.0.0:
|
|
2299
2301
|
resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
|
|
2300
2302
|
|
|
2301
|
-
source-map-js@1.2.
|
|
2302
|
-
resolution: {integrity: sha512-
|
|
2303
|
+
source-map-js@1.2.2:
|
|
2304
|
+
resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}
|
|
2303
2305
|
engines: {node: '>=0.10.0'}
|
|
2304
2306
|
|
|
2305
2307
|
stable-hash@0.0.5:
|
|
@@ -2978,108 +2980,108 @@ snapshots:
|
|
|
2978
2980
|
'@img/colour@1.1.0':
|
|
2979
2981
|
optional: true
|
|
2980
2982
|
|
|
2981
|
-
'@img/sharp-darwin-arm64@0.35.
|
|
2983
|
+
'@img/sharp-darwin-arm64@0.35.5':
|
|
2982
2984
|
optionalDependencies:
|
|
2983
|
-
'@img/sharp-libvips-darwin-arm64': 1.3.
|
|
2985
|
+
'@img/sharp-libvips-darwin-arm64': 1.3.4
|
|
2984
2986
|
optional: true
|
|
2985
2987
|
|
|
2986
|
-
'@img/sharp-darwin-x64@0.35.
|
|
2988
|
+
'@img/sharp-darwin-x64@0.35.5':
|
|
2987
2989
|
optionalDependencies:
|
|
2988
|
-
'@img/sharp-libvips-darwin-x64': 1.3.
|
|
2990
|
+
'@img/sharp-libvips-darwin-x64': 1.3.4
|
|
2989
2991
|
optional: true
|
|
2990
2992
|
|
|
2991
|
-
'@img/sharp-freebsd-wasm32@0.35.
|
|
2993
|
+
'@img/sharp-freebsd-wasm32@0.35.5':
|
|
2992
2994
|
dependencies:
|
|
2993
|
-
'@img/sharp-wasm32': 0.35.
|
|
2995
|
+
'@img/sharp-wasm32': 0.35.5
|
|
2994
2996
|
optional: true
|
|
2995
2997
|
|
|
2996
|
-
'@img/sharp-libvips-darwin-arm64@1.3.
|
|
2998
|
+
'@img/sharp-libvips-darwin-arm64@1.3.4':
|
|
2997
2999
|
optional: true
|
|
2998
3000
|
|
|
2999
|
-
'@img/sharp-libvips-darwin-x64@1.3.
|
|
3001
|
+
'@img/sharp-libvips-darwin-x64@1.3.4':
|
|
3000
3002
|
optional: true
|
|
3001
3003
|
|
|
3002
|
-
'@img/sharp-libvips-linux-arm64@1.3.
|
|
3004
|
+
'@img/sharp-libvips-linux-arm64@1.3.4':
|
|
3003
3005
|
optional: true
|
|
3004
3006
|
|
|
3005
|
-
'@img/sharp-libvips-linux-arm@1.3.
|
|
3007
|
+
'@img/sharp-libvips-linux-arm@1.3.4':
|
|
3006
3008
|
optional: true
|
|
3007
3009
|
|
|
3008
|
-
'@img/sharp-libvips-linux-ppc64@1.3.
|
|
3010
|
+
'@img/sharp-libvips-linux-ppc64@1.3.4':
|
|
3009
3011
|
optional: true
|
|
3010
3012
|
|
|
3011
|
-
'@img/sharp-libvips-linux-riscv64@1.3.
|
|
3013
|
+
'@img/sharp-libvips-linux-riscv64@1.3.4':
|
|
3012
3014
|
optional: true
|
|
3013
3015
|
|
|
3014
|
-
'@img/sharp-libvips-linux-s390x@1.3.
|
|
3016
|
+
'@img/sharp-libvips-linux-s390x@1.3.4':
|
|
3015
3017
|
optional: true
|
|
3016
3018
|
|
|
3017
|
-
'@img/sharp-libvips-linux-x64@1.3.
|
|
3019
|
+
'@img/sharp-libvips-linux-x64@1.3.4':
|
|
3018
3020
|
optional: true
|
|
3019
3021
|
|
|
3020
|
-
'@img/sharp-libvips-linuxmusl-arm64@1.3.
|
|
3022
|
+
'@img/sharp-libvips-linuxmusl-arm64@1.3.4':
|
|
3021
3023
|
optional: true
|
|
3022
3024
|
|
|
3023
|
-
'@img/sharp-libvips-linuxmusl-x64@1.3.
|
|
3025
|
+
'@img/sharp-libvips-linuxmusl-x64@1.3.4':
|
|
3024
3026
|
optional: true
|
|
3025
3027
|
|
|
3026
|
-
'@img/sharp-linux-arm64@0.35.
|
|
3028
|
+
'@img/sharp-linux-arm64@0.35.5':
|
|
3027
3029
|
optionalDependencies:
|
|
3028
|
-
'@img/sharp-libvips-linux-arm64': 1.3.
|
|
3030
|
+
'@img/sharp-libvips-linux-arm64': 1.3.4
|
|
3029
3031
|
optional: true
|
|
3030
3032
|
|
|
3031
|
-
'@img/sharp-linux-arm@0.35.
|
|
3033
|
+
'@img/sharp-linux-arm@0.35.5':
|
|
3032
3034
|
optionalDependencies:
|
|
3033
|
-
'@img/sharp-libvips-linux-arm': 1.3.
|
|
3035
|
+
'@img/sharp-libvips-linux-arm': 1.3.4
|
|
3034
3036
|
optional: true
|
|
3035
3037
|
|
|
3036
|
-
'@img/sharp-linux-ppc64@0.35.
|
|
3038
|
+
'@img/sharp-linux-ppc64@0.35.5':
|
|
3037
3039
|
optionalDependencies:
|
|
3038
|
-
'@img/sharp-libvips-linux-ppc64': 1.3.
|
|
3040
|
+
'@img/sharp-libvips-linux-ppc64': 1.3.4
|
|
3039
3041
|
optional: true
|
|
3040
3042
|
|
|
3041
|
-
'@img/sharp-linux-riscv64@0.35.
|
|
3043
|
+
'@img/sharp-linux-riscv64@0.35.5':
|
|
3042
3044
|
optionalDependencies:
|
|
3043
|
-
'@img/sharp-libvips-linux-riscv64': 1.3.
|
|
3045
|
+
'@img/sharp-libvips-linux-riscv64': 1.3.4
|
|
3044
3046
|
optional: true
|
|
3045
3047
|
|
|
3046
|
-
'@img/sharp-linux-s390x@0.35.
|
|
3048
|
+
'@img/sharp-linux-s390x@0.35.5':
|
|
3047
3049
|
optionalDependencies:
|
|
3048
|
-
'@img/sharp-libvips-linux-s390x': 1.3.
|
|
3050
|
+
'@img/sharp-libvips-linux-s390x': 1.3.4
|
|
3049
3051
|
optional: true
|
|
3050
3052
|
|
|
3051
|
-
'@img/sharp-linux-x64@0.35.
|
|
3053
|
+
'@img/sharp-linux-x64@0.35.5':
|
|
3052
3054
|
optionalDependencies:
|
|
3053
|
-
'@img/sharp-libvips-linux-x64': 1.3.
|
|
3055
|
+
'@img/sharp-libvips-linux-x64': 1.3.4
|
|
3054
3056
|
optional: true
|
|
3055
3057
|
|
|
3056
|
-
'@img/sharp-linuxmusl-arm64@0.35.
|
|
3058
|
+
'@img/sharp-linuxmusl-arm64@0.35.5':
|
|
3057
3059
|
optionalDependencies:
|
|
3058
|
-
'@img/sharp-libvips-linuxmusl-arm64': 1.3.
|
|
3060
|
+
'@img/sharp-libvips-linuxmusl-arm64': 1.3.4
|
|
3059
3061
|
optional: true
|
|
3060
3062
|
|
|
3061
|
-
'@img/sharp-linuxmusl-x64@0.35.
|
|
3063
|
+
'@img/sharp-linuxmusl-x64@0.35.5':
|
|
3062
3064
|
optionalDependencies:
|
|
3063
|
-
'@img/sharp-libvips-linuxmusl-x64': 1.3.
|
|
3065
|
+
'@img/sharp-libvips-linuxmusl-x64': 1.3.4
|
|
3064
3066
|
optional: true
|
|
3065
3067
|
|
|
3066
|
-
'@img/sharp-wasm32@0.35.
|
|
3068
|
+
'@img/sharp-wasm32@0.35.5':
|
|
3067
3069
|
dependencies:
|
|
3068
3070
|
'@emnapi/runtime': 1.11.3
|
|
3069
3071
|
optional: true
|
|
3070
3072
|
|
|
3071
|
-
'@img/sharp-webcontainers-wasm32@0.35.
|
|
3073
|
+
'@img/sharp-webcontainers-wasm32@0.35.5':
|
|
3072
3074
|
dependencies:
|
|
3073
|
-
'@img/sharp-wasm32': 0.35.
|
|
3075
|
+
'@img/sharp-wasm32': 0.35.5
|
|
3074
3076
|
optional: true
|
|
3075
3077
|
|
|
3076
|
-
'@img/sharp-win32-arm64@0.35.
|
|
3078
|
+
'@img/sharp-win32-arm64@0.35.5':
|
|
3077
3079
|
optional: true
|
|
3078
3080
|
|
|
3079
|
-
'@img/sharp-win32-ia32@0.35.
|
|
3081
|
+
'@img/sharp-win32-ia32@0.35.5':
|
|
3080
3082
|
optional: true
|
|
3081
3083
|
|
|
3082
|
-
'@img/sharp-win32-x64@0.35.
|
|
3084
|
+
'@img/sharp-win32-x64@0.35.5':
|
|
3083
3085
|
optional: true
|
|
3084
3086
|
|
|
3085
3087
|
'@jridgewell/gen-mapping@0.3.13':
|
|
@@ -3743,7 +3745,7 @@ snapshots:
|
|
|
3743
3745
|
css-tree@3.2.1:
|
|
3744
3746
|
dependencies:
|
|
3745
3747
|
mdn-data: 2.27.1
|
|
3746
|
-
source-map-js: 1.2.
|
|
3748
|
+
source-map-js: 1.2.2
|
|
3747
3749
|
|
|
3748
3750
|
css.escape@1.5.1: {}
|
|
3749
3751
|
|
|
@@ -4623,7 +4625,7 @@ snapshots:
|
|
|
4623
4625
|
'@next/swc-win32-arm64-msvc': 15.5.25
|
|
4624
4626
|
'@next/swc-win32-x64-msvc': 15.5.25
|
|
4625
4627
|
'@playwright/test': 1.62.1
|
|
4626
|
-
sharp: 0.35.
|
|
4628
|
+
sharp: 0.35.5(@types/node@22.20.0)
|
|
4627
4629
|
transitivePeerDependencies:
|
|
4628
4630
|
- '@babel/core'
|
|
4629
4631
|
- '@types/node'
|
|
@@ -4745,7 +4747,7 @@ snapshots:
|
|
|
4745
4747
|
dependencies:
|
|
4746
4748
|
nanoid: 3.3.18
|
|
4747
4749
|
picocolors: 1.1.1
|
|
4748
|
-
source-map-js: 1.2.
|
|
4750
|
+
source-map-js: 1.2.2
|
|
4749
4751
|
|
|
4750
4752
|
prelude-ls@1.2.1: {}
|
|
4751
4753
|
|
|
@@ -4908,37 +4910,37 @@ snapshots:
|
|
|
4908
4910
|
es-errors: 1.3.0
|
|
4909
4911
|
es-object-atoms: 1.1.2
|
|
4910
4912
|
|
|
4911
|
-
sharp@0.35.
|
|
4913
|
+
sharp@0.35.5(@types/node@22.20.0):
|
|
4912
4914
|
dependencies:
|
|
4913
4915
|
'@img/colour': 1.1.0
|
|
4914
4916
|
detect-libc: 2.1.2
|
|
4915
4917
|
semver: 7.8.5
|
|
4916
4918
|
optionalDependencies:
|
|
4917
|
-
'@img/sharp-darwin-arm64': 0.35.
|
|
4918
|
-
'@img/sharp-darwin-x64': 0.35.
|
|
4919
|
-
'@img/sharp-freebsd-wasm32': 0.35.
|
|
4920
|
-
'@img/sharp-libvips-darwin-arm64': 1.3.
|
|
4921
|
-
'@img/sharp-libvips-darwin-x64': 1.3.
|
|
4922
|
-
'@img/sharp-libvips-linux-arm': 1.3.
|
|
4923
|
-
'@img/sharp-libvips-linux-arm64': 1.3.
|
|
4924
|
-
'@img/sharp-libvips-linux-ppc64': 1.3.
|
|
4925
|
-
'@img/sharp-libvips-linux-riscv64': 1.3.
|
|
4926
|
-
'@img/sharp-libvips-linux-s390x': 1.3.
|
|
4927
|
-
'@img/sharp-libvips-linux-x64': 1.3.
|
|
4928
|
-
'@img/sharp-libvips-linuxmusl-arm64': 1.3.
|
|
4929
|
-
'@img/sharp-libvips-linuxmusl-x64': 1.3.
|
|
4930
|
-
'@img/sharp-linux-arm': 0.35.
|
|
4931
|
-
'@img/sharp-linux-arm64': 0.35.
|
|
4932
|
-
'@img/sharp-linux-ppc64': 0.35.
|
|
4933
|
-
'@img/sharp-linux-riscv64': 0.35.
|
|
4934
|
-
'@img/sharp-linux-s390x': 0.35.
|
|
4935
|
-
'@img/sharp-linux-x64': 0.35.
|
|
4936
|
-
'@img/sharp-linuxmusl-arm64': 0.35.
|
|
4937
|
-
'@img/sharp-linuxmusl-x64': 0.35.
|
|
4938
|
-
'@img/sharp-webcontainers-wasm32': 0.35.
|
|
4939
|
-
'@img/sharp-win32-arm64': 0.35.
|
|
4940
|
-
'@img/sharp-win32-ia32': 0.35.
|
|
4941
|
-
'@img/sharp-win32-x64': 0.35.
|
|
4919
|
+
'@img/sharp-darwin-arm64': 0.35.5
|
|
4920
|
+
'@img/sharp-darwin-x64': 0.35.5
|
|
4921
|
+
'@img/sharp-freebsd-wasm32': 0.35.5
|
|
4922
|
+
'@img/sharp-libvips-darwin-arm64': 1.3.4
|
|
4923
|
+
'@img/sharp-libvips-darwin-x64': 1.3.4
|
|
4924
|
+
'@img/sharp-libvips-linux-arm': 1.3.4
|
|
4925
|
+
'@img/sharp-libvips-linux-arm64': 1.3.4
|
|
4926
|
+
'@img/sharp-libvips-linux-ppc64': 1.3.4
|
|
4927
|
+
'@img/sharp-libvips-linux-riscv64': 1.3.4
|
|
4928
|
+
'@img/sharp-libvips-linux-s390x': 1.3.4
|
|
4929
|
+
'@img/sharp-libvips-linux-x64': 1.3.4
|
|
4930
|
+
'@img/sharp-libvips-linuxmusl-arm64': 1.3.4
|
|
4931
|
+
'@img/sharp-libvips-linuxmusl-x64': 1.3.4
|
|
4932
|
+
'@img/sharp-linux-arm': 0.35.5
|
|
4933
|
+
'@img/sharp-linux-arm64': 0.35.5
|
|
4934
|
+
'@img/sharp-linux-ppc64': 0.35.5
|
|
4935
|
+
'@img/sharp-linux-riscv64': 0.35.5
|
|
4936
|
+
'@img/sharp-linux-s390x': 0.35.5
|
|
4937
|
+
'@img/sharp-linux-x64': 0.35.5
|
|
4938
|
+
'@img/sharp-linuxmusl-arm64': 0.35.5
|
|
4939
|
+
'@img/sharp-linuxmusl-x64': 0.35.5
|
|
4940
|
+
'@img/sharp-webcontainers-wasm32': 0.35.5
|
|
4941
|
+
'@img/sharp-win32-arm64': 0.35.5
|
|
4942
|
+
'@img/sharp-win32-ia32': 0.35.5
|
|
4943
|
+
'@img/sharp-win32-x64': 0.35.5
|
|
4942
4944
|
'@types/node': 22.20.0
|
|
4943
4945
|
optional: true
|
|
4944
4946
|
|
|
@@ -4978,7 +4980,7 @@ snapshots:
|
|
|
4978
4980
|
|
|
4979
4981
|
siginfo@2.0.0: {}
|
|
4980
4982
|
|
|
4981
|
-
source-map-js@1.2.
|
|
4983
|
+
source-map-js@1.2.2: {}
|
|
4982
4984
|
|
|
4983
4985
|
stable-hash@0.0.5: {}
|
|
4984
4986
|
|
package/package.json
CHANGED
|
@@ -89,7 +89,14 @@ while read -r _local_ref local_sha _remote_ref remote_sha; do
|
|
|
89
89
|
continue
|
|
90
90
|
fi
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
changed=$(git diff --name-only "$range" 2>/dev/null)
|
|
93
|
+
# Hand the changed paths to the hook so verify.sh can SCOPE the pre-push
|
|
94
|
+
# pg-test lane to this diff instead of running the whole suite. Optional:
|
|
95
|
+
# nothing is written unless the caller names a file.
|
|
96
|
+
if [ -n "${BIFFO_PGTEST_DIFF_LIST_FILE:-}" ] && [ -n "$changed" ]; then
|
|
97
|
+
printf '%s\n' "$changed" >>"$BIFFO_PGTEST_DIFF_LIST_FILE"
|
|
98
|
+
fi
|
|
99
|
+
if printf '%s\n' "$changed" | grep -qE "$PATTERN"; then
|
|
93
100
|
echo hit >>"$RESULT_FILE"
|
|
94
101
|
fi
|
|
95
102
|
done
|
package/scripts/verify.sh
CHANGED
|
@@ -908,7 +908,20 @@ fi
|
|
|
908
908
|
# tests already passing before the kill, so it was slow, not failing
|
|
909
909
|
# (tabsii-com/tabsii-platform#1463). Same doubling; not re-measured to
|
|
910
910
|
# completion, so re-measure and tighten this comment when it next finishes.
|
|
911
|
-
|
|
911
|
+
#
|
|
912
|
+
# Pre-push (#2420): the fleet kills a push at 900s, so a 960s lane budget could
|
|
913
|
+
# never report -- the push died first. The pre-push gate (`.githooks/pre-push`
|
|
914
|
+
# exports BIFFO_PGTEST_PREPUSH=1) therefore runs a diff-SCOPED module set under
|
|
915
|
+
# a budget strictly below 900s, and the full suite stays with CI and a
|
|
916
|
+
# hand-run `biffo verify` (960s, unchanged). Do not raise the pre-push number:
|
|
917
|
+
# scope the set instead.
|
|
918
|
+
PG_PREPUSH_BUDGET_SECONDS=600
|
|
919
|
+
if [ -n "${BIFFO_PGTEST_PREPUSH:-}" ]; then
|
|
920
|
+
PG_TEST_BUDGET_SECONDS="${BIFFO_VERIFY_PG_BUDGET:-$PG_PREPUSH_BUDGET_SECONDS}"
|
|
921
|
+
else
|
|
922
|
+
PG_TEST_BUDGET_SECONDS="${BIFFO_VERIFY_PG_BUDGET:-960}"
|
|
923
|
+
fi
|
|
924
|
+
PG_SCOPED_DESC=""
|
|
912
925
|
PG_TEST_DSN="${BIFFO_TEST_PG_DSN:-${TABSII_TEST_PG_DSN:-}}"
|
|
913
926
|
|
|
914
927
|
# `.claude/worktrees` is excluded alongside `.worktrees`, and finding out why
|
|
@@ -1153,6 +1166,11 @@ pg_test_run() {
|
|
|
1153
1166
|
echo "so nothing below is a verdict on your change. Do not go looking for a"
|
|
1154
1167
|
echo "bug on this evidence."
|
|
1155
1168
|
echo ""
|
|
1169
|
+
if [ -n "$PG_SCOPED_DESC" ]; then
|
|
1170
|
+
echo "This was the pre-push SCOPED set (the full suite runs in CI):"
|
|
1171
|
+
printf '%s\n' "$PG_SCOPED_DESC"
|
|
1172
|
+
echo ""
|
|
1173
|
+
fi
|
|
1156
1174
|
echo "Most likely the lane has simply outgrown its budget. Re-run with more:"
|
|
1157
1175
|
echo " BIFFO_VERIFY_PG_BUDGET=$((PG_TEST_BUDGET_SECONDS * 2)) sh scripts/verify.sh"
|
|
1158
1176
|
echo ""
|
|
@@ -1195,6 +1213,64 @@ pg_test_run() {
|
|
|
1195
1213
|
return 0
|
|
1196
1214
|
}
|
|
1197
1215
|
|
|
1216
|
+
# Pre-push scoping (#2420). Given the pushed diff's changed paths and the full
|
|
1217
|
+
# discovered module list, print the modules worth running now, one per line:
|
|
1218
|
+
# 1. every changed *_pg.py test file;
|
|
1219
|
+
# 2. the smoke set the repo declares in scripts/pg-test-smoke.txt (one path
|
|
1220
|
+
# per line, `#` comments allowed);
|
|
1221
|
+
# 3. for each changed db/imports/**.sql, the modules that mention a table it
|
|
1222
|
+
# CREATEs or ALTERs (grep over table names).
|
|
1223
|
+
# Runs in a subshell, so the human-readable "why" is rebuilt into
|
|
1224
|
+
# PG_SCOPED_DESC by the caller via pg_scope_describe.
|
|
1225
|
+
pg_scope_tables() {
|
|
1226
|
+
# table names created/altered in the changed SQL, schema/quotes stripped
|
|
1227
|
+
while IFS= read -r _f; do
|
|
1228
|
+
case "$_f" in
|
|
1229
|
+
*/db/imports/*.sql | db/imports/*.sql) [ -f "$_f" ] || continue ;;
|
|
1230
|
+
*) continue ;;
|
|
1231
|
+
esac
|
|
1232
|
+
grep -iE '^[[:space:]]*(create|alter)[[:space:]]+table' "$_f" 2>/dev/null \
|
|
1233
|
+
| sed -E 's/--.*//; s/"//g' \
|
|
1234
|
+
| sed -E 's/^[[:space:]]*[Cc][Rr][Ee][Aa][Tt][Ee][[:space:]]+[Tt][Aa][Bb][Ll][Ee][[:space:]]+([Ii][Ff][[:space:]]+[Nn][Oo][Tt][[:space:]]+[Ee][Xx][Ii][Ss][Tt][Ss][[:space:]]+)?//; s/^[[:space:]]*[Aa][Ll][Tt][Ee][Rr][[:space:]]+[Tt][Aa][Bb][Ll][Ee][[:space:]]+([Ii][Ff][[:space:]]+[Ee][Xx][Ii][Ss][Tt][Ss][[:space:]]+)?([Oo][Nn][Ll][Yy][[:space:]]+)?//' \
|
|
1235
|
+
| awk '{print $1}' | sed -E 's/\(.*//; s/.*\.//; s/[;,]//g' | grep -E '^[A-Za-z_][A-Za-z0-9_]*$'
|
|
1236
|
+
done <"$1" | sort -u
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
pg_scope_modules() {
|
|
1240
|
+
_sc_changed="$1"
|
|
1241
|
+
_sc_all="$2"
|
|
1242
|
+
{
|
|
1243
|
+
# 1. changed *_pg.py files that exist and were discovered
|
|
1244
|
+
grep -E '_pg\.py$' "$_sc_changed" 2>/dev/null | while IFS= read -r _f; do
|
|
1245
|
+
printf '%s\n' "$_sc_all" | grep -Fx -- "$_f"
|
|
1246
|
+
done
|
|
1247
|
+
# 2. declared smoke set
|
|
1248
|
+
if [ -f scripts/pg-test-smoke.txt ]; then
|
|
1249
|
+
sed 's/#.*//; s/^[[:space:]]*//; s/[[:space:]]*$//' scripts/pg-test-smoke.txt | grep -v '^$' \
|
|
1250
|
+
| while IFS= read -r _f; do
|
|
1251
|
+
[ -f "$_f" ] && printf '%s\n' "$_f"
|
|
1252
|
+
done
|
|
1253
|
+
fi
|
|
1254
|
+
# 3. modules referencing a table the changed DDL creates or alters
|
|
1255
|
+
_sc_tables=$(pg_scope_tables "$_sc_changed")
|
|
1256
|
+
if [ -n "$_sc_tables" ]; then
|
|
1257
|
+
printf '%s\n' "$_sc_all" | while IFS= read -r _m; do
|
|
1258
|
+
[ -f "$_m" ] && printf '%s\n' "$_sc_tables" | grep -qwFf - "$_m" 2>/dev/null && printf '%s\n' "$_m"
|
|
1259
|
+
done
|
|
1260
|
+
fi
|
|
1261
|
+
} | grep -v '^$' | sort -u
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
pg_scope_describe() {
|
|
1265
|
+
_sd_changed="$1"
|
|
1266
|
+
_sd_all="$2"
|
|
1267
|
+
printf 'selected because changed: %s\n' \
|
|
1268
|
+
"$(grep -E '_pg\.py$' "$_sd_changed" 2>/dev/null | while IFS= read -r _f; do printf '%s\n' "$_sd_all" | grep -Fx -- "$_f"; done | tr '\n' ' ')"
|
|
1269
|
+
[ -f scripts/pg-test-smoke.txt ] && printf 'selected as declared smoke set: scripts/pg-test-smoke.txt\n'
|
|
1270
|
+
_sd_tables=$(pg_scope_tables "$_sd_changed" | tr '\n' ' ')
|
|
1271
|
+
[ -n "$_sd_tables" ] && printf 'selected because they reference tables from changed DDL: %s\n' "$_sd_tables"
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1198
1274
|
_pg_modules=$(pg_test_modules)
|
|
1199
1275
|
|
|
1200
1276
|
# Print the denominator, not just the verdict -- a discovery step that finds
|
|
@@ -1334,7 +1410,28 @@ else
|
|
|
1334
1410
|
"CI runs these as a required check; nothing local is checking them."
|
|
1335
1411
|
fi
|
|
1336
1412
|
else
|
|
1337
|
-
|
|
1413
|
+
_pg_run_modules="$_pg_modules"
|
|
1414
|
+
_pg_skip_lane=""
|
|
1415
|
+
if [ -z "$LIST" ] && [ -n "${BIFFO_PGTEST_PREPUSH:-}" ]; then
|
|
1416
|
+
if [ "${BIFFO_PGTEST_SCOPE:-}" = "none" ]; then
|
|
1417
|
+
_pg_skip_lane=1
|
|
1418
|
+
_pg_skip_msg="pre-push diff touches no db/imports/** or *_pg.py path (CI runs the full suite)"
|
|
1419
|
+
elif [ -n "${BIFFO_PGTEST_CHANGED_FILES:-}" ] && [ -f "$BIFFO_PGTEST_CHANGED_FILES" ]; then
|
|
1420
|
+
_pg_scoped=$(pg_scope_modules "$BIFFO_PGTEST_CHANGED_FILES" "$_pg_modules")
|
|
1421
|
+
if [ -z "$_pg_scoped" ]; then
|
|
1422
|
+
_pg_skip_lane=1
|
|
1423
|
+
_pg_skip_msg="pre-push scope selected no modules (no changed *_pg.py, no scripts/pg-test-smoke.txt entries, no referencing tests); CI runs the full suite"
|
|
1424
|
+
else
|
|
1425
|
+
_pg_run_modules="$_pg_scoped"
|
|
1426
|
+
PG_SCOPED_DESC="$(pg_scope_describe "$BIFFO_PGTEST_CHANGED_FILES" "$_pg_modules")
|
|
1427
|
+
modules: $(printf '%s\n' "$_pg_scoped" | tr '\n' ' ')"
|
|
1428
|
+
fi
|
|
1429
|
+
else
|
|
1430
|
+
printf ' \033[33m%s\033[0m\n' \
|
|
1431
|
+
"pre-push could not tell which paths changed: running the full pg-test suite under the ${PG_TEST_BUDGET_SECONDS}s pre-push budget"
|
|
1432
|
+
fi
|
|
1433
|
+
fi
|
|
1434
|
+
_pg_rel=$(echo "$_pg_run_modules" | sed "s|^$_pg_dir/||" | tr '\n' ' ')
|
|
1338
1435
|
# Not a plain `run_check` call: `pg_test_run` returns THREE states (0 pass,
|
|
1339
1436
|
# 1 real failure, 2 timed out/inconclusive -- see its own comment), and
|
|
1340
1437
|
# `run_check` only ever sees pass/fail, so routing through it would collapse
|
|
@@ -1343,7 +1440,14 @@ else
|
|
|
1343
1440
|
if [ -n "$LIST" ]; then
|
|
1344
1441
|
# shellcheck disable=SC2086
|
|
1345
1442
|
echo pg_test_run "$_pg_dir" "$_pg_rel"
|
|
1443
|
+
elif [ -n "$_pg_skip_lane" ]; then
|
|
1444
|
+
skip pg-test "$_pg_skip_msg"
|
|
1346
1445
|
else
|
|
1446
|
+
if [ "$_pg_run_modules" != "$_pg_modules" ]; then
|
|
1447
|
+
printf '\033[90m pg-test scoped (pre-push): %s of %s module(s), budget %ss; CI and hand-run verify run all\033[0m\n' \
|
|
1448
|
+
"$(printf '%s\n' "$_pg_run_modules" | grep -c .)" "$(printf '%s\n' "$_pg_modules" | grep -c .)" "$PG_TEST_BUDGET_SECONDS"
|
|
1449
|
+
printf '%s\n' "$PG_SCOPED_DESC" | sed 's/^/ /'
|
|
1450
|
+
fi
|
|
1347
1451
|
_pg_check_start=$(date +%s)
|
|
1348
1452
|
_verify_track_tmp "/tmp/biffo-verify-pg-check.$$"
|
|
1349
1453
|
# shellcheck disable=SC2086
|