Skip to content

Add protocol versions to {Worker,Serve}Proto::*Conn#9157

Merged
roberth merged 2 commits intoNixOS:masterfrom
obsidiansystems:protocol-versions
Oct 20, 2023
Merged

Add protocol versions to {Worker,Serve}Proto::*Conn#9157
roberth merged 2 commits intoNixOS:masterfrom
obsidiansystems:protocol-versions

Conversation

@Ericson2314
Copy link
Member

Motivation

This will allow us to factor out logic, which is currently scattered inline, into several reusable instances

Context

The tests are also updated to support versioning. Currently all Worker and Serve protocol tests are using the minimum version, since no version-specific serialisers have been created yet. But in subsequent commits when that changes, we will test individual versions to ensure complete coverage.

Priorities

Add 👍 to pull requests you find important.

@github-actions github-actions bot added with-tests Issues related to testing. PRs with tests have some priority store Issues and pull requests concerning the Nix store labels Oct 14, 2023
This makes the code clearer, and will help us replace them with proper
structs and get rid of the macros later.
This will allow us to factor out logic, which is currently scattered
inline, into several reusable instances

The tests are also updated to support versioning. Currently all Worker
and Serve protocol tests are using the minimum version, since no
version-specific serialisers have been created yet. But in subsequent
commits when that changes, we will test individual versions to ensure
complete coverage.
@thufschmitt thufschmitt added the idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. label Oct 20, 2023
@thufschmitt thufschmitt self-assigned this Oct 20, 2023
@roberth roberth merged commit 4d17c59 into NixOS:master Oct 20, 2023
@Ericson2314 Ericson2314 deleted the protocol-versions branch October 20, 2023 13:34
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2023-10-20-nix-team-meeting-minutes-96/34557/1

tebowy pushed a commit to tebowy/nix that referenced this pull request Jul 11, 2024
Add protocol versions to `{Worker,Serve}Proto::*Conn`

(cherry picked from commit 4d17c59)
Change-Id: I497af39deb792e50c157a1305d8c9e722798740b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. store Issues and pull requests concerning the Nix store with-tests Issues related to testing. PRs with tests have some priority

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants