Commit graph

48 commits

Author SHA1 Message Date
Zhaofeng Li
b7262f6781 flake.nix: Update nixpkgs, remove nix-eval-jobs 2023-01-27 23:44:41 -07:00
Zhaofeng Li
bf6b88867d integration-tests: Wait for initial SSH to succeed 2023-01-27 23:44:41 -07:00
Zhaofeng Li
79e4ff1337 integrationt-tests: Allocate 4GB RAM to deployer 2023-01-27 23:44:41 -07:00
Zhaofeng Li
ddf00fec66 integration-tests: Refactor pkgs 2023-01-27 23:44:41 -07:00
Connor Prussin
4ce0b64e9a Fix test
Co-authored-by: Zhaofeng Li <hello@zhaofeng.li>
2023-01-27 13:43:12 -07:00
Zhaofeng Li
64c46fa016 integration-tests: Drop makeTest 2022-12-01 10:55:27 -07:00
Zhaofeng Li
2e62cede0a integration-tests: Misc fixes after modularization 2022-12-01 10:55:27 -07:00
Zhaofeng Li
d597bdf4b3 integration-tests: Migrate to nix.settings
We no longer test against 22.05 so this can be updated.
2022-12-01 01:57:56 -07:00
Zhaofeng Li
8b87f0de02 integration-tests: Start migration to modular test framework
Still need to migrate most logic in tools.nix to modules.
2022-12-01 01:57:56 -07:00
Zhaofeng Li
0ee3bb2e62 Update inotify-tools alias
No longer exists in unstable since https://github.com/NixOS/nixpkgs/pull/192681.
2022-09-28 18:47:42 -06:00
Zhaofeng Li
695ec0c36f Use --extra-experimental-features as opposed to --experimental-features 2022-09-18 17:27:46 -06:00
Zhaofeng Li
797297b609 integration-tests/flakes: Check pure evaluation 2022-08-17 01:09:43 -06:00
Zhaofeng Li
4cdb21be0b integration-tests/flakes: Eliminate slow nixpkgs copy 2022-08-17 01:09:43 -06:00
Zhaofeng Li
976849028b flake.nix: Add patched nix-eval-jobs with pure-eval fixes 2022-08-17 01:09:43 -06:00
Zhaofeng Li
247d5754db integration-tests/flakes: Fix impure use of <nixpkgs>
Caught by pure eval :)
2022-08-16 20:16:00 -06:00
Zhaofeng Li
bde5f4878e Bump flake deps
Stable is now at 22.05 as 21.11 is becoming EOL.
2022-07-01 16:31:13 -07:00
Zhaofeng Li
a17e4eda17 integration-tests/allow-apply-all: Fix test after change to error message 2022-06-21 21:29:01 -07:00
NeverBehave
dd7a2924ca feat(meta): add disallowApplyAll options
unify meta access for machinesFile

update release note and config name
2022-06-20 18:47:53 -07:00
Zhaofeng Li
dd3f4b252c host/local: Upload keys with sudo as well 2022-06-10 11:29:25 -07:00
Zhaofeng Li
7c1e91a09f integration-tests/apply: Forgot a node
Follows c6b61efc58
2022-06-02 16:43:29 -07:00
Zhaofeng Li
c6b61efc58 integration-tests/apply: Test building nodes with dots in names
Ref: #92
2022-06-02 16:39:45 -07:00
Zhaofeng Li
c1dc482c21 integration-tests: Add timeouts to SSH invocations
They occasionally become stuck, similar to NixOS/nixpkgs#171488.
2022-05-13 19:14:58 -07:00
Zhaofeng Li
11289dd7ff package.nix: Remove conditionals on nix-eval-jobs 2022-04-03 19:10:46 -07:00
Zhaofeng Li
4de46cd339 flake.lock: Update 2022-04-03 17:16:01 -07:00
Zhaofeng Li
017ccf142c flake.lock: Update
All downstream patches to nix-eval-jobs have been merged and released
as part of nix-eval-jobs 0.0.4.
2022-03-19 20:31:26 -07:00
Zhaofeng Li
2b281286d0
eval.nix: Add "${name}-key.service" units for keys (#51)
Fixes #48.
2022-02-16 10:23:27 -08:00
Zhaofeng Li
e7d4792634 flake.nix: Let's just patch the nix-eval-jobs in nixpkgs
Anything that links against Nix feels so fragile *shrugs*
2022-02-04 23:28:15 -08:00
Zhaofeng Li
ca6ad0de38 integration-tests: Fix flakes test in Nix 2.6
Using a symlink to a Nix store path no longer works.
2022-02-04 20:58:17 -08:00
Zhaofeng Li
6d5b7d7e3e integration-tests: Only enable documentation build in apply test
Otherwise it takes too long :/
2022-01-27 18:48:25 -08:00
Zhaofeng Li
0a955d0a4c integration-tests: Also run apply test against stable nixpkgs 2022-01-27 18:48:25 -08:00
Zhaofeng Li
6bff965a39 integration-tests: Enable documentation build
It makes sense to keep the tests as close to real life (docs enabled)
as possible.

Ref: #50
2022-01-25 15:03:59 -08:00
Zhaofeng Li
57b3ccca85 integration-tests: Test streaming evaluator 2022-01-22 17:50:53 -08:00
Zhaofeng Li
faf84d5718 flake.nix: Use own nix-eval-jobs fork
Currently we depend on changes that are not yet in a released
version of nix-eval-jobs. This pin needs to go before the 0.3
release.
2022-01-22 17:50:53 -08:00
Zhaofeng Li
7e15450fd2 default.nix: Switch to flake-compat
`package.nix` is kept in sync with the expression in upstream Nixpkgs.
2022-01-21 00:45:12 -08:00
Zhaofeng Li
98897bf4de Support building on target nodes
This partially addresses #33, and allows Colmena to be used more
easily on bandwidth-constrained hosts and macOS.

With `deployment.buildOnTarget = true;` deployment works fine from
macOS without designated builders, except when IFD is involved.
2022-01-01 16:41:35 -08:00
Zhaofeng Li
d5c6f7cb0c integration-tests: No need to sort 2021-12-18 14:35:06 -08:00
Zhaofeng Li
83ebe45f20 integration-tests/apply: Test GC root creation 2021-12-07 23:13:31 -08:00
Zhaofeng Li
372de58dff integration-tests: Make it easier to override pkgs and colmena 2021-12-07 23:13:31 -08:00
Zhaofeng Li
7433661aed Add deployment.keys.<name>.name 2021-12-05 01:14:12 -08:00
Zhaofeng Li
321d847563 integration-tests: Add flakes test 2021-12-05 01:14:12 -08:00
Zhaofeng Li
f849a757d2 integration-tests: Allow configuring the presence of nodes
For example, there's no need to spin up any target nodes when we
just want to test `colmena apply-local` on the deployer node.
2021-12-05 01:14:12 -08:00
Zhaofeng Li
8e5f168e5d integration-tests: Fix default.nix 2021-12-04 12:57:12 -08:00
Zhaofeng Li
dc57b489ea progress: Restore tty-detection after refactoring 2021-12-04 01:03:26 -08:00
Zhaofeng Li
ba16f50722 integration-tests: Cleanup, add parallelism test 2021-12-04 01:03:26 -08:00
Zhaofeng Li
2bba64a002 nix: Fix deployment parallelization 2021-12-02 23:49:46 -08:00
Zhaofeng Li
5b2d8d75e7 integration-tests: Add default.nix 2021-12-02 12:48:13 -08:00
Zhaofeng Li
ad124544f5 integration-tests: More elaborate tests 2021-11-22 13:39:40 -08:00
Zhaofeng Li
430a91cbad Add integration tests 2021-11-22 01:53:08 -08:00