Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Fix KeepOnShrink tests#551

Closed
lukeyeager wants to merge 1 commit intofacebookarchive:masterfrom
lukeyeager:fix-keep-on-shrink-tests
Closed

Fix KeepOnShrink tests#551
lukeyeager wants to merge 1 commit intofacebookarchive:masterfrom
lukeyeager:fix-keep-on-shrink-tests

Conversation

@lukeyeager
Copy link
Contributor

Fix #417

@lukeyeager
Copy link
Contributor Author

/cc @sunwael looks like you're the author of 14480d6?

@sunwael
Copy link
Contributor

sunwael commented May 18, 2017

Can you re-trigger travis/appveyor to make sure failures are not related ?

@lukeyeager
Copy link
Contributor Author

The tests don't actually run on TravisCI (see #550) - it just builds. Do they run on Appveyor?

@lukeyeager lukeyeager closed this May 18, 2017
@lukeyeager lukeyeager reopened this May 18, 2017
@lukeyeager
Copy link
Contributor Author

@sunwael Travis passed now, for what that's worth. Can you just take a look at the code? I'd like to get this merged so I can have a discussion with someone about #550.

@facebook-github-bot
Copy link
Contributor

@bwasti has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@lukeyeager lukeyeager deleted the fix-keep-on-shrink-tests branch May 25, 2017 21:10
facebook-github-bot pushed a commit that referenced this pull request Jun 5, 2017
Summary:
*Fix #417 again (#551 was insufficient)*

Even after a reallocation, the data address can still be the same if malloc returns the same newly freed address.

* Be very explicit and careful about how we set these flags so they don't interfere with other tests
* Disable the failing check

This somewhat takes the teeth out of this test, since it no longer verifies that the reallocation actually occurs.

Test with:
```
blob_test --gtest_filter=TensorCPUTest*Shrink* \
    --gtest_shuffle --gtest_repeat=100 --gtest_throw_on_failure
```
/cc sunwael
Closes #723

Differential Revision: D5174953

Pulled By: akyrola

fbshipit-source-id: 3d875a52c8139e73db85550817dea3c837eb7eae
facebook-github-bot pushed a commit that referenced this pull request Jun 14, 2017
Summary:
See #723, #551, #417
```
[ RUN      ] TensorCPUTest/1.KeepOnShrink
/opt/caffe2/caffe2/core/blob_test.cc:362: Failure
Expected: (ptr) != (larger_ptr), actual: 0x24f7640 vs 0x24f7640
[  FAILED  ] TensorCPUTest/1.KeepOnShrink, where TypeParam = int (0 ms)
```
I haven't been able to reproduce locally or on TravisCI - only in our own test infrastructure. The fix is conceptually the same as #723. After reading through the code, I can't see any other checks which should fail this way.
Closes #801

Differential Revision: D5248106

Pulled By: akyrola

fbshipit-source-id: 0cd3e2c11e7ae3d924496843a311530f0e08a9da
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants