Skip to content

Conversation

@bvtujo
Copy link
Contributor

@bvtujo bvtujo commented Aug 30, 2023

The new logic with no flags is:

  1. Check whether workload is uninitialized. If so, prompt for workload init.
  2. Check whether environment is uninitialized. If so, prompt for env init, then proceed directly to env deploy.
  3. Deploy workload.

Now, there is no extra prompt for environment deployment at any time. The behavior is purely opt-in, which actually I think makes more sense.

@bvtujo bvtujo requested a review from a team as a code owner August 30, 2023 20:38
@bvtujo bvtujo requested review from KollaAdithya and removed request for a team August 30, 2023 20:39
@huanjani
Copy link
Contributor

just confirming that this is only in the case of the user including the --env flag, already specifying an env

@github-actions
Copy link

github-actions bot commented Aug 30, 2023

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 51716 51720 ❤️ -0.01
macOS (arm) 51916 51916 ❤️ 0.00
linux (amd) 45536 45536 ❤️ 0.00
linux (arm) 43776 43780 ❤️ -0.01
windows (amd) 42336 42336 ❤️ 0.00

@bvtujo
Copy link
Contributor Author

bvtujo commented Aug 31, 2023

Are there any circumstances under which we would actually want to prompt for env deployment? When they initialize the env, it's implied that they have to deploy it for the command to complete.

Maybe we prompt for env deployment when they have not specified the environment flag?

@codecov-commenter
Copy link

codecov-commenter commented Aug 31, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.78%. Comparing base (3a73f6e) to head (1a2dd32).
⚠️ Report is 299 commits behind head on mainline.

Additional details and impacted files
@@            Coverage Diff            @@
##           mainline    #5262   +/-   ##
=========================================
  Coverage     69.78%   69.78%           
=========================================
  Files           296      296           
  Lines         44545    44539    -6     
  Branches        286      286           
=========================================
- Hits          31086    31082    -4     
+ Misses        11954    11951    -3     
- Partials       1505     1506    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mergify mergify bot merged commit e61b1aa into aws:mainline Aug 31, 2023
@bvtujo
Copy link
Contributor Author

bvtujo commented Aug 31, 2023

#5265

@bvtujo bvtujo changed the title chore: swap deployEnv to opt in when environment already exists fix: never prompt for env deployment Aug 31, 2023
KollaAdithya pushed a commit to KollaAdithya/copilot-cli that referenced this pull request Oct 18, 2023
…5262)

The new logic with no flags is:
1. Check whether workload is uninitialized. If so, prompt for workload init. 
2. Check whether environment is uninitialized. If so, prompt for env init, then proceed directly to env deploy.
3. Deploy workload. 

Now, there is no extra prompt for environment deployment at any time. The behavior is purely opt-in, which actually I think makes more sense.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants