borgbackup / borgbackup/borg

Automated tests for behaviour on I/O errors

Open
#1,527 2 comments 0 reactions 0 assignees View on GitHub
c: repository filesystem testsuite
Dominant language
Python
Stars
13.7k
Forks
875
Avg merge
11h 15m
Merged PRs (30d)
192

Description

From what I can see of the test suite, there do not seem to be any tests verifying that borg won't corrupt a repository if an unexpected I/O error of some kind occurs.

It would be really good to have some tests like this.

See [How SQLite Is Tested](https://www.sqlite.org/testing.html) for an impressive description of how they do it – this would be a great ultimate goal.

Meanwhile, it shouldn't be too hard to replace current explicit calls to `open()` etc. with a VFS layer that can be used to inject arbitrary I/O errors during testing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.