Kohei Tokunaga
14834e6085
debug: print error message on monitor instead of processes pkg
...
This can catch and print more errors on monitor side not only process-related
errors.
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-20 14:09:32 +09:00
Kohei Tokunaga
267e30a19c
debug: monitor: return last build result
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-20 14:09:28 +09:00
Kohei Tokunaga
b06a55cf53
debug: do not print error when error is nil
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-18 12:20:17 +09:00
Kohei Tokunaga
38137b29dd
debug: reload: print error message
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-18 11:25:24 +09:00
Kohei Tokunaga
198764f116
debug: update docs
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-13 12:09:36 +09:00
Kohei Tokunaga
0dd89f6029
monitor: print error information before launching monitor
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-13 12:09:35 +09:00
Kohei Tokunaga
8da8ee2aea
controller: return original error to preserve stacktrace
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-13 12:09:35 +09:00
Kohei Tokunaga
6db8569f09
process: Do not print error log when process is canceled
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-13 12:09:30 +09:00
Kohei Tokunaga
5a0e4c1023
debug: set on=error by default
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-13 12:09:27 +09:00
Kohei Tokunaga
ded91da575
exec, rollback: return error when no session found
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-13 12:09:26 +09:00
Kohei Tokunaga
508b2ef0c6
debug: Add buildx debug command
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-10-13 12:09:21 +09:00
Kohei Tokunaga
7843b5f417
debug: fix short-form custom command name on --invoke isn't used
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-08-30 18:41:16 +09:00
Kohei Tokunaga
3eb490153d
remote controller: Fix entrypoint interaction bugs
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-07-27 09:12:52 +09:00
Kohei Tokunaga
ca08eb65e2
docs: debug: update the output of help command to the latest message
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-06-27 15:17:01 +09:00
Kohei Tokunaga
6f37d9bee7
monitor: attach: fix typo in long help message
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-06-27 15:16:32 +09:00
Kohei Tokunaga and Justin Chadwell
e304a05d2a
docs: monitor: mention about long form flag
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-06-08 17:05:03 +01:00
Kohei Tokunaga and Justin Chadwell
14c1ea0e11
invoke: Allow JSON array for long form flags
...
This commit allows specifying a JSON array to the long-form arg, entrypoint and
envvars.
Non-JSON-array value can still be specified. Buildx treats the value as a JSON
array only when it can be parsed as a JSON array.
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-06-08 17:05:02 +01:00
Kohei Tokunaga
cafeedba79
monitor: add long help for commands
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-05-29 23:23:56 +09:00
Kohei Tokunaga and Justin Chadwell
8fd81f5cfd
controller: avoid "context canceled" error on cleanup
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-05-10 12:56:33 +01:00
Kohei Tokunaga
437fe55104
monitor: improve error messages
...
Print more understandable messages on error:
- When ps fails because the monitor doesn't attach to any session, print "no
attaching session" instead of "unknown ref".
- Avoid disconnect silently fails when the monitor doesn't attach to any
session. Print "no attaching session" error instead.
- Fix error message of "attach"'s arguments. ("server name must be passed" ->
"ID of session or process must be passed")
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-05-08 15:42:37 +09:00
Kohei Tokunaga
9f884edbbf
monitor: use shlex
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-27 11:36:38 +09:00
Kohei Tokunaga
0a7a2b1882
monitor: Move commands to a separated package
...
This commit moves monitor commands to `monior/commands` package.
Commands still need access to the `monitor` object and buildx controller so this
commit enables this via `Monitor` interface stored in `monitor/types`.
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-27 11:36:35 +09:00
Kohei Tokunaga
fd5d90c699
remove unused fields from ResultContext
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-15 15:38:18 +09:00
Kohei Tokunaga
06399630a2
remove ResultContextError
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-15 15:38:18 +09:00
Kohei Tokunaga
20693aa808
Fix monitor to be aware of Inspect API and invokations from errors
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-15 15:38:17 +09:00
Kohei Tokunaga
f373b91cc3
Add flags and subcommand
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-15 15:38:17 +09:00
Kohei Tokunaga
ce48b1ae84
Enable to restore build options from the server
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-15 15:38:05 +09:00
Kohei Tokunaga
b3340cc7ba
Enable to create container from error
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-15 15:36:33 +09:00
Kohei Tokunaga
1303715aba
Allow passing ResultContext from server to the client through grpcerror
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-15 15:11:32 +09:00
Kohei Tokunaga
8ba8659496
controller: Extract nested CommonOptions on controller API
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-04-03 21:35:04 +09:00
Kohei Tokunaga
e8f55a3cf7
monitor: Enable to exec into the container
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-03-02 19:30:29 +09:00
Kohei Tokunaga
17105bfc50
monitor: resolve paths arguments in client
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-03-02 19:13:45 +09:00
Kohei Tokunaga
b0728c96d3
controller: use os.Executable() for getting the exceutable path
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-03-01 15:49:07 +09:00
Kohei Tokunaga
a27b8395b1
Enable to run build and invoke in background
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2023-01-26 17:17:07 +09:00
Kohei Tokunaga
2f9d46ce27
invoke: add messages
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2022-08-08 17:35:28 +09:00
Kohei Tokunaga
387e1ecca6
Add --invoke option to launch a container from the build result
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2022-06-21 10:32:07 +09:00