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

fix: do not import 'insights.client.constants' in spec_cleaner #4267

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

xiangce
Copy link
Contributor

@xiangce xiangce commented Nov 12, 2024

  • it causes circular import issue when triggering data collection
    via 'insights-collect' command
  • instead of importing the constants from insights.client,
    this change sets the "rhsm_facts_file" to insights_config

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.18%. Comparing base (b88a6e8) to head (fdf1545).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4267      +/-   ##
==========================================
+ Coverage   77.15%   77.18%   +0.03%     
==========================================
  Files         762      762              
  Lines       41510    41511       +1     
  Branches     8773     8773              
==========================================
+ Hits        32027    32041      +14     
+ Misses       8426     8412      -14     
- Partials     1057     1058       +1     
Flag Coverage Δ
unittests 77.17% <100.00%> (+0.03%) ⬆️

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.

@xiangce xiangce force-pushed the cleaner_circular_import branch 2 times, most recently from f55716c to 166fd1c Compare November 12, 2024 09:08
- it causes circular import issue when triggering data collection
  via 'insights-collect' command
- instead of importing the constants from insights.client,
  this change sets the "rhsm_facts_file" to insights_config

Signed-off-by: Xiangce Liu <[email protected]>

rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
Signed-off-by: Xiangce Liu <[email protected]>

rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
@xiangce xiangce merged commit 0e7b8c3 into RedHatInsights:master Nov 14, 2024
15 checks passed
@xiangce xiangce deleted the cleaner_circular_import branch November 14, 2024 01:00
xiangce added a commit that referenced this pull request Nov 14, 2024
- it causes circular import issue when triggering data collection
  via 'insights-collect' command
- instead of importing the constants from insights.client,
  this change sets the "rhsm_facts_file" to insights_config

Signed-off-by: Xiangce Liu <[email protected]>

rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED

(cherry picked from commit 0e7b8c3)
xiangce added a commit that referenced this pull request Nov 14, 2024
- it causes circular import issue when triggering data collection
  via 'insights-collect' command
- instead of importing the constants from insights.client,
  this change sets the "rhsm_facts_file" to insights_config

Signed-off-by: Xiangce Liu <[email protected]>

rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED

(cherry picked from commit 0e7b8c3)
(cherry picked from commit 8b6c0ca)
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.

3 participants