This repository was archived by the owner on Oct 10, 2025. It is now read-only.
Commit ad974e0
committed
feat: [#24] improve UX by adding automatic waiting to deployment commands
Add intelligent waiting logic to prevent premature command execution:
Infrastructure improvements:
- Add wait_for_vm_ip() and wait_for_cloud_init_completion() to shell-utils.sh
- Enhance provision-infrastructure.sh with automatic VM readiness waiting
- Fix tofu output command working directory issue causing warning messages
- Add SKIP_WAIT parameter support for advanced users who want faster execution
Application improvements:
- Enhance deploy-app.sh with conditional service health waiting
- Improve deployment logging and progress feedback
- Maintain existing wait_for_services functionality with better UX
Makefile integration:
- Add SKIP_WAIT parameter support to infra-apply and app-deploy targets
- Provide user-friendly messaging about waiting behavior
- Enable advanced users to bypass waiting with SKIP_WAIT=true
Testing updates:
- Update E2E tests to use centralized waiting functions
- Ensure tests validate both default waiting and skip-wait scenarios
- Maintain comprehensive test coverage for improved workflow
User experience impact:
- Eliminates manual waiting between make infra-apply → make app-deploy → make app-health-check
- Provides clear progress feedback during deployment operations
- Preserves advanced user workflow with optional skip functionality
- Fixes confusing output messages caused by working directory bug
This resolves the poor UX where deployment commands would fail if run too quickly,
implementing Solution 1 from the GitHub issue analysis.1 parent 826f054 commit ad974e0
File tree
6 files changed
+258
-144
lines changed- docs/guides
- infrastructure/scripts
- scripts
- tests
6 files changed
+258
-144
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
119 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
120 | 130 | | |
121 | 131 | | |
122 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
247 | 253 | | |
248 | 254 | | |
249 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
250 | 291 | | |
251 | 292 | | |
252 | 293 | | |
| |||
262 | 303 | | |
263 | 304 | | |
264 | 305 | | |
| 306 | + | |
| 307 | + | |
265 | 308 | | |
266 | 309 | | |
267 | 310 | | |
| |||
284 | 327 | | |
285 | 328 | | |
286 | 329 | | |
| 330 | + | |
| 331 | + | |
287 | 332 | | |
288 | 333 | | |
289 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
707 | 708 | | |
708 | 709 | | |
709 | 710 | | |
| 711 | + | |
| 712 | + | |
710 | 713 | | |
711 | 714 | | |
712 | 715 | | |
713 | 716 | | |
| 717 | + | |
714 | 718 | | |
715 | | - | |
| 719 | + | |
716 | 720 | | |
717 | 721 | | |
718 | 722 | | |
719 | 723 | | |
720 | | - | |
| 724 | + | |
721 | 725 | | |
722 | 726 | | |
723 | 727 | | |
724 | | - | |
| 728 | + | |
725 | 729 | | |
726 | 730 | | |
| 731 | + | |
727 | 732 | | |
728 | 733 | | |
729 | 734 | | |
| |||
734 | 739 | | |
735 | 740 | | |
736 | 741 | | |
| 742 | + | |
737 | 743 | | |
738 | 744 | | |
| 745 | + | |
739 | 746 | | |
740 | 747 | | |
741 | 748 | | |
| |||
752 | 759 | | |
753 | 760 | | |
754 | 761 | | |
| 762 | + | |
755 | 763 | | |
756 | 764 | | |
| 765 | + | |
757 | 766 | | |
758 | 767 | | |
759 | 768 | | |
| |||
775 | 784 | | |
776 | 785 | | |
777 | 786 | | |
| 787 | + | |
778 | 788 | | |
779 | | - | |
| 789 | + | |
780 | 790 | | |
781 | 791 | | |
782 | 792 | | |
| |||
817 | 827 | | |
818 | 828 | | |
819 | 829 | | |
820 | | - | |
821 | | - | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
822 | 840 | | |
823 | 841 | | |
824 | 842 | | |
| 843 | + | |
825 | 844 | | |
826 | | - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
827 | 848 | | |
828 | 849 | | |
829 | 850 | | |
| 851 | + | |
830 | 852 | | |
| 853 | + | |
831 | 854 | | |
832 | | - | |
| 855 | + | |
833 | 856 | | |
834 | 857 | | |
835 | 858 | | |
| |||
1018 | 1041 | | |
1019 | 1042 | | |
1020 | 1043 | | |
1021 | | - | |
| 1044 | + | |
1022 | 1045 | | |
1023 | 1046 | | |
| 1047 | + | |
1024 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1025 | 1052 | | |
1026 | 1053 | | |
1027 | 1054 | | |
| |||
1040 | 1067 | | |
1041 | 1068 | | |
1042 | 1069 | | |
| 1070 | + | |
1043 | 1071 | | |
1044 | 1072 | | |
1045 | 1073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
118 | 140 | | |
119 | 141 | | |
120 | | - | |
| 142 | + | |
121 | 143 | | |
122 | 144 | | |
123 | 145 | | |
| |||
0 commit comments