Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(container): automatic debugging on errors #11915

Merged
merged 9 commits into from
May 10, 2022
Merged

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented May 9, 2022

Description

Ref: #11899
Pulled out of #11900

This adds automatic conditional debugging to container.Run and configurable conditional debugging to container.RunDebug via the OnError, OnSuccess, Cleanup, and AutoDebug options.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@aaronc aaronc requested a review from a team as a code owner May 9, 2022 18:59
@github-actions github-actions bot added the C:depinject Issues and PR related to depinject label May 9, 2022
container/debug.go Outdated Show resolved Hide resolved
@alexanderbez
Copy link
Contributor

@aaronc let's merge once conflicts are resolved.

@alexanderbez
Copy link
Contributor

@codecov
Copy link

codecov bot commented May 10, 2022

Codecov Report

Merging #11915 (e9e7607) into main (6872cae) will increase coverage by 0.27%.
The diff coverage is 86.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #11915      +/-   ##
==========================================
+ Coverage   66.03%   66.30%   +0.27%     
==========================================
  Files         675      689      +14     
  Lines       71282    72303    +1021     
==========================================
+ Hits        47072    47943     +871     
- Misses      21530    21635     +105     
- Partials     2680     2725      +45     
Impacted Files Coverage Δ
container/build.go 75.51% <73.91%> (ø)
container/debug.go 80.00% <91.22%> (ø)
container/simple.go 100.00% <0.00%> (ø)
container/location.go 73.58% <0.00%> (ø)
container/module_dep.go 100.00% <0.00%> (ø)
container/provider_desc.go 100.00% <0.00%> (ø)
container/struct_args.go 98.29% <0.00%> (ø)
container/container.go 82.36% <0.00%> (ø)
container/one_per_module.go 76.00% <0.00%> (ø)
... and 7 more

@aaronc aaronc merged commit 40b5953 into main May 10, 2022
@aaronc aaronc deleted the aaronc/container-auto-debug branch May 10, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:depinject Issues and PR related to depinject
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants