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

Factor out ServeProto::Serialiser<UnkeyedValidPathInfo> and test #9560

Conversation

Ericson2314
Copy link
Member

Motivation

Better testing, Hydra dedup

Context

In the process, partially undo e89b5bd in that the ancient < 2.4 version is now supported again by the serializer again. LegacySSHStore, instead of also asserting that the version is at least 4, just checks that narHash is set.

This allows us to better test the serializer in isolation for both versions (< 4 and >= 4).

Priorities

Add 👍 to pull requests you find important.

@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Dec 7, 2023
In the process, partially undo e89b5bd
in that the ancient < 2.4 version is now supported again by the
serializer again. `LegacySSHStore`, instead of also asserting that the
version is at least 4, just checks that `narHash` is set.

This allows us to better test the serializer in isolation for both
versions (< 4 and >= 4).
Copy link
Contributor

@tomberek tomberek left a comment

Choose a reason for hiding this comment

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

Refactor. New methods support strictly more use cases. Helps de-dup parsing behavior. Will be helpful when trying to refactor the daemon protocol.

@Ericson2314 Ericson2314 merged commit 1399829 into NixOS:master Dec 8, 2023
8 checks passed
@Ericson2314 Ericson2314 deleted the serve-proto-unkeyed-valid-path-info-serializer branch December 8, 2023 16:33
Ericson2314 added a commit to NixOS/hydra that referenced this pull request Dec 9, 2023
tebowy pushed a commit to tebowy/nix that referenced this pull request Jul 11, 2024
…d-valid-path-info-serializer

Factor out `ServeProto::Serialiser<UnkeyedValidPathInfo>` and test

(cherry picked from commit 1399829)
Change-Id: I28e4ba5a681a90d81915a56e6dbaa5456d64f96d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
store Issues and pull requests concerning the Nix store
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants