spark: add artifact validation script
This commit is contained in:
1 parent
c3b5127987
commit
d4ffaa3015
1 file changed
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
import json
|
||||
import sys
|
||||
|
||||
path = '/root/troupe-standup/wizard-work/spark/verification_result_20261025.json'
|
||||
try:
|
||||
with open(path) as f:
|
||||
data = json.load(f)
|
||||
if data.get('status') == 'verified' and len(data.get('packages', {})) >= 4:
|
||||
print("VALID")
|
||||
sys.exit(0)
|
||||
else:
|
||||
print("INVALID")
|
||||
sys.exit(1)
|
||||
except Exception as e:
|
||||
print(f"ERROR: {e}")
|
||||
sys.exit(1)
|
||||
Reference in new issue
Block a user