-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Multiple buildkite agent support #59358
Conversation
cc: @domenkozar |
Not using buildkite anymore sorry :) cc @rvl |
@Lucus16 This will be useful. It will need something added to the release notes though, especially for submodule options which have changed (such as It needs a rebase so I tried rebasing the branch on nixos-unstable, but got this error when deploying:
If I removed the change to Backward compatibility for a single-agent config looks good, but I wasn't able to test it. The documentation string "Attribute set of extra agents." isn't very descriptive. For example, it doesn't say what the attr name does, because each agent entry also has a name. |
|
bf4d60e
to
6de0594
Compare
The change in rename did indeed need to be dropped. I've updated the documentation. Regarding the release note you asked for, is that supposed to go into |
For the author, reviewers, and committers: this PR was scanned and appears to add a use of the deprecated
|
@Lucus16 the changes w.r.t. ssh keys make a lot of sense to me. Could you rebase this on latest master, and update the PR regarding |
We're using it on the nix-community org. /cc @adisbladis As long as there is a clear upgrade path, where errors can be resolved by reading the error message and following along, it's fine to break back-compat. |
The whole structure moved from `services.buildkite-agent` to `services.buildkite-agents`, wo should be fine :-)
That being said, some of the assertions still show the old naming, and we'd still need some release notes.
|
Closing in favour of #68378. |
Concluding comment because PR mentiones do not show up in notifications: This was implemented in #78373. |
Motivation for this change
For a clearer diff:
git diff master:nixos/modules/services/continuous-integration/buildkite-agent.nix HEAD:nixos/modules/services/continuous-integration/buildkite-agents.nix
Buildkite 3 supports multiple agents. We've patched nixpkgs to support this a while ago, but hadn't gotten around to contributing it back yet. There are still a few issues that I'd like opinions and/or contributions for:
buildkite2
package, I'm not sure if you're willing to do that at this time. Thebuildkite-agent
module now forwards to thebuildkite-agents
which I believe is not compatible withbuildkite2
.meta-data
string option was removed in favor of thetags
attrset option. Theopenssh
options were removed in favor of the optionalsshKeyPath
option because there seems to be no point in requiring a public key and a private key might not always be necessary either. I believe this may break old configurations.The initial five patches I've pushed runs in production on our servers, so they're fairly well tested, but if any changes are necessary, we may not be able to test them that easily.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)