ci/lava: Always validate the lava job
Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15938>
This commit is contained in:

committed by
Marge Bot

parent
805de830c9
commit
33a1c51e3e
@@ -384,13 +384,13 @@ def main(args):
|
|||||||
if args.dump_yaml:
|
if args.dump_yaml:
|
||||||
print("LAVA job definition (YAML):")
|
print("LAVA job definition (YAML):")
|
||||||
print(hide_sensitive_data(job_definition))
|
print(hide_sensitive_data(job_definition))
|
||||||
|
job = LAVAJob(proxy, job_definition)
|
||||||
|
|
||||||
|
if errors := job.validate():
|
||||||
|
fatal_err(f"Error in LAVA job definition: {errors}")
|
||||||
|
print_log("LAVA job definition validated successfully")
|
||||||
|
|
||||||
if args.validate_only:
|
if args.validate_only:
|
||||||
job = LAVAJob(proxy, job_definition)
|
|
||||||
ret = job.validate()
|
|
||||||
if ret:
|
|
||||||
fatal_err("Error in LAVA job definition")
|
|
||||||
print("LAVA job definition validated successfully")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
ret = retriable_follow_job(proxy, job_definition)
|
ret = retriable_follow_job(proxy, job_definition)
|
||||||
|
Reference in New Issue
Block a user