Skip to content

Conversation

@ajyu
Copy link
Contributor

@ajyu ajyu commented Sep 24, 2018

Summary:
TestPilot runs stress tests in parallel. These fail for serialized tests because extracting (and subsequent deletion) of binary data during the process isn't threadsafe. Extract zips into tempfile to avoid this problem.

Also remove some accidentally checked in zips of a test that we didn't end up including for now

Differential Revision: D10013682

@ajyu ajyu changed the title fall through test when unzip fails [c2][serialized test] Add random suffix to output directory during comparison Sep 25, 2018
@ajyu
Copy link
Contributor Author

ajyu commented Sep 25, 2018

@houseroad for review

@houseroad
Copy link
Member

Do we have any other file we should remove, too, something like you have done in this PR?

@ajyu
Copy link
Contributor Author

ajyu commented Sep 25, 2018

I'll look through to double check for any other files we should remove.

Summary:
Pull Request resolved: pytorch#12021

TestPilot runs stress tests in parallel. These fail for serialized tests because extracting (and subsequent deletion) of binary data during the process isn't threadsafe. Add a random suffix to extracted directory to make it much more reliable. We use numpy.random because random is seeded for TestPilot runs.

Also remove some accidentally checked in zips of a test that we didn't end up including for now.

Reviewed By: houseroad

Differential Revision: D10013682

fbshipit-source-id: 842a02ff1bbe859dfdb0496858de1a09fd1573fd
@ajyu ajyu changed the title [c2][serialized test] Add random suffix to output directory during comparison [c2][serialized test] Use tempfile during serialized test comparison Sep 25, 2018
petrex pushed a commit to petrex/pytorch that referenced this pull request Sep 26, 2018
* upstream/master: (117 commits)
  Add full namespace resolution in CAFFE_DURATION (pytorch#12065)
  T33898723: Simple put operators for caffe2 stats (pytorch#12057)
  add narrow() support for sparse tensors re: pytorch#8853 (pytorch#11342)
  Fix ONNX bug, add symbolic for full
  Enable tracing of tensor factories with an out argument
  Fix warnings emitted when testing distributions (pytorch#12038)
  Unify versions across setup.py, libtorch, and libcaffe2 (pytorch#12053)
  add autodiff expressions for common operations (pytorch#11832)
  Blob doesn't allow access to destroyCall anymore (pytorch#11548)
  IValue can store Blob (pytorch#11414)
  Move Blob to ATen/core (pytorch#11924)
  Use tempfile during serialized test comparison (pytorch#12021)
  fix segfault when grad to a hook fn is None (pytorch#12028)
  Fallback CreateMutex/AtomicIter operators for mkl-dnn
  Unify all *_EXPORT and *_IMPORT macros across c++ backend (pytorch#12019)
  Add safety asserts for methods on TensorImpl which don't work on Variable. (pytorch#12058)
  Make USE_IDEEP work again (pytorch#12026)
  Fix "identifier following the 'template' keyword does not refer to a template" (pytorch#12037)
  Delete some unused variables. (pytorch#12059)
  Support TypeIdentifier::name() (pytorch#12036)
  ...
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants