From 4cf8fa1c94824d8dc30d8760b364177792a5da3b Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 10 Jun 2024 15:45:14 +0200 Subject: [PATCH] [GR-54630] Do not clean anything on `mx gate -o/--omit-clean` --- src/mx/_impl/mx.py | 2 +- src/mx/_impl/mx_gate.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mx/_impl/mx.py b/src/mx/_impl/mx.py index 3fc33e90..3630c71d 100755 --- a/src/mx/_impl/mx.py +++ b/src/mx/_impl/mx.py @@ -18173,7 +18173,7 @@ def alarm_handler(signum, frame): _CACHE_DIR = get_env('MX_CACHE_DIR', join(dot_mx_dir(), 'cache')) # The version must be updated for every PR (checked in CI) and the comment should reflect the PR's issue -version = VersionSpec("7.25.11") # GR-54613 Do not generate IntelliJ "artifacts" by default in mx intellijinit +version = VersionSpec("7.25.12") # GR-54630 _mx_start_datetime = datetime.utcnow() diff --git a/src/mx/_impl/mx_gate.py b/src/mx/_impl/mx_gate.py index b5aa5183..c41e7e8b 100644 --- a/src/mx/_impl/mx_gate.py +++ b/src/mx/_impl/mx_gate.py @@ -716,7 +716,8 @@ def _run_gate(cleanArgs, args, tasks): if mx.command_function('pylint')(['--primary']) != 0: mx.abort_or_warn('Pylint not configured correctly. Cannot execute Pylint task.', args.strict_mode) - gate_clean(cleanArgs, tasks, tags=[Tags.build, Tags.fullbuild, Tags.ecjbuild]) + if not args.noClean: + gate_clean(cleanArgs, tasks, tags=[Tags.build, Tags.fullbuild, Tags.ecjbuild]) with Task('Distribution Overlap Check', tasks, tags=[Tags.style]) as t: if t: