Zhaofeng Li
dc80345dee
Add direct flake evaluation support
2024-11-07 15:24:37 -07:00
Zhaofeng Li
1f669d4c78
Bump schema version to v0.20241006
2024-11-07 15:24:37 -07:00
Zhaofeng Li
b0a62f234f
Merge pull request #224 from peterablehmann/main
...
Fix describe_node_list remaining nodes special case
2024-10-06 19:14:38 -06:00
Peter Lehmann
569c914f95
Fix describe_node_list remaining nodes special case
...
Colmena truncates left over node names when it reaches a certain char limit.
This in it self is a sensible behaivior, but it should only do so if there is more then one node name remaining.
2024-09-02 22:45:43 +02:00
benaryorg
7bb23baf40
lib.mdDoc has been deprecated since 24.05
...
`lib.mdDoc` emits this trace when called since 24.05:
```quote
trace: warning: lib.mdDoc will be removed from nixpkgs in 24.11. Option descriptions are now in Markdown by default; you can remove any remaining uses of lib.mdDoc.
```
Given that this was introduced with 22.11 and made obsolete in 24.05 with all prior versions being EoL at this point it should be safe to revert that change.
In any case the only result will be that anything ≥22.11 and <24.05 will be rendered without markup which I guess isn't the best, but given those are EoL systems it's not the worst.
Either way it gets rid of a *lot* of noise for 24.05 users in the trace, and for 24.11 and up it will remove dead code.
This reverts commit 7602e548a7
.
Signed-off-by: benaryorg <binary@benary.org>
2024-08-23 13:37:06 +00:00
Janik H.
bb642e43f9
make eval.nix more convnient to use for non-flake user
2024-03-24 03:51:58 +01:00
minhuw
afa7439c58
Support adding extra ssh options on node configurations
2024-03-09 13:54:21 +08:00
Patrik Keller
bf690423ea
Set error code > 0 when colmena exec fails
2024-01-15 15:02:20 +01:00
Zhaofeng Li
665603956a
Fix lint
2023-11-05 01:05:28 -07:00
Zhaofeng Li
15a95d6de5
Fix shell completion generation
...
Generating shell completions shouldn't require any Hive config.
Now `colmena gen-completions` gets included in the completions which
will be fixed later.
2023-11-05 01:00:05 -07:00
i1i1
95ded7fddb
Add node filter to build
and upload-keys
2023-10-23 14:31:30 -06:00
i1i1
495fc56f6e
Remove some commands on some profiles and add default goal for apply
2023-10-23 14:31:30 -06:00
i1i1
fc5c6d4544
Fix --nix-option
flag
2023-10-23 14:31:30 -06:00
i1i1
5e17c629b2
Remove todo for deprecated alias (aliases are hiddin by default)
2023-10-23 14:23:06 -06:00
i1i1
303cf14fc6
Remove empty options for subcommands
2023-10-23 14:23:06 -06:00
i1i1
c79a872438
Enable troubleshooting
2023-10-23 14:23:06 -06:00
i1i1
765a5d2ef3
Fix build and upload-keys
2023-10-23 14:23:06 -06:00
i1i1
935aa77e53
Initial support for clap derive up to the top
2023-10-23 14:23:06 -06:00
i1i1
1ad9301c62
Fix panic with hive path parsing and use value parser
2023-10-23 14:23:06 -06:00
i1i1
ce0782ccac
Fix upload-keys command
2023-10-23 14:23:06 -06:00
i1i1
ed23d1da67
Convert repl
arguments to type-safe clap derive
2023-10-23 14:23:06 -06:00
i1i1
d55555c1ed
Convert nix-info arguments to type-safe clap derive
2023-10-23 14:23:06 -06:00
i1i1
367c253a47
Convert exec arguments to type-safe clap derive
2023-10-23 14:23:06 -06:00
i1i1
5b8611744b
Convert eval arguments to type-safe clap derive
2023-10-23 14:23:06 -06:00
i1i1
cdfc1f15a1
Convert build arguments to type-safe clap derive
2023-10-23 14:23:06 -06:00
i1i1
87f4e3a676
Convert apply arguments to type-safe clap derive
2023-10-23 14:23:06 -06:00
i1i1
b80b57cb48
Convert apply-local arguments to type-safe clap derive
2023-10-23 14:23:06 -06:00
i1i1
1e38582451
Parse value for NodeFilter
with clap
2023-10-23 14:23:06 -06:00
i1i1
21df0ac5a5
Use clap for parsing Hive arguments
2023-10-23 14:23:06 -06:00
i1i1
9ddc53136a
Add trait implementations for Goal
2023-10-23 14:23:06 -06:00
i1i1
197010c492
Remove lazy-static
2023-10-18 15:41:54 -06:00
Zhaofeng Li
8d92dadb32
cargo clippy --all-targets --fix
...
Suggested in #169 , I just ran it myself.
Co-authored-by: i1i1 <vanyarybin1@live.ru>
2023-10-18 15:41:54 -06:00
Zhaofeng Li
85e5303557
job: Remove unneeded mut
2023-10-18 15:41:54 -06:00
Luca Di Carlo
df61f1793a
chore: dead link
2023-08-20 13:48:03 +02:00
Zhaofeng Li
19384f3ee2
Merge pull request #155 from oddlama/fix-overridden-nodes
2023-07-01 09:13:13 -06:00
oddlama
c6f42e447d
fix: allow specialArgs and nodeSpecialArgs to override name and nodes
...
Co-authored-by: Zhaofeng Li <hello@zhaofeng.li>
2023-07-01 09:07:17 -06:00
emilylange
beb157dcb6
ssh: fix substitution when using experimental nix copy
2023-05-23 15:49:52 +02:00
oddlama
24900c5624
fix: remove usage of impure variable currentSystem in flakes
2023-02-02 00:27:29 +01:00
Zhaofeng Li
7602e548a7
hive: Mark all descriptions as Markdown
...
mdDoc didn't exist prior to 22.11 so we make it noop there.
Fixes #133 .
2023-01-29 12:19:27 -07:00
Connor Prussin
691ac99e4d
Use nixops implementation of key services
2023-01-27 13:43:12 -07:00
ThinkChaos
90c88ddd17
refactor: rename NixOptions to NixFlags
...
This helps differentiate in the code Nix's `--option` and other CLI
flags (previously referred to as options).
2022-11-13 16:53:04 -07:00
ThinkChaos
d73fa5d74f
cli: Explicit value_name
for --node to be all caps like others
2022-11-13 16:53:04 -07:00
ThinkChaos
19bf776e8e
cli: Add --nix-option to allow passing arbitrary nix options
2022-11-13 16:53:00 -07:00
Zhaofeng Li
5432fe488e
error: Add backtraces to ChildFailure and ChildKilled
...
The plan is to have more hierarchical error types so it's easier
to find exactly where in the deployment flow an error occurred.
2022-10-29 13:42:47 -06:00
Zhaofeng Li
715e10561b
deployment: Pass job to host during upload_keys
2022-10-29 13:42:47 -06:00
Zhaofeng Li
2efa8d26c1
eval: Fix rustfmt
2022-10-29 02:36:11 -06:00
Zhaofeng Li
f6c13a20c3
eval: Use correct value parser for expression_file
...
Fallout from Clap 4.0 migration.
2022-10-29 02:24:57 -06:00
Zhaofeng Li
956c3363b8
deployment: Fail the evaluation job if any attribute fail to evaluate
...
nix-eval-jobs doesn't return non-zero exit code if any attribute
fail to evaluate. Let's just keep track ourselves.
Fixes #122 .
2022-10-19 17:16:25 -06:00
Zhaofeng Li
872949504b
Migrate to Clap 4.0
...
It was kind of a bumpy experience. Gradual migration to the Derive API
is coming soon.
2022-10-09 15:26:37 -06:00
Zhaofeng Li
bf95e2dce8
job: Fix job state update
...
Previously, if `old_state == new_state` the job metadata wasn't reinserted.
Just `get_mut` instead of removing and reinserting.
2022-10-09 15:26:37 -06:00