Merged
Conversation
added 13 commits
December 16, 2024 19:36
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
This adds test case 002. The previous stress test was only for empty files; this patch generates small files with random content. Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
To prepare for: 1. ontrol the overlap between the upper layer and lower layer 2. generate .wh.* Relevant tests will be added later. Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Add tests for cases where file and directory have the same name. Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Add tests for deleting directories and files. Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
This test case is used to test the deletion of a directory/file first, followed by the creation of a directory/file with the same name. Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
hsiangkao
reviewed
Dec 18, 2024
| items.emplace_back(cur + "/" + std::string(dent->d_name)); | ||
| } while (dir->next()); | ||
| } | ||
| dir->closedir(); |
hsiangkao
reviewed
Dec 18, 2024
| node = new StressNode(cur, NODE_REGULAR); | ||
| if (!file || ! node) | ||
| LOG_ERROR_RETURN(0, false, "fail to open file or node `", cur); | ||
| ret = verify_gen_mod(node, file) && |
Member
There was a problem hiding this comment.
it should check if the whole stat() equals.
hsiangkao
approved these changes
Dec 18, 2024
Member
hsiangkao
left a comment
There was a problem hiding this comment.
The change itself looks good to me, but it might be better to improve as I mentioned above.
hsiangkao
reviewed
Dec 19, 2024
.github/workflows/cmake.yml
Outdated
| working-directory: ${{github.workspace}}/build | ||
| shell: bash | ||
| run: ctest -j8 --output-on-failure -C $BUILD_TYPE | ||
| run: sudo ctest -j8 --output-on-failure -C $BUILD_TYPE |
Member
There was a problem hiding this comment.
I have a bit concern of sudo permission to run this test.
Member
Author
There was a problem hiding this comment.
Done. sudo has been removed, and the way for creating tars has been slightly adjusted.
added 4 commits
December 21, 2024 17:04
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
The previous creation of tar files for each layer requires root privileges, and this patch changes that. This patch creates each layer's tar file in a "append" way. Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
hsiangkao
approved these changes
Dec 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Add stress testing for EROFS, including:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #
Please check the following list: