Skip to content

chore: add --env-var-override and --port-override flags to local run#5201

Merged
mergify[bot] merged 23 commits intoaws:mainlinefrom
dannyrandall:chore/run-env-override
Aug 22, 2023
Merged

chore: add --env-var-override and --port-override flags to local run#5201
mergify[bot] merged 23 commits intoaws:mainlinefrom
dannyrandall:chore/run-env-override

Conversation

@dannyrandall
Copy link
Copy Markdown
Contributor

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.

@dannyrandall dannyrandall requested a review from a team as a code owner August 17, 2023 19:14
@dannyrandall dannyrandall requested review from CaptainCarpensir and removed request for a team August 17, 2023 19:14
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 17, 2023

🍕 Here are the new binary sizes!

Name New size (kiB) size (kiB) Delta (%)
macOS (amd) 51664 51488 +0.34
macOS (arm) 51864 51680 +0.36
linux (amd) 45484 45324 +0.35
linux (arm) 43780 43588 +0.44
windows (amd) 42288 42144 +0.34

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 17, 2023

Codecov Report

❌ Patch coverage is 93.93939% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.71%. Comparing base (ce4e180) to head (cf31861).
⚠️ Report is 337 commits behind head on mainline.

Files with missing lines Patch % Lines
internal/pkg/cli/local_run.go 94.96% 7 Missing ⚠️
internal/pkg/cli/flag.go 90.47% 2 Missing ⚠️
internal/pkg/ecs/ecs.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           mainline    #5201      +/-   ##
============================================
+ Coverage     69.50%   69.71%   +0.21%     
============================================
  Files           295      296       +1     
  Lines         43941    44018      +77     
  Branches        286      286              
============================================
+ Hits          30539    30686     +147     
+ Misses        11909    11842      -67     
+ Partials       1493     1490       -3     

☔ 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.

Comment thread internal/pkg/cli/local_run.go Outdated
Comment thread internal/pkg/cli/local_run.go Outdated
Comment thread internal/pkg/cli/local_run.go
Comment thread internal/pkg/cli/local_run.go Outdated
Comment thread internal/pkg/cli/local_run.go
Comment thread internal/pkg/cli/local_run.go Outdated
Comment thread internal/pkg/ecs/ecs.go
Comment thread internal/pkg/cli/local_run.go Outdated
Copy link
Copy Markdown
Contributor

@Lou1415926 Lou1415926 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just a question!

Comment thread internal/pkg/cli/local_run.go Outdated
Comment thread internal/pkg/cli/local_run.go Outdated
Comment thread internal/pkg/cli/flag.go
Comment on lines +452 to +456
func (p *portOverrides) Type() string {
return "list"
}

func (p *portOverrides) String() string {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dumb question: where are they used 👀 !

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

honestly a great question - i tried to figure it out but don't understand why String() is called. They are required to implement the interface: https://pkg.go.dev/github.com/spf13/pflag#Value.

Type() is called when you do --help and is printed next to the flag name
String() is called when parsing the flags, but it's never printed anywhere ¯\(ツ)/¯ maybe there's some debugging output or something but i haven't seen it

@Lou1415926 Lou1415926 added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Aug 22, 2023
@dannyrandall dannyrandall removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Aug 22, 2023
@mergify mergify Bot merged commit 5d727f3 into aws:mainline Aug 22, 2023
@dannyrandall dannyrandall deleted the chore/run-env-override branch August 22, 2023 19:15
mergify Bot pushed a commit that referenced this pull request Aug 22, 2023
Builds on top of #5201, the diff will get much smaller once that PR is merged.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
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.

6 participants