-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable "File > open" tests for Replay tests #144
Comments
I looked into the failures. Failure type 1:
Failure type 2:
This happens because on the recording side, we write the event to the manifest after invoking the method, but the method mutates the supplied |
The data is serialized as a JSON array of integers, so I think an explicit conversion to
Maybe |
Ugh, there is yet another problem in that there's currently no way for record/replay to replicate mutations to method arguments. The recording site probably would need to encode the arguments before invocation and after, and then the replay side would need to figure out how to update arguments in-place. Or maybe there could be some less general mechanism since all of this would be needed only for |
* Enable more "File > open" tests When I added a `MemoryFileSystem`-based implementation of `RandomAccessFile` in #136, I enabled `File > open` tests for `test/memory_test.dart` but did not notice that various other tests depend on `MemoryFileSystem` and also explicitly disabled them. Enable them for `chroot_test.dart` and for `recording_test.dart`. Enabling them for `replay_test.dart` currently does not work due to other failures that I don't yet understand (see #144). * Fix type error when attempting to enable "File > open" replay tests Fix `ReplayFile.read`/`readSync` to explicitly convert the input (read from a JSON integer array) into a `Uint8List`. Fixes one of the failures in #144. * Fix analysis error * Disable "File > open" replay tests more selectively Record/replay currently doesn't work with `RandomAccessFile.readInto`, but we can enable other `RandomAccessFile` tests.
This is no longer relevant since record/replay was removed by #162. |
I added a
MemoryFileSystem
-based implementation ofRandomAccessFile
in #136. I enabledFile > Open
tests fortest/memory_test.dart
, but I did not notice that various other tests depend onMemoryFileSystem
and also explicitly disableFile > open
tests.Attempting to enable
File > open
tests intest/replay_test.dart
generates lots of errors that I don't yet understand:The text was updated successfully, but these errors were encountered: