Skip to content
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

[Data Liberation] Anomaly Testing #2019

Open
6 tasks
zaerl opened this issue Nov 22, 2024 · 0 comments
Open
6 tasks

[Data Liberation] Anomaly Testing #2019

zaerl opened this issue Nov 22, 2024 · 0 comments
Labels
[Aspect] Data Liberation [Type] Tracking Tactical breakdown of efforts across the codebase and/or tied to Overview issues.

Comments

@zaerl
Copy link
Collaborator

zaerl commented Nov 22, 2024

SQLite has a relatively strict anomaly testing that we should ensure is covered in the Data Liberation plugin.

Out-Of-Memory Testing

  • Test with default memory limit (128 MB). Alert the user if the value is lower before importing.
  • Randomly set ini_set('memory_limit', '_a_small_one_M'); to simulate an OOM in one of the WP_Stream_Importer::next_step() and see if the system can recover.

I/O Error Testing

  • Simulate errors for copy() and other FS functions or use WP_Filesystem_Direct as a base for the plugin and create a testing class that generates errors at random.
  • Test rogue files such as zip bomb

Crash Testing

  • Trigger a fatal error like calling non_existent_function(); in the middle of an import and try to restart it from that point.

Compound failure tests

  • Stack 2, 3, 4 of the above errors in the same test run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Aspect] Data Liberation [Type] Tracking Tactical breakdown of efforts across the codebase and/or tied to Overview issues.
Projects
None yet
Development

No branches or pull requests

1 participant