Skip to content

Comments

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

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:serve-proto-unkeyed-valid-path-info-serializer
Dec 8, 2023
Merged

Factor out ServeProto::Serialiser<UnkeyedValidPathInfo> and test#9560
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:serve-proto-unkeyed-valid-path-info-serializer

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
@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