@@ -193,27 +193,23 @@ jobs:
193
193
- run :
194
194
name : Check JupyterLab build artifacts
195
195
command : |
196
- # Compare all files except 'Only in' cases
196
+ # 1. Compare all files except 'Only in' cases
197
197
diff -qr plotly/labextension-tmp/ plotly/labextension/ | grep -v '^Only in' > build_diff.txt || true
198
-
199
198
cat build_diff.txt
200
199
201
- # Filter out package.json from the global diff (we’ll check it separately)
200
+ # 2. Filter out package.json from overall diff
202
201
grep -v 'package.json' build_diff.txt > filtered_diff.txt
203
-
204
202
cat filtered_diff.txt
205
203
206
- # Check if package.json differs
207
- diff plotly/labextension/package.json plotly/labextension-tmp/package.json > package_json_diff.txt || true
208
-
204
+ # 3. Diff package.json in unified mode
205
+ diff -u plotly/labextension/package.json plotly/labextension-tmp/package.json > package_json_diff.txt || true
209
206
cat package_json_diff.txt
210
207
211
- # Allow only the "load": "static/..." line to differ
208
+ # 4. Filter out the line that changes ( "load": "static/...js")
212
209
grep -vE '"load": "static/.*\.js"' package_json_diff.txt > package_json_diff_filtered.txt
213
-
214
210
cat package_json_diff_filtered.txt
215
211
216
- # Check both filtered diffs
212
+ # 5. Final check
217
213
if [ -s filtered_diff.txt ] || [ -s package_json_diff_filtered.txt ]; then
218
214
echo "❌ Build artifacts differ:"
219
215
echo "--- Unexpected diffs ---"
@@ -222,10 +218,11 @@ jobs:
222
218
cat package_json_diff_filtered.txt
223
219
exit 1
224
220
else
225
- echo "✅ Build artifacts match expected output (ignoring allowed hash in package.json)."
221
+ echo "✅ Build artifacts match expected output (ignoring known 'load' hash in package.json)."
226
222
fi
227
223
228
224
225
+
229
226
# Percy
230
227
python_311_percy :
231
228
docker :
0 commit comments