https://flyte.org logo
#ask-the-community
Title
# ask-the-community
f

Frank Shen

02/27/2024, 4:49 PM
Hello, I am building a CICD Flyte workflow deployment run in Git Actions workflow. In the Git actions, I got error running the flytectl update launchplan command:
Copy code
flytectl update launchplan -p mlp -d development mlp-demo_train_lp --version 5aa6c427ad8c15bd0ac1ad2df00af536195a091f --activate
The error is:
Copy code
Error: update aborted by user
{"json":{},"level":"error","msg":"update aborted by user","ts":"2024-02-26T23:50:45Z"}
The following changes are to be applied.
--- before
+++ after
@@ -1,2 +1,2 @@
-state: 0
+state: 1
Continue? [y/n]: 
Error: Process completed with exit code 1.
However, I can run flytectl get launchplan & pyflyte register workflows commands fine in Git Actions. (I have installed flytectl 0.8+ and configured the .flyte/config.yaml in the Git actions workflow. And I can run the same flytectl update launchplan as above from my local PC fine. (flytectl 0.6+). Has anyone had this experience and what is the issue? It seems flytectl version 0.8+ is waiting for user input to confirm the launchplan update, while flytectl 0.6 is not.
Copy code
Continue? [y/n]:
Git actions workflow is not interactive terminal, so it’ll abort/fail.
j

Justin Boutwell

02/27/2024, 6:25 PM
you need to specify a
--force
flag to push the change without user input
the user input was added a few months ago, it also temporarily broke our CICD
f

Frank Shen

02/27/2024, 6:26 PM
Hi @Justin Boutwell, like this?
Copy code
flytectl update launchplan -p mlp -d development mlp-demo_train_lp --force --version 5aa6c427ad8c15bd0ac1ad2df00af536195a091f --activate
j

Justin Boutwell

02/27/2024, 6:28 PM
yeah that looks right
f

Frank Shen

02/27/2024, 6:28 PM
Thank you very much @Justin Boutwell!