@@ -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
0 commit comments