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!: consume common config #4335

Merged
merged 2 commits into from
Feb 9, 2023

Conversation

ejlee3
Copy link
Contributor

@ejlee3 ejlee3 commented Feb 8, 2023

BREAKING CHANGE: removes the common config information for core services

closes #4263

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-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?) - bootstrap load for common config
  • 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?) - docs need to be added for common config

Testing Instructions

  1. run make docker to build the docker images
  2. In compose builder run make run no-secty dev for non-secure mode testing or make run dev for secure mode testing.
  3. ensure that all the services only have common config sections loaded into consul
  4. ensure that all services - core data, core-metadata, etc start up properly

New Dependency Instructions (If applicable)

@ejlee3 ejlee3 added this to the Minnesota milestone Feb 8, 2023
@lenny-goodell lenny-goodell removed this from the Minnesota milestone Feb 8, 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 job, just a few minor things.

cmd/core-command/res/configuration.toml Show resolved Hide resolved
cmd/core-command/res/configuration.toml Show resolved Hide resolved
StartupMsg = "This is the Core Command Microservice"
MaxResultCount = 1024
MaxRequestSize = 0 # Not curently used. Defines the maximum size of http request body in bytes
RequestTimeout = "45s"
Copy link
Member

Choose a reason for hiding this comment

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

@cloudxxx8 , Wow, we need to confirm that this override should be here.

cmd/core-data/res/configuration.toml Outdated Show resolved Hide resolved
cmd/core-data/res/configuration.toml Show resolved Hide resolved
cmd/core-data/res/configuration.toml Show resolved Hide resolved
internal/core/data/main.go Outdated Show resolved Hide resolved
BREAKING CHANGE: removes the common config information for core services

closes edgexfoundry#4263

Signed-off-by: Elizabeth J Lee <elizabeth.j.lee@intel.com>
@ejlee3 ejlee3 force-pushed the load-common-config branch 3 times, most recently from 3e465cb to 27d945e Compare February 9, 2023 04:50
Signed-off-by: Elizabeth J Lee <elizabeth.j.lee@intel.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov-commenter
Copy link

Codecov Report

Merging #4335 (f00b6e5) into main (966ddbc) will decrease coverage by 0.01%.
The diff coverage is 40.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #4335      +/-   ##
==========================================
- Coverage   43.59%   43.59%   -0.01%     
==========================================
  Files         116      116              
  Lines       10714    10719       +5     
==========================================
+ Hits         4671     4673       +2     
- Misses       5624     5627       +3     
  Partials      419      419              
Impacted Files Coverage Δ
internal/core/metadata/application/device.go 0.00% <ø> (ø)
internal/security/fileprovider/main.go 0.00% <0.00%> (ø)
internal/security/proxy/main.go 0.00% <0.00%> (ø)
internal/security/secretstore/main.go 0.00% <0.00%> (ø)
.../security/bootstrapper/command/setupacl/command.go 68.58% <100.00%> (+0.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lenny-goodell lenny-goodell changed the title feat: Push common config to config provider feat!: consume common config Feb 9, 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.

LGTM.

@lenny-goodell lenny-goodell merged commit 08c6b03 into edgexfoundry:main Feb 9, 2023
@farshidtz
Copy link
Member

The snap tests were failing with such error from several services: Feb 09 05:07:36 fv-az749-580 edgexfoundry.core-data[3802]: level=ERROR ts=2023-02-09T05:07:36.635856191Z app=core-data source=bootstrap.go:48 msg="failed to parse common config value for key IsCommonConfigReady: strconv.ParseBool: parsing \"\": invalid syntax"

Does this have something to do with the missing config bootstrapper (#4306) in the snap?

@lenny-goodell
Copy link
Member

Yes. This is being worked on today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust all services for Common Config
4 participants