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

[CLI Config Parity] migrate log-file legacy flag/config to new config #2062

Merged
merged 4 commits into from
Jun 28, 2024

Conversation

ashmeenkaur
Copy link
Collaborator

@ashmeenkaur ashmeenkaur commented Jun 25, 2024

Description

This PR is part of migration to new cobra/viper configs for CLI config parity.
Replaced usage of log-file flag stored in flagstorage.LogFile and mountConfig.LogConfig.FilePath to newConfig.Logging.FilePath.

Note: Post merging this PR, log-file flag will start taking precedence when both flag and config is set.

Link to the issue in case of a bug fix.

NA

Testing details

  1. Manual - Manually verified that the new flag is working
  2. Unit tests - Updated
  3. Integration tests - Ran via KOKORO

@ashmeenkaur ashmeenkaur added the execute-integration-tests Run only integration tests label Jun 25, 2024
@ashmeenkaur ashmeenkaur changed the base branch from master to create_new_config_from_legacy June 25, 2024 05:15
@ashmeenkaur ashmeenkaur changed the title migrate log file flag to config migrate log-file legacy flag/config to new config Jun 25, 2024
Copy link

codecov bot commented Jun 25, 2024

Codecov Report

Attention: Patch coverage is 76.92308% with 3 lines in your changes missing coverage. Please review.

Project coverage is 72.19%. Comparing base (ebe610c) to head (7816a90).
Report is 9 commits behind head on CLI_config_parity_release.

Files with missing lines Patch % Lines
cmd/legacy_main.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           CLI_config_parity_release    #2062      +/-   ##
=============================================================
+ Coverage                      72.14%   72.19%   +0.04%     
=============================================================
  Files                            100      100              
  Lines                          10965    10957       -8     
=============================================================
- Hits                            7911     7910       -1     
+ Misses                          2719     2715       -4     
+ Partials                         335      332       -3     
Flag Coverage Δ
unittests 72.19% <76.92%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@ashmeenkaur ashmeenkaur force-pushed the create_new_config_from_legacy branch from 1007005 to 163957e Compare June 25, 2024 08:32
@ashmeenkaur ashmeenkaur force-pushed the create_new_config_from_legacy branch from 163957e to 9256265 Compare June 25, 2024 13:06
Base automatically changed from create_new_config_from_legacy to CLI_config_parity_release June 26, 2024 11:39
@ashmeenkaur ashmeenkaur marked this pull request as ready for review June 26, 2024 14:28
@ashmeenkaur ashmeenkaur requested review from kislaykishore and a team as code owners June 26, 2024 14:28
@ashmeenkaur ashmeenkaur changed the title migrate log-file legacy flag/config to new config [CLI COnfig Parity] migrate log-file legacy flag/config to new config Jun 26, 2024
@ashmeenkaur ashmeenkaur removed the request for review from vadlakondaswetha June 26, 2024 14:31
@kislaykishore kislaykishore changed the title [CLI COnfig Parity] migrate log-file legacy flag/config to new config [CLI Config Parity] migrate log-file legacy flag/config to new config Jun 27, 2024
@ashmeenkaur ashmeenkaur merged commit eb4f8e5 into CLI_config_parity_release Jun 28, 2024
13 checks passed
@ashmeenkaur ashmeenkaur deleted the Migrate_log_file branch June 28, 2024 04:00
kislaykishore pushed a commit that referenced this pull request Jun 28, 2024
…#2062)

* removed log-file legacy usage

* migrate log file flag

* fix integration test

* add unit test
@ashmeenkaur ashmeenkaur added CLI Config Parity and removed execute-integration-tests Run only integration tests labels Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants