From a49a85ed0036828d9d820097ee3393ea5113d3a4 Mon Sep 17 00:00:00 2001 From: Guanheng Zhang Date: Thu, 4 Mar 2021 12:08:52 -0800 Subject: [PATCH] rename the raw_datasets file --- .circleci/config.yml | 8 ++++---- .circleci/config.yml.in | 8 ++++---- test/asset/{raw_datasets.json => raw_datasets.txt} | 0 test/common/cache_utils.py | 4 ++-- test/data/test_builtin_datasets.py | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) rename test/asset/{raw_datasets.json => raw_datasets.txt} (100%) diff --git a/.circleci/config.yml b/.circleci/config.yml index ca740c379c..1a335a8056 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -370,7 +370,7 @@ jobs: - run: name: Exit if cache exists command: | - FILE=.data/cache_status_file.json + FILE=.data/cache_status_file.txt if test -f "$FILE"; then cat $FILE circleci step halt @@ -400,7 +400,7 @@ jobs: no_output_timeout: 30m command: | .circleci/unittest/linux/scripts/generate_cache.sh - cat .data/cache_status_file.json + cat .data/cache_status_file.txt - save_cache: key: data-linux-v1-{{ checksum ".circleci-daily" }} @@ -495,7 +495,7 @@ jobs: - run: name: Exit if cache exists command: | - FILE=.data/cache_status_file.json + FILE=.data/cache_status_file.txt if test -f "$FILE"; then cat $FILE circleci step halt @@ -525,7 +525,7 @@ jobs: no_output_timeout: 30m command: | .circleci/unittest/windows/scripts/generate_cache.sh - cat .data/cache_status_file.json + cat .data/cache_status_file.txt - save_cache: key: data-windows-v1-{{ checksum ".circleci-daily" }} diff --git a/.circleci/config.yml.in b/.circleci/config.yml.in index 6fe1e01ac3..8e3941c941 100644 --- a/.circleci/config.yml.in +++ b/.circleci/config.yml.in @@ -370,7 +370,7 @@ jobs: - run: name: Exit if cache exists command: | - FILE=.data/cache_status_file.json + FILE=.data/cache_status_file.txt if test -f "$FILE"; then cat $FILE circleci step halt @@ -400,7 +400,7 @@ jobs: no_output_timeout: 30m command: | .circleci/unittest/linux/scripts/generate_cache.sh - cat .data/cache_status_file.json + cat .data/cache_status_file.txt - save_cache: {% raw %} key: data-linux-v1-{{ checksum ".circleci-daily" }} @@ -495,7 +495,7 @@ jobs: - run: name: Exit if cache exists command: | - FILE=.data/cache_status_file.json + FILE=.data/cache_status_file.txt if test -f "$FILE"; then cat $FILE circleci step halt @@ -525,7 +525,7 @@ jobs: no_output_timeout: 30m command: | .circleci/unittest/windows/scripts/generate_cache.sh - cat .data/cache_status_file.json + cat .data/cache_status_file.txt - save_cache: {% raw %} key: data-windows-v1-{{ checksum ".circleci-daily" }} diff --git a/test/asset/raw_datasets.json b/test/asset/raw_datasets.txt similarity index 100% rename from test/asset/raw_datasets.json rename to test/asset/raw_datasets.txt diff --git a/test/common/cache_utils.py b/test/common/cache_utils.py index 982ebcfadd..edc8411c63 100644 --- a/test/common/cache_utils.py +++ b/test/common/cache_utils.py @@ -3,7 +3,7 @@ import torchtext from .parameterized_utils import load_params -CACHE_STATUS_FILE = '.data/cache_status_file.json' +CACHE_STATUS_FILE = '.data/cache_status_file.txt' def check_cache_status(): @@ -21,7 +21,7 @@ def generate_data_cache(): if os.path.exists(CACHE_STATUS_FILE): return - raw_data_info = load_params('raw_datasets.json') + raw_data_info = load_params('raw_datasets.txt') cache_status = {} for info in raw_data_info: info = info.args[0] diff --git a/test/data/test_builtin_datasets.py b/test/data/test_builtin_datasets.py index 268588e7ce..c2a874048c 100644 --- a/test/data/test_builtin_datasets.py +++ b/test/data/test_builtin_datasets.py @@ -156,7 +156,7 @@ def test_raw_ag_news(self): del train_iter, test_iter @parameterized.expand( - load_params('raw_datasets.json'), + load_params('raw_datasets.txt'), name_func=_raw_text_custom_name_func) def test_raw_text_classification(self, info): dataset_name = info['dataset_name']