Skip to content

Commit

Permalink
Fix ce-release-artifacts.json
Browse files Browse the repository at this point in the history
Add gate test to ensure this file remains json
  • Loading branch information
gilles-duboscq committed Aug 1, 2023
1 parent e8bf539 commit d673bd6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion graal-common.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"README": "This file contains definitions that are useful for the jsonnet CI files of the graal and graal-enterprise repositories.",
"ci": {
"overlay": "32dabcc2b777b4bbd934f634b3a07ad5ce4e8725"
"overlay": "caeb7fc170b36ed926bef9a9b4aefe82779db376"
}
}
4 changes: 2 additions & 2 deletions vm/ce-release-artifacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
},
{
"os": "windows",
"arch": "amd64",
"arch": "amd64"
}
]
},
Expand All @@ -343,7 +343,7 @@
},
{
"os": "windows",
"arch": "amd64",
"arch": "amd64"
}
]
},
Expand Down
7 changes: 7 additions & 0 deletions vm/mx.vm/mx_vm_gate.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
# questions.
#
# ----------------------------------------------------------------------------------------------------
import json
import shutil

import mx
Expand Down Expand Up @@ -448,6 +449,12 @@ def gate_body(args, tasks):
if t:
mx_sdk_vm.verify_graalvm_configs(suites=['vm', 'vm-enterprise'])

with Task('Vm: ce-release-artifacts.json', tasks, tags=['style']) as t:
if t:
with open(join(_suite.dir, 'ce-release-artifacts.json'), 'r') as f:
# check that this file can be read as json
json.load(f)

with Task('Vm: Basic GraalVM Tests', tasks, tags=[VmGateTasks.compiler]) as t:
if t and mx_sdk_vm_impl.has_component('GraalVM compiler'):
# 1. the build must be a GraalVM
Expand Down

0 comments on commit d673bd6

Please sign in to comment.