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: fix logic to better error handling when common config is missing when runs in hybrid mode #1444

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

jim-wang-intel
Copy link
Contributor

with better error message handling from the go-mod-bootstrap PR, there is some logic needs to be fixed to avoid the app being crashed.

Closes: #1443

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/app-functions-sdk-go/blob/main/.github/CONTRIBUTING.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
  • I am not introducing a new dependency (add notes below if you are)
  • I have added unit tests for the new feature or bug fix (if not, why?)
  • I have fully tested (add details below) this the new feature or bug fix (if not, why?)
  • I have opened a PR for the related docs change (if not, why?)

Testing Instructions

New Dependency Instructions (If applicable)

relate to go-mod-bootstrap issue when common config is missing from command line.

@jim-wang-intel jim-wang-intel added the enhancement New feature or request label Jul 19, 2023
@jim-wang-intel jim-wang-intel self-assigned this Jul 19, 2023
@jim-wang-intel jim-wang-intel marked this pull request as draft July 19, 2023 18:33
@jim-wang-intel
Copy link
Contributor Author

on DRAFT mode until the version of go-mod-bootstrap in go.mod includes the issue fixed for the PR

lenny-goodell
lenny-goodell previously approved these changes Jul 19, 2023
Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

@jim-wang-intel jim-wang-intel marked this pull request as ready for review July 19, 2023 21:10
@codecov-commenter
Copy link

Codecov Report

Merging #1444 (d7d7027) into main (10a2ee8) will decrease coverage by 0.08%.
The diff coverage is 37.50%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main    #1444      +/-   ##
==========================================
- Coverage   66.83%   66.76%   -0.08%     
==========================================
  Files          36       36              
  Lines        3088     3093       +5     
==========================================
+ Hits         2064     2065       +1     
- Misses        891      893       +2     
- Partials      133      135       +2     
Files Changed Coverage Δ
internal/app/service.go 57.52% <0.00%> (ø)
internal/app/triggerfactory.go 93.18% <0.00%> (-6.82%) ⬇️
internal/bootstrap/handlers/version.go 80.70% <0.00%> (-1.45%) ⬇️
internal/trigger/messagebus/messaging.go 62.50% <100.00%> (+0.63%) ⬆️

Copy link
Member

@lenny-goodell lenny-goodell left a comment

Choose a reason for hiding this comment

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

LGTM

@lenny-goodell lenny-goodell merged commit 37cecbb into edgexfoundry:main Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix logic with better error handling in go-mod-bootstrap when Common Config is missing
3 participants