Skip to content

feat(report): add mutated files' properties#8

Merged
letFunny merged 6 commits intoletFunny:report-mutated-filesfrom
rebornplusplus:feat/report/mutated-files
Apr 5, 2024
Merged

feat(report): add mutated files' properties#8
letFunny merged 6 commits intoletFunny:report-mutated-filesfrom
rebornplusplus:feat/report/mutated-files

Conversation

@rebornplusplus
Copy link

@rebornplusplus rebornplusplus commented Mar 7, 2024

The paths with mutable: true property can be "mutated" with mutation scripts. Thus, the files matching those paths may have a different size and hash after the mutation scripts have been run. The report should reflect these changes by updating the entries of the mutated paths.

Paths can also have the until: mutate property. This means that those files are available until the mutation scripts have been run and are not present in the final file system. Thus, they should not be part of the report either.

This commit adds support for both -- it updates the changed properties of mutated files and makes sure not to add report entries for until: mutate.

@rebornplusplus
Copy link
Author

/cc @letFunny

Copy link
Owner

@letFunny letFunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a first pass, I still have to look at the tests carefully but so far it is looking great.

@rebornplusplus rebornplusplus requested a review from letFunny March 11, 2024 05:21
Copy link
Owner

@letFunny letFunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is coming along quite nicely. I have done a full in depth pass and added some comments, most of them minor.

Rafid Bin Mostofa added 2 commits April 4, 2024 14:19
The paths with ``mutable: true`` property can be "mutated" with mutation
scripts. Thus, the files matching those paths may have a different size
and hash after the mutation scripts have been run. The report should
reflect these changes by updating the entries of the mutated paths.

Paths can also have the ``until: mutate`` property. This means that
those files are available until the mutation scripts have been run and
are not present in the final file system. Thus, they should not be part
of the report either.

This commit adds support for both -- it updates the changed properties
of mutated files and makes sure not to add report entries for
``until: mutate``.
@rebornplusplus rebornplusplus force-pushed the feat/report/mutated-files branch from c266f70 to f230c3b Compare April 4, 2024 09:29
@rebornplusplus rebornplusplus changed the base branch from chisel-db-report-filter to main April 4, 2024 09:31
@rebornplusplus rebornplusplus marked this pull request as ready for review April 4, 2024 09:32
@rebornplusplus rebornplusplus requested a review from letFunny April 4, 2024 09:32
Copy link
Owner

@letFunny letFunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some more comments, looking almost done, thanks!

Copy link
Owner

@letFunny letFunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed one :P

@rebornplusplus rebornplusplus requested a review from letFunny April 4, 2024 11:48
Copy link
Owner

@letFunny letFunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last change required :). I will merge it tomorrow, thanks!

@rebornplusplus
Copy link
Author

Updated the PR.

I can raise the PR in the canonical/chisel repo if you want -- and then you can review/approve it there.

@letFunny letFunny changed the base branch from main to report-mutated-files April 5, 2024 07:25
@letFunny letFunny merged commit 6210b22 into letFunny:report-mutated-files Apr 5, 2024
letFunny added a commit that referenced this pull request Apr 16, 2024
The paths with ``mutable: true`` property can be "mutated" with mutation
scripts. Thus, the files matching those paths may have a different size
and hash after the mutation scripts have been run. The report should
reflect these changes by updating the entries of the mutated paths.

Paths can also have the ``until: mutate`` property. This means that
those files are available until the mutation scripts have been run and
are not present in the final file system. Thus, they should not be part
of the report either.

This commit adds support for both -- it updates the changed properties
of mutated files and makes sure not to add report entries for
``until: mutate``.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants