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

Create CommonSSHStoreConfig::createSSHMaster #10768

Merged

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented May 23, 2024

Motivation

By moving host to the config, we can do a lot further cleanups and dedups. This anticipates a world where we always go StoreReference -> *StoreConfig -> Store* rather than skipping the middle step too.

The new function is also useful for Hydra, not just deduplicating code in Nix.

Context

Progress on #10766

Progress on NixOS/hydra#1164

Priorities and Process

Add 👍 to pull requests you find important.

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

@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label May 23, 2024
@Ericson2314 Ericson2314 requested a review from roberth May 23, 2024 20:30
@Ericson2314 Ericson2314 force-pushed the legacy-ssh-expose-ssh-master-for-hydra branch from 8b4e3c1 to 140251d Compare May 24, 2024 13:05
By moving `host` to the config, we can do a lot further cleanups and
dedups. This anticipates a world where we always go `StoreReference` ->
`*StoreConfig` -> `Store*` rather than skipping the middle step too.

Progress on NixOS#10766

Progress on NixOS/hydra#1164
@Ericson2314 Ericson2314 force-pushed the legacy-ssh-expose-ssh-master-for-hydra branch from 140251d to 3e9c373 Compare May 27, 2024 20:13
@roberth roberth merged commit ef5c846 into NixOS:master May 29, 2024
10 checks passed
@Ericson2314 Ericson2314 deleted the legacy-ssh-expose-ssh-master-for-hydra branch May 29, 2024 21:02
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Jul 15, 2024
Progres towards NixOS#10766

I thought that NixOS#10768 achieved, but when I went to use this stuff (in
Hydra), turns out it did not. (Those `using FooConfig;` lines were not
working --- they are so finicky!) This PR gets the job done, and adds
some trivial unit tests to make sure I did what I intended.
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Jul 15, 2024
Progress towards NixOS#10766

I thought that NixOS#10768 achieved, but when I went to use this stuff (in
Hydra), turns out it did not. (Those `using FooConfig;` lines were not
working --- they are so finicky!) This PR gets the job done, and adds
some trivial unit tests to make sure I did what I intended.
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Jul 15, 2024
Progress towards NixOS#10766

I thought that NixOS#10768 achieved, but when I went to use this stuff (in
Hydra), turns out it did not. (Those `using FooConfig;` lines were not
working --- they are so finicky!) This PR gets the job done, and adds
some trivial unit tests to make sure I did what I intended.

I had to add add a header to expose `SSHStoreConfig`, after which the
preexisting `ssh-store-config.*` were very confusingly named files, so I
renamed them to `common-ssh-store-config.hh` to match the type defined
therein.
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Jul 15, 2024
Progress towards NixOS#10766

I thought that NixOS#10768 achieved, but when I went to use this stuff (in
Hydra), turns out it did not. (Those `using FooConfig;` lines were not
working --- they are so finicky!) This PR gets the job done, and adds
some trivial unit tests to make sure I did what I intended.

I had to add add a header to expose `SSHStoreConfig`, after which the
preexisting `ssh-store-config.*` were very confusingly named files, so I
renamed them to `common-ssh-store-config.hh` to match the type defined
therein.
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Jul 15, 2024
Progress towards NixOS#10766

I thought that NixOS#10768 achieved, but when I went to use this stuff (in
Hydra), turns out it did not. (Those `using FooConfig;` lines were not
working --- they are so finicky!) This PR gets the job done, and adds
some trivial unit tests to make sure I did what I intended.

I had to add add a header to expose `SSHStoreConfig`, after which the
preexisting `ssh-store-config.*` were very confusingly named files, so I
renamed them to `common-ssh-store-config.hh` to match the type defined
therein.
Ericson2314 added a commit to obsidiansystems/nix that referenced this pull request Jul 15, 2024
Progress towards NixOS#10766

I thought that NixOS#10768 achieved, but when I went to use this stuff (in
Hydra), turns out it did not. (Those `using FooConfig;` lines were not
working --- they are so finicky!) This PR gets the job done, and adds
some trivial unit tests to make sure I did what I intended.

I had to add add a header to expose `SSHStoreConfig`, after which the
preexisting `ssh-store-config.*` were very confusingly named files, so I
renamed them to `common-ssh-store-config.hh` to match the type defined
therein.
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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants