Open eysi09 opened 1 year ago
@eysi09 I am unable to reproduce this. Just tried the steps from repro on vote example.
After i typed exit
to exit normally from dev console, running garden sync status
shows me sync as non-active
and gives me this output:
➜ vote git:(main) garden sync status
Getting sync statuses 📟
ℹ garden → Running in Garden environment local.default
ℹ providers → Getting status...
✔ providers → Cached (took 1.1 sec)
ℹ providers → Run with --force-refresh to force a refresh of provider statuses.
ℹ graph → Resolving actions and modules...
✔ graph → Done (took 0.7 sec)
The vote Deploy action has 1 sync configured:
→ Sync from src to /app/src in Deployment/vote is not active
→ Mode: two-way
Also, when i type exit
to get out of dev console, the logs show me that sync is disconnected:
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ ✓ deploy command completed successfully! ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈
ℹ deploy.vote → [sync]: Sync disconnected
✔ deploy.vote → Stopped sync
────────────────────────────────────────────────────────────────────── 🌼 🌸 🌷 🌺 🌻 ──────────────────────────────────────────────────────────────────────
🌷 Thanks for stopping by, love you! ❤️
This is odd.
Testing again and I don't see the "sync stopped" logs but the sync still seems to be stopped when I check afterwards.
Looks like two (possible related) issues then:
I'm on latest main
and I've tried both while logged in and logged out.
We are now showing a warning message when using Ctrl+C to either run sync stop
or use Ctrl+D.
It would still make sense to fix this.
Garden Bonsai (0.13) Bug
Current Behavior
Syncs stay active after I type
exit
to exit "normally" from the dev console. This can cause unwanted behaviour if you have reverse syncs enabled where the remote can overwrite files on your host. Because of this, I'm flagging as high priority.Expected behavior
Syncs are stopped.
Reproducible example
I tested this in the vote example. Basically:
garden deploy --sync
.exit
to exit from the dev console.garden sync status
and notice that the syncs are still active.Workaround
Manually stopping syncs with the
sync stop
command.