mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11258 from ethereum/less-verbose-bytecode-comparison-output-in-ci
Less verbose bytecode comparison output in CI
This commit is contained in:
commit
cb85285ac6
@ -1006,18 +1006,39 @@ jobs:
|
||||
t_bytecode_compare:
|
||||
docker:
|
||||
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
|
||||
environment:
|
||||
REPORT_FILES: |
|
||||
bytecode-report-emscripten.txt
|
||||
bytecode-report-ubuntu-json.txt
|
||||
bytecode-report-ubuntu-cli.txt
|
||||
bytecode-report-osx-json.txt
|
||||
bytecode-report-osx-cli.txt
|
||||
bytecode-report-windows-json.txt
|
||||
bytecode-report-windows-cli.txt
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run: |
|
||||
diff --report-identical-files --from-file \
|
||||
bytecode-report-emscripten.txt \
|
||||
bytecode-report-ubuntu-json.txt \
|
||||
bytecode-report-ubuntu-cli.txt \
|
||||
bytecode-report-osx-json.txt \
|
||||
bytecode-report-osx-cli.txt \
|
||||
bytecode-report-windows-json.txt \
|
||||
bytecode-report-windows-cli.txt
|
||||
- run:
|
||||
name: Compare reports
|
||||
command: diff --brief --report-identical-files --from-file $REPORT_FILES
|
||||
- run:
|
||||
name: Print diff
|
||||
when: on_fail
|
||||
command: diff --unified=0 --report-identical-files --from-file $REPORT_FILES | head --lines 50
|
||||
- run:
|
||||
name: Install zip
|
||||
when: on_fail
|
||||
command: |
|
||||
apt update --quiet
|
||||
apt install zip --assume-yes
|
||||
- run:
|
||||
name: Bundle reports into a single package
|
||||
when: on_fail
|
||||
command: zip all-bytecode-reports.zip $REPORT_FILES
|
||||
- store_artifacts:
|
||||
# NOTE: store_artifacts does not support the 'when' attribute.
|
||||
# Fortunately when the artifact does not exist it just says "No artifact files found" and ignores it.
|
||||
path: all-bytecode-reports.zip
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
|
Loading…
Reference in New Issue
Block a user