Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit d8f9559

Browse files
authored
Remove real dataset caching and testing (#1587)
1 parent 7bd6b72 commit d8f9559

File tree

8 files changed

+0
-369
lines changed

8 files changed

+0
-369
lines changed

.circleci/config.yml

Lines changed: 0 additions & 97 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -361,44 +361,6 @@ jobs:
361361
conda activate python${PYTHON_VERSION}
362362
python -c "import torchtext"
363363

364-
cachesetup_linux:
365-
<<: *binary_common
366-
docker:
367-
- image: "pytorch/manylinux-cuda102"
368-
resource_class: 2xlarge+
369-
steps:
370-
- checkout
371-
- designate_upload_channel
372-
- load_conda_channel_flags
373-
- generate_cachekey
374-
- restore_cache:
375-
keys:
376-
{% raw %}
377-
- v1-linux-cache-index-{{ checksum ".cachekey" }}
378-
{% endraw %}
379-
- run:
380-
name: Generate cache
381-
no_output_timeout: 30m
382-
command: |
383-
if [ ! -f /root/.torchtext/cache/cache_status_file.json ] ; then
384-
.circleci/unittest/linux/scripts/setup_env.sh
385-
.circleci/unittest/linux/scripts/install.sh
386-
.circleci/unittest/linux/scripts/generate_cache.sh
387-
fi
388-
cat /root/.torchtext/cache/cache_status_file.json
389-
- save_cache:
390-
{% raw %}
391-
key: v1-linux-dataset-{{ checksum ".cachekey" }}
392-
{% endraw %}
393-
paths:
394-
- /root/.torchtext/cache
395-
- save_cache:
396-
{% raw %}
397-
key: v1-linux-cache-index-{{ checksum ".cachekey" }}
398-
{% endraw %}
399-
paths:
400-
- /root/.torchtext/cache/cache_status_file.json
401-
402364
unittest_linux:
403365
<<: *binary_common
404366
docker:
@@ -419,7 +381,6 @@ jobs:
419381
keys:
420382
{% raw %}
421383
- v1-linux-dataset-vector-{{ checksum ".cachekey" }}
422-
- v1-linux-dataset-{{ checksum ".cachekey" }}
423384
{% endraw %}
424385
- run:
425386
name: Run tests
@@ -432,50 +393,12 @@ jobs:
432393
{% endraw %}
433394
paths:
434395
- .vector_cache
435-
- /root/.torchtext/cache
436396
- run:
437397
name: Post process
438398
command: .circleci/unittest/linux/scripts/post_process.sh
439399
- store_test_results:
440400
path: test-results
441401

442-
cachesetup_windows:
443-
<<: *binary_common
444-
executor:
445-
name: windows-cpu
446-
steps:
447-
- checkout
448-
- designate_upload_channel
449-
- load_conda_channel_flags
450-
- generate_cachekey
451-
- restore_cache:
452-
keys:
453-
{% raw %}
454-
- v1-windows-cache-index-{{ checksum ".cachekey" }}
455-
{% endraw %}
456-
- run:
457-
name: Generate daily data Cache
458-
no_output_timeout: 30m
459-
command: |
460-
if [ ! -f C:/Users/circleci/.torchtext/cache/cache_status_file.json ] ; then
461-
.circleci/unittest/windows/scripts/setup_env.sh
462-
.circleci/unittest/windows/scripts/install.sh
463-
.circleci/unittest/windows/scripts/generate_cache.sh
464-
fi
465-
cat C:/Users/circleci/.torchtext/cache/cache_status_file.json
466-
- save_cache:
467-
{% raw %}
468-
key: v1-windows-dataset-{{ checksum ".cachekey" }}
469-
{% endraw %}
470-
paths:
471-
- C:/Users/circleci/.torchtext/cache
472-
- save_cache:
473-
{% raw %}
474-
key: v1-windows-cache-index-{{ checksum ".cachekey" }}
475-
{% endraw %}
476-
paths:
477-
- C:/Users/circleci/.torchtext/cache/cache_status_file.json
478-
479402
unittest_windows:
480403
<<: *binary_common
481404
executor:
@@ -495,7 +418,6 @@ jobs:
495418
keys:
496419
{% raw %}
497420
- v1-windows-dataset-vector-{{ checksum ".cachekey" }}
498-
- v1-windows-dataset-{{ checksum ".cachekey" }}
499421
{% endraw %}
500422

501423
- run:
@@ -509,7 +431,6 @@ jobs:
509431
{% endraw %}
510432
paths:
511433
- .vector_cache
512-
- C:/Users/circleci/.torchtext/cache
513434
- run:
514435
name: Post process
515436
command: .circleci/unittest/windows/scripts/post_process.sh

.circleci/regenerate.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,11 @@ def indent(indentation, data_list):
160160
def unittest_workflows(indentation=6):
161161
w = []
162162
for os_type in ["linux", "windows"]:
163-
w.append({
164-
f"cachesetup_{os_type}": {
165-
"name": f"cachesetup_{os_type}_py_any",
166-
"python_version": PYTHON_VERSIONS[0],
167-
}
168-
})
169-
170163
for i, python_version in enumerate(PYTHON_VERSIONS):
171164
w.append({
172165
f"unittest_{os_type}": {
173166
"name": f"unittest_{os_type}_py{python_version}",
174167
"python_version": python_version,
175-
"requires": [f"cachesetup_{os_type}_py_any"],
176168
}
177169
})
178170

.circleci/unittest/linux/scripts/generate_cache.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

.circleci/unittest/windows/scripts/generate_cache.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/common/cache_utils.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)