Don't use incremental build in webgpu-cts/scripts/list.py

The incremental build can become stale for unknown reasons,
breaking presubmits. Disable it for now.

Bug: dawn:1395
Change-Id: I83a71da0006ee3184b8df2996d8e53b6efbcc20a
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89640
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Austin Eng 2022-05-10 18:17:54 +00:00 committed by Dawn LUCI CQ
parent 0a3cda9911
commit 552045a559
2 changed files with 5 additions and 7 deletions

View File

@ -32,7 +32,7 @@ finally:
def compile_src(out_dir):
# First, clean the output directory so deleted files are pruned from old builds.
shutil.rmtree(out_dir)
shutil.rmtree(out_dir, ignore_errors=True)
run_tsc_ignore_errors([
"--project",
@ -56,7 +56,7 @@ def compile_src_for_node(out_dir, additional_args=None, clean=True):
additional_args = additional_args or []
if clean:
# First, clean the output directory so deleted files are pruned from old builds.
shutil.rmtree(out_dir)
shutil.rmtree(out_dir, ignore_errors=True)
args = [
"--project",

View File

@ -35,11 +35,9 @@ def list_testcases(query, js_out_dir=None):
try:
logging.info('WebGPU CTS: Transpiling tools...')
compile_src_for_node(js_out_dir, [
'--incremental', '--tsBuildInfoFile',
os.path.join(js_out_dir, 'build.tsbuildinfo')
],
clean=False)
# TODO(crbug.com/dawn/1395): Bring back usage of an incremental build to
# speed up this operation. It was disabled due to flakiness.
compile_src_for_node(js_out_dir)
old_sys_path = sys.path
try: