@@ -131,8 +131,11 @@ def check_dawn():
131
131
if artifact in sums :
132
132
if os .path .isfile (artifact ):
133
133
s = checksum .filesum (artifact )
134
- if sums [artifact ]['commit' ] != DAWN_COMMIT or s != sums [artifact ]['sum' ]:
135
- messages .append (f"build/dawn.out/{ artifact } doesn't match checksum" )
134
+ if sums [artifact ]['commit' ] != DAWN_COMMIT :
135
+ messages .append (f"build/dawn.out/{ artifact } doesn't match dawn commit.\n note: expected { DAWN_COMMIT } , got { sums [artifact ]['commit' ]} " )
136
+ up_to_date = False
137
+ elif s != sums [artifact ]['sum' ]:
138
+ messages .append (f"build/dawn.out/{ artifact } doesn't match checksum.\n note: expected { sums [artifact ]['sum' ]} , got { s } " )
136
139
up_to_date = False
137
140
else :
138
141
messages .append (f"build/dawn.out/{ artifact } not found" )
@@ -346,12 +349,12 @@ def check_angle():
346
349
messages = ["malformed build/angle.out/angle.json" ]
347
350
up_to_date = False
348
351
elif sums ['commit' ] != ANGLE_COMMIT :
349
- messages .append ("build/angle.out doesn't match the required commit" )
352
+ messages .append (f "build/angle.out doesn't match the required angle commit. \n note: expected { ANGLE_COMMIT } , got { sums [ 'commit' ] } " )
350
353
up_to_date = False
351
354
else :
352
- s = checksum .dirsum ('.' , excluded_files = ["angle.json" ])
355
+ s = checksum .dirsum ('.' , excluded_files = ["angle.json" , ".DS_Store" ])
353
356
if s != sums ['sum' ]:
354
- messages .append ("build/angle.out doesn't match checksum" )
357
+ messages .append (f "build/angle.out doesn't match checksum. \n note: expected { sums [ 'sum' ] } , got { s } " )
355
358
up_to_date = False
356
359
else :
357
360
messages = [["build/angle.out/angle.json not found" ]]
0 commit comments