-
Notifications
You must be signed in to change notification settings - Fork 60
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
test .zip archives #513
Draft
rjbs
wants to merge
17
commits into
andk:master
Choose a base branch
from
rjbs:archive-zip-tests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
test .zip archives #513
Conversation
This file contains 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
The previous method for checking this was generic, which is nice, but sort of verbose to use. Worse, though, I don't think it was reliable. That code, ->file_updated_ok and ->file_not_updated_ok, worked by keeping a cache of file stats -- but it didn't precompute those stats, it computed them on demand. So given this program: $pause = PAUSE::TestPause->new; do_stuff(); my $r1 = $pause->test_reindex; do_other_stuff(); $pause->file_updated_ok("A"); my $r2 = $pause->test_reindex; do_more_stuff(); my $r3 = $pause->test_reindex; Calling `->file_updated_ok("A")` at the end would test since the previous call. Calling `->file_updated_ok("B")` at the end would test starting from nothing. In reality, we only use this method for tracking 02packages, so I've added specific tracking of that file, with the check put onto the Result object, considering only what changed in the `test_reindex` call that created that Result.
(I want to test files we can't extract.)
...and add methods to check or print them.
(Specificaly: it is perl-like, not unauthorized real perl.)
That is: a new relase of perl-5, even if it contains a higher version of some dual-life package, should not replace the old package in the index, if it comes from a non-perl distribution.
This will not work until Module-Faker with chmod 0644-ing of files is released.
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.
This is blocked by a new Module-Faker, which is kinda waiting on miyagawa/Archive-Any-Create#3
Also, this is really just one commit on top of #510
Also, this exposes that
->untar
setsPERL_MAJOR_VERSION
but zip archives never have it set. Other discrepancies may show up, too.