javi-forge 1.19.0 → 1.20.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/assets/hooks/manifest.json +6 -2
- package/assets/hooks/pre-push +32 -15
- package/package.json +1 -1
|
@@ -10,12 +10,16 @@
|
|
|
10
10
|
]
|
|
11
11
|
},
|
|
12
12
|
"pre-push": {
|
|
13
|
-
"version":
|
|
14
|
-
"sha256": "
|
|
13
|
+
"version": 2,
|
|
14
|
+
"sha256": "3dad58303d81fc513a35339083438a78aa483fcd28e3377f006bd26e8ce76a6d",
|
|
15
15
|
"historical": [
|
|
16
16
|
{
|
|
17
17
|
"sha256": "7de58640aeef33085a49f31f1d9d0c8bacde0069d6d3265ae41aa8d3cd14d7a5",
|
|
18
18
|
"firstCommit": "5587b3b9b9ed3c86809c0a3d89a850dd2bce7e1a"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"sha256": "3dad58303d81fc513a35339083438a78aa483fcd28e3377f006bd26e8ce76a6d",
|
|
22
|
+
"firstCommit": "a35e09d39a5394d6380499d1ed73fdf22f08c829"
|
|
19
23
|
}
|
|
20
24
|
]
|
|
21
25
|
},
|
package/assets/hooks/pre-push
CHANGED
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
#
|
|
3
|
-
#
|
|
2
|
+
# =============================================================================
|
|
3
|
+
# PRE-PUSH: Native CI checks via javi-forge
|
|
4
|
+
# =============================================================================
|
|
5
|
+
# Runs the quick native gate (validate + coverage) with:
|
|
6
|
+
# javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
|
|
7
|
+
# This is deliberately NOT the full containerized run: the native path
|
|
8
|
+
# sidesteps the pre-push container EACCES failure while keeping fail-closed
|
|
9
|
+
# image-gate enforcement where it belongs — the ci gate layer REFUSES any
|
|
10
|
+
# blocking image gate under --no-docker (see src/commands/ci.ts runGates).
|
|
11
|
+
# Requires: npm install -g javi-forge (npx fallback used when absent).
|
|
12
|
+
# To skip: git push --no-verify
|
|
13
|
+
# Target: under ~180s. Elapsed time is reported below.
|
|
14
|
+
# =============================================================================
|
|
15
|
+
|
|
4
16
|
set -e
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if command -v javi-forge &>/dev/null; then
|
|
12
|
-
javi-forge ci
|
|
17
|
+
|
|
18
|
+
_start=$SECONDS
|
|
19
|
+
|
|
20
|
+
echo "PRE-PUSH: Running native CI checks (validate + coverage)..."
|
|
21
|
+
if command -v javi-forge >/dev/null 2>&1; then
|
|
22
|
+
javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
|
|
13
23
|
else
|
|
14
|
-
|
|
24
|
+
npx javi-forge ci --quick --no-docker --no-security --no-ci-ghagga
|
|
15
25
|
fi || {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
_elapsed=$((SECONDS - _start))
|
|
27
|
+
echo ""
|
|
28
|
+
echo "CI FAILED after ${_elapsed}s — push aborted. Fix the issues above before pushing."
|
|
29
|
+
echo "To skip: git push --no-verify"
|
|
30
|
+
exit 1
|
|
20
31
|
}
|
|
32
|
+
|
|
33
|
+
_elapsed=$((SECONDS - _start))
|
|
34
|
+
echo "PRE-PUSH: passed in ${_elapsed}s (target: 180s)"
|
|
35
|
+
if [ "$_elapsed" -gt 300 ]; then
|
|
36
|
+
echo " WARNING: pre-push took ${_elapsed}s, well over the 180s target."
|
|
37
|
+
fi
|