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

Improve git-hashing/simple.sh test #10310

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

Ericson2314
Copy link
Member

Motivation

I realized it was checking NAR hashes before of added objects, which makes little sense --- we don't really care about ancillary NAR hashes.

Now, the bottom nix store add tests compare the CA field with a git hash to hashes calculated by Git. This matches top nix hash path ones in using git as a source of truth.

Context

#8919

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

I realized it was checking NAR hashes before of added objects, which
makes little sense --- we don't really care about ancillary NAR hashes.

Now, the bottom `nix store add` tests compare the CA field with a git
hash to hashes calculated by Git. This matches top `nix hash path` ones
in using git as a source of truth.
@Ericson2314 Ericson2314 added this to the git-hashing stabilisation milestone Mar 24, 2024
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Mar 24, 2024
@Ericson2314 Ericson2314 changed the title Fix git-hashing/simple.sh Improve git-hashing/simple.sh test Mar 24, 2024
@roberth roberth merged commit 641b0bd into NixOS:master Mar 24, 2024
10 checks passed
@Ericson2314 Ericson2314 deleted the fix-simple-git-hashing-test branch March 25, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants