File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -263,9 +263,36 @@ jobs:
263263 just create ${{ matrix.python-env }}
264264 just install-tools ${{ matrix.python-env }}
265265
266+ - name : Store original generated files checksum
267+ run : |
268+ echo "==> Computing checksums of committed FlatBuffers files..."
269+ find autobahn/wamp/gen/ -name "*.py" -o -name "*.bfbs" | sort | xargs sha256sum > /tmp/original-checksums.txt
270+ echo "Found $(wc -l < /tmp/original-checksums.txt) committed generated files"
271+
266272 - name : Build FlatBuffers binary schema & Python wrappers
267273 run : just build-fbs
268274
275+ - name : Verify regenerated files match committed files
276+ run : |
277+ echo "==> Computing checksums of regenerated files..."
278+ find autobahn/wamp/gen/ -name "*.py" -o -name "*.bfbs" | sort | xargs sha256sum > /tmp/regenerated-checksums.txt
279+
280+ echo "==> Comparing checksums..."
281+ if diff -u /tmp/original-checksums.txt /tmp/regenerated-checksums.txt; then
282+ echo "✅ SUCCESS: All regenerated FlatBuffers files match committed versions exactly!"
283+ echo "This confirms the build process is reproducible and up-to-date."
284+ else
285+ echo "❌ FAILURE: Regenerated files differ from committed versions!"
286+ echo ""
287+ echo "This indicates either:"
288+ echo "1. The committed files were generated with a different flatc version"
289+ echo "2. The committed files were manually modified"
290+ echo "3. The build process has changed since files were last committed"
291+ echo ""
292+ echo "Please run 'just clean-fbs && just build-fbs' locally and commit the results."
293+ exit 1
294+ fi
295+
269296 - name : List FlatBuffers artifacts
270297 run : |
271298 flatc --version
You can’t perform that action at this time.
0 commit comments