@@ -66,6 +66,23 @@ for pattern in $EXPECTED_FILES; do
6666 fi
6767done
6868
69+ # Verify that build-sequence-summary.json has correct skipped status for force builds
70+ # When using --force, all packages should be built (skipped: false)
71+ if [ -f " $OUTDIR /work-dir/build-sequence-summary.json" ]; then
72+ # Check that all entries have skipped: false
73+ not_skipped_count=$( jq ' [.[] | select(.skipped == false)] | length' " $OUTDIR /work-dir/build-sequence-summary.json" )
74+ total_count=$( jq ' length' " $OUTDIR /work-dir/build-sequence-summary.json" )
75+ if [ " $not_skipped_count " != " $total_count " ]; then
76+ echo " Expected all $total_count packages to be built (not skipped), but only $not_skipped_count were marked as not skipped" 1>&2
77+ echo " Contents of build-sequence-summary.json:" 1>&2
78+ jq ' .' " $OUTDIR /work-dir/build-sequence-summary.json" 1>&2
79+ pass=false
80+ fi
81+ else
82+ echo " build-sequence-summary.json file not found after force build" 1>&2
83+ pass=false
84+ fi
85+
6986$pass
7087
7188# Rebuild everything while reusing existing local wheels
@@ -114,4 +131,21 @@ if ! grep -q "skipping building wheel since ${DIST}-${VERSION}-" "$log"; then
114131 pass=false
115132fi
116133
134+ # Verify that build-sequence-summary.json has correct skipped status
135+ # When using --cache-wheel-server-url with PyPI, all packages should be skipped
136+ if [ -f " $OUTDIR /work-dir/build-sequence-summary.json" ]; then
137+ # Check that all entries have skipped: true
138+ skipped_count=$( jq ' [.[] | select(.skipped == true)] | length' " $OUTDIR /work-dir/build-sequence-summary.json" )
139+ total_count=$( jq ' length' " $OUTDIR /work-dir/build-sequence-summary.json" )
140+ if [ " $skipped_count " != " $total_count " ]; then
141+ echo " Expected all $total_count packages to be skipped, but only $skipped_count were marked as skipped" 1>&2
142+ echo " Contents of build-sequence-summary.json:" 1>&2
143+ jq ' .' " $OUTDIR /work-dir/build-sequence-summary.json" 1>&2
144+ pass=false
145+ fi
146+ else
147+ echo " build-sequence-summary.json file not found" 1>&2
148+ pass=false
149+ fi
150+
117151$pass
0 commit comments