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

[RHELC-1740] Use toolopts instead of env var #1387

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

r0x0d
Copy link
Member

@r0x0d r0x0d commented Sep 25, 2024

Following the strategy of moving all the environment variables to be inside the configuration file, this patch introduces the ability of converting the env_var to their toolopts counterpart. This will help in the deprecation later down the road when all users are comfortable enough using the config file.

Jira Issues:

Checklist

  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] or [HMS-] is part of the PR title
  • GitHub label has been added to help with Release notes
  • PR title explains the change from the user's point of view
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending if relevant

@r0x0d r0x0d requested a review from a team as a code owner September 25, 2024 13:39
@r0x0d
Copy link
Member Author

r0x0d commented Sep 25, 2024

WARNING

This contains a single commit from #1386. It is intended to indicate that we should merge #1386 first as it introduces the deprecation notice.

@r0x0d r0x0d added kind/feature New feature or request tests/sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`. labels Sep 25, 2024
@has-bot
Copy link
Member

has-bot commented Sep 25, 2024

/packit test --labels sanity


Comment generated by an automation.

@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch from 4fbc573 to be5cde1 Compare September 26, 2024 14:34
Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 97.14286% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.59%. Comparing base (0ec324a) to head (6785977).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...nvert2rhel/actions/post_conversion/hostmetering.py 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1387      +/-   ##
==========================================
+ Coverage   96.58%   96.59%   +0.01%     
==========================================
  Files          71       71              
  Lines        5097     5113      +16     
  Branches      882      883       +1     
==========================================
+ Hits         4923     4939      +16     
  Misses         98       98              
  Partials       76       76              
Flag Coverage Δ
centos-linux-7 92.06% <97.14%> (+0.02%) ⬆️
centos-linux-8 92.93% <97.14%> (+0.02%) ⬆️
centos-linux-9 93.05% <97.14%> (+0.02%) ⬆️

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.

@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch from be5cde1 to 280d2b9 Compare September 26, 2024 14:36
@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch 3 times, most recently from 2792a05 to b0e4529 Compare September 26, 2024 15:41
@r0x0d
Copy link
Member Author

r0x0d commented Sep 26, 2024

/packit test --labels sanity

@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch from b0e4529 to 6b6f809 Compare September 27, 2024 12:21
@r0x0d
Copy link
Member Author

r0x0d commented Sep 27, 2024

/packit test --labels sanity

@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch from 6b6f809 to e8be9f5 Compare September 27, 2024 17:22
@r0x0d
Copy link
Member Author

r0x0d commented Sep 27, 2024

/packit test --labels sanity

@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch 2 times, most recently from aa99855 to 7d1b930 Compare October 1, 2024 14:10
@r0x0d
Copy link
Member Author

r0x0d commented Oct 1, 2024

/packit test --labels sanity

@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch 2 times, most recently from ff258d6 to cf42f81 Compare October 10, 2024 16:46
@r0x0d r0x0d requested a review from hosekadam October 10, 2024 16:46
@r0x0d
Copy link
Member Author

r0x0d commented Oct 10, 2024

/packit test --labels sanity

@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch 2 times, most recently from ffe27cd to bec5606 Compare October 14, 2024 13:54
@r0x0d
Copy link
Member Author

r0x0d commented Oct 14, 2024

/packit test --labels sanity

@Venefilyn
Copy link
Member

@r0x0d
Copy link
Member Author

r0x0d commented Oct 17, 2024

Are failing integration tests related?

https://artifacts.osci.redhat.com/testing-farm/af02265b-4d59-418a-9bf1-b24e9559802a/

I don't think it should be related 🤔

r0x0d and others added 3 commits October 17, 2024 16:32
With the most recent work to migrate all environment variables to the
configuration file, we need now to warn the user that the variables will
be deprecated in order to use configuration file as our main place to
track configuarations.

This patch is introducing a very lightweight change to make sure that we
will be able modify the code in the future to remove all environment
variables.
Following the strategy of moving all the environment variables to be
inside the configuration file, this patch introduces the ability of
converting the env_var to their toolopts counterpart. This will help in
the deprecation later down the road when all users are comfortable
enough using the config file.
@r0x0d r0x0d force-pushed the use-toolopts-instead-of-env-var branch from bec5606 to 6785977 Compare October 17, 2024 19:32
@r0x0d
Copy link
Member Author

r0x0d commented Oct 17, 2024

/packit test --labels sanity

@Venefilyn
Copy link
Member

Are failing integration tests related?
artifacts.osci.redhat.com/testing-farm/af02265b-4d59-418a-9bf1-b24e9559802a

I don't think it should be related 🤔

That's what I suspect but it's only failing on el9 tests which passes in main branch. @danmyway WDYT

@Venefilyn Venefilyn merged commit d603f04 into oamg:main Oct 18, 2024
26 of 29 checks passed
@Venefilyn
Copy link
Member

Merging, saw the failing tests being the same in a different PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request tests/sanity PR ready to run the sanity test suit. Equivalent to `/packit test --labels sanity`.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants