From b65186907fac0c8d8292b76d0b87a0a874bebef6 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Thu, 19 Nov 2020 10:46:59 +0100 Subject: [PATCH] Fix #3429: TaskCluster behavioral change wrt compression of artifacts --- taskcluster/tc-all-utils.sh | 9 +++++++-- taskcluster/tc-python_tflite-tests.sh | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/taskcluster/tc-all-utils.sh b/taskcluster/tc-all-utils.sh index 3f877c5a..504954d1 100755 --- a/taskcluster/tc-all-utils.sh +++ b/taskcluster/tc-all-utils.sh @@ -94,11 +94,16 @@ download_dependency_file() download_data() { - ${WGET} -P "${TASKCLUSTER_TMP_DIR}" "${model_source}" - ${WGET} -P "${TASKCLUSTER_TMP_DIR}" "${model_source_mmap}" + local _model_source_file=$(basename "${model_source}") + ${WGET} "${model_source}" -O - | gunzip --force > "${TASKCLUSTER_TMP_DIR}/${_model_source_file}" + + local _model_source_mmap_file=$(basename "${model_source_mmap}") + ${WGET} "${model_source_mmap}" -O - | gunzip --force > "${TASKCLUSTER_TMP_DIR}/${_model_source_mmap_file}" + cp ${DS_ROOT_TASK}/DeepSpeech/ds/data/smoke_test/*.wav ${TASKCLUSTER_TMP_DIR}/ cp ${DS_ROOT_TASK}/DeepSpeech/ds/data/smoke_test/pruned_lm.scorer ${TASKCLUSTER_TMP_DIR}/kenlm.scorer cp ${DS_ROOT_TASK}/DeepSpeech/ds/data/smoke_test/pruned_lm.bytes.scorer ${TASKCLUSTER_TMP_DIR}/kenlm.bytes.scorer + cp -R ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/test ${TASKCLUSTER_TMP_DIR}/test_sources } diff --git a/taskcluster/tc-python_tflite-tests.sh b/taskcluster/tc-python_tflite-tests.sh index fa087bb0..712fc4e0 100644 --- a/taskcluster/tc-python_tflite-tests.sh +++ b/taskcluster/tc-python_tflite-tests.sh @@ -12,7 +12,6 @@ set_ldc_sample_filename "${bitrate}" model_source=${DEEPSPEECH_TEST_MODEL//.pb/.tflite} model_name=$(basename "${model_source}") model_name_mmap=$(basename "${model_source}") -model_source_mmap=${DEEPSPEECH_PROD_MODEL_MMAP//.pbmm/.tflite} download_data