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

fix test-lib archive creation #1441

Merged
merged 2 commits into from
Jul 4, 2024
Merged

fix test-lib archive creation #1441

merged 2 commits into from
Jul 4, 2024

Conversation

Byron
Copy link
Member

@Byron Byron commented Jul 4, 2024

Previously there was a race condition that would cause archives to be created either with or without arguments, depending on which test was run first.

After its creation, they wouldn't be looked at again as on disk they would already be available in their usable form.

Fixes #1440.

… with arguments. (#1440)

Previously there was a race condition that would cause archives to be created either with
or without arguments, depending on which test was run first.

After its creation, they wouldn't be looked at again as on disk they would already be available
in their usable form.
@Byron Byron merged commit f87322e into main Jul 4, 2024
19 checks passed
@Byron Byron deleted the fix-1440 branch July 4, 2024 13:14
let link_entry_oid = hex_to_id("2e65efe2a145dda7ee51d1741299f848e5bf752e");
#[cfg(not(windows))]
let link_entry_mode = EntryKind::Link;
Copy link
Member

@EliahKagan EliahKagan Jul 4, 2024

Choose a reason for hiding this comment

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

As detailed in #1442 and mentioned in #1440 (comment), this changes the expected hash values to what I believe they should be on all platforms including Windows, but currently the repository that is created when the fixture script is actually run on Windows produces the situation described by the old values.

This comment is for reference in connection with #1442. I do not advocate the old code here be brought back.

(For some reason GitHub is not showing the whole diff here, even though I selected it when making this comment. Oh well.)

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, thank you! I yet have to catch up on the new issues though, to see if there is anything that can be done.

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.

gix-diff make_diff_repo test fixture archive is always regenerated
2 participants