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

De-duplicate OnDiskCorpus #2802

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

BAGUVIX456
Copy link
Contributor

addresses #2434

@BAGUVIX456
Copy link
Contributor Author

@domenukk i hope i am going in the right direction. could you have a look at whether this was what you wanted?

Cargo.toml Show resolved Hide resolved
});

// New testcase, we need to save it.
let mut file_name = file_name_orig.clone();
let lockfile_name = format!(".{file_name}.lock");
Copy link
Member

Choose a reason for hiding this comment

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

Ideally we won't need a lockfile anymore for this dude

Copy link
Member

Choose a reason for hiding this comment

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

Ah wait, you're using the lockfile as a counter now? That would allow us to remove the file when no clients use it anymore, right? Maybe an interesting approach..

Copy link
Contributor Author

@BAGUVIX456 BAGUVIX456 Jan 2, 2025

Choose a reason for hiding this comment

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

I think this is the implementation that you originally proposed in the issue, or have I misunderstood it?

Copy link
Member

Choose a reason for hiding this comment

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

Ah right, looks like I have my bright moments...
In that case great! :)
Also, this feature should maybe be optional - it's not needed if testcases rarely get removed or their content changes seldomly.

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