Commit Graph

182 Commits

Author SHA1 Message Date
notgne2
4f956e0979
Merge pull request #59 from serokell/notgne2/wait-for-activate
Wait for activation
2021-02-09 02:56:35 -07:00
notgne2
7ee0f7eb4d
Re-add debug log for activate command erroring 2021-02-09 02:55:26 -07:00
notgne2
b74bb50a15
Clean up structure used for activation command error sending 2021-02-09 02:55:26 -07:00
notgne2
e798bb7d83
Still wait for activation command to end even in cases of errors 2021-02-09 02:55:26 -07:00
notgne2
c32d25ec28
Use oneshot signals to ensure SSH activate command has finished before deployment ends 2021-02-09 02:55:26 -07:00
notgne2
4ff0e5f90b
Wait for ssh_activate to complete and check for errors in magic_rollback activation (fixes #58 and #49) 2021-02-09 02:55:26 -07:00
notgne2
96a268db2d
Merge pull request #47 from lovesegfault/style-fixes
changed: assorted fixes
2021-02-08 23:47:32 -07:00
notgne2
8571c086c5
Merge branch 'master' into style-fixes 2021-02-08 23:46:13 -07:00
notgne2
4f4c1e3cf7
Merge pull request #63 from serokell/balsoft/lazy-eval
Evaluate deploy output lazily
2021-02-08 15:24:13 -07:00
Alexander Bantyev
99f2127cce
fixup! Evaluate deploy output lazily 2021-02-07 13:37:41 +03:00
Alexander Bantyev
80ab1d7538
Evaluate deploy output lazily
Currently, we evaluate the `#deploy` output strictly. This means
- Longer eval times
- Extraneous evaluation errors with `--skip-checks`
- `-- --impure` even when the path we're currently deploying is pure
- etc.

With this change, evaluation happens lazily -- we only evaluate the nodes
and profiles we really need. It is only implemented for flaky Nix, and
it is on by default. To get the old behavior, one can specify
`--strict-eval`.

I have tested that this indeed dramatically increases evaluation speed
in all of our repos, and removes the need to deploy Agora with
`--impure`. Hooray!
2021-02-06 02:48:57 +03:00
Bernardo Meurer
9c32ddeb05
changed: sort Cargo.toml 2021-01-26 10:33:06 -08:00
Bernardo Meurer
815814529e
changed: remove 2015-style extern crate 2021-01-26 10:33:05 -08:00
notgne2
c00e29a39d
Merge pull request #56 from serokell/notgne2/nix-check-build-and-tests
Add Nix-flake check for checking build and Rust tests
2021-01-26 05:28:30 -07:00
notgne2
dac53d9c9a
Add Nix-flake check for checking build and Rust tests 2021-01-26 04:51:08 -07:00
notgne2
4be67edc24
Merge pull request #41 from serokell/notgne2/document-hostname-dot
Document quotating profile or hostnames with a `.` in CLI
2021-01-24 18:54:36 -07:00
notgne2
b35fccfd67
Merge branch 'master' into notgne2/document-hostname-dot 2021-01-24 18:53:42 -07:00
notgne2
fc77473568
Add note about shell escaping quoted hostname or profile names 2021-01-24 18:24:31 -07:00
notgne2
a33127ad41
Merge pull request #45 from serokell/notgne2/cleanup
Code cleanup
2021-01-24 18:20:58 -07:00
notgne2
9850b951f5
Merge branch 'master' into notgne2/cleanup 2021-01-24 18:20:12 -07:00
notgne2
726d758768
Merge pull request #53 from serokell/notgne2/set-euo-pipefail
Run `set -euo pipefail` in generated activation scripts
2021-01-23 01:29:44 -07:00
notgne2
501bfa6b72
Run set -euo pipefail in generated activation scripts 2021-01-22 16:30:24 -07:00
notgne2
a1bb313c6a
Merge branch 'master' into notgne2/cleanup 2021-01-20 21:48:37 -07:00
notgne2
0f0c0e17e9
Merge pull request #50 from serokell/balsoft/update-inputs
Update all flake inputs to latest versions
2021-01-20 21:38:33 -07:00
Alexander Bantyev
397aaad8bb
Update all flake inputs to latest versions 2021-01-18 12:03:24 +03:00
notgne2
0ca5d41aa6
Merge branch 'master' into notgne2/cleanup 2021-01-14 13:21:29 -07:00
notgne2
8161b427c6
Merge pull request #48 from serokell/notgne2/raise-wait-timeout
Raise wait timeout
2021-01-14 13:21:06 -07:00
notgne2
3885d6608e
Raise wait timeout 2021-01-14 13:12:24 -07:00
notgne2
91f505401e
Only build wait command if magic_rollback is enabled 2021-01-14 12:37:59 -07:00
notgne2
bcdf7b8966
Merge pull request #42 from serokell/notgne2/fix-systemd-boot-entry
Remove default loader entry on NixOS activation
2021-01-10 23:45:31 -07:00
notgne2
4300218fc7
Merge branch 'master' into notgne2/fix-systemd-boot-entry 2021-01-10 23:44:22 -07:00
notgne2
48095042f2
Don't import PushProfileData 2021-01-08 19:11:35 -07:00
notgne2
dc26fba1bd
Remove unused DeployPathToActivatePathError 2021-01-08 19:08:34 -07:00
notgne2
f33081cc8c
Remove Error postfixes from error variants variants 2021-01-08 19:05:40 -07:00
notgne2
32af1d6a31
Use type definition for ToDeploy 2021-01-08 19:02:14 -07:00
notgne2
e03c66ffba
Struct-ify arguments to push_profile 2021-01-08 18:57:16 -07:00
notgne2
6854fea5c6
Struct-ify arguments to build_wait_command 2021-01-08 18:36:10 -07:00
notgne2
f7e5768712
Struct-ify arguments to build_activate_command 2021-01-08 18:33:34 -07:00
notgne2
1789551855
Fix trivial lint issues 2021-01-08 18:28:45 -07:00
notgne2
70c55363a9
Restructure project 2021-01-08 18:24:04 -07:00
notgne2
330a73e329
Check if systemd-boot is enabled before attempting to delete default entry line 2021-01-08 14:54:00 -07:00
notgne2
aa42daa800
Merge branch 'notgne2/new-logger' 2021-01-08 14:33:14 -07:00
notgne2
1021191b90
Use boot path from configuration and ignore failures when updating loader conf 2021-01-06 22:07:02 -07:00
notgne2
a9a5c4bd1e
Automatically filter out default line from loader.conf after NixOS activation 2021-01-05 16:44:00 -07:00
notgne2
3b08cef157
Document quotating profile or hostnames with a . in CLI (closes #10) 2021-01-01 19:35:22 -07:00
notgne2
12fee773d5
Format logs differently 2021-01-01 19:30:33 -07:00
notgne2
b6a6abe104
Modify activation logic to keep SSH connection alive for magic-rollback and avoid forking or disconnecting std{out,err} 2020-12-30 20:25:59 -07:00
notgne2
40d71ccdd7
Make printed deployment information be info level instead of warn 2020-12-27 13:04:54 -07:00
notgne2
4ba83f14ce
Merge pull request #35 from serokell/notgne2/fix-settings-merge
Fix the order in which settings are merged
2020-12-27 12:15:34 -07:00
notgne2
48548d1b15
Remove discriminant (they are already differenciated by binary name) 2020-12-27 11:33:55 -07:00