Skip to content

Granular "feeling safe" control#5045

Open
happz wants to merge 8 commits into
mainfrom
granular-feeling-safe
Open

Granular "feeling safe" control#5045
happz wants to merge 8 commits into
mainfrom
granular-feeling-safe

Conversation

@happz

@happz happz commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Instead of one big all-or-nothing switch, finer control over various dangerous action is needed. Users can still allow everything, with --feeling-safe[=all], or allow individual dangerous functionalities.

Pull Request Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • include a release note

@happz happz added the ci | full test Pull request is ready for the full test execution label Jul 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a granular 'feeling safe' mechanism to allow enabling unsafe behaviors selectively. To improve the architecture, avoid using global state for tracking allowed functionalities. Make the DangerousFunctionality class and formatting functions context-aware by passing the Common object (or self) to retrieve options directly. Remove unused global variables, imports, and helper functions like allow_functionalities. Additionally, fix a typo in the TODO path for the local provision plugin and import Common directly under TYPE_CHECKING to avoid re-exports.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread tmt/utils/feeling_safe.py
Comment thread tmt/utils/feeling_safe.py
Comment thread tmt/utils/feeling_safe.py Outdated
Comment thread tmt/utils/feeling_safe.py Outdated
Comment thread tmt/utils/feeling_safe.py Outdated
Comment thread tmt/cli/_root.py Outdated
Comment thread tmt/steps/provision/connect.py Outdated
Comment thread tmt/steps/provision/local.py Outdated
Comment thread tmt/steps/provision/mock.py Outdated
Comment thread tmt/utils/feeling_safe.py Outdated
Comment thread tmt/utils/feeling_safe.py Outdated
Comment thread tmt/utils/feeling_safe.py Outdated
@happz
happz force-pushed the granular-feeling-safe branch from ed3d98f to 30c7fcc Compare July 7, 2026 08:18
@happz happz added this to planning Jul 7, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning Jul 7, 2026
@happz happz moved this from backlog to implement in planning Jul 7, 2026
@LecrisUT LecrisUT linked an issue Jul 8, 2026 that may be closed by this pull request
@happz happz moved this from implement to review in planning Jul 9, 2026
happz added 5 commits July 13, 2026 09:40
Instead of one big all-or-nothing switch, finer control over various
dangerous action is needed. Users can still allow everything, with
`--feeling-safe[=all]`, or allow individual dangerous functionalities.
@happz
happz force-pushed the granular-feeling-safe branch from 35b7784 to 79d239e Compare July 13, 2026 07:46
Comment thread tests/provision/mock/fedora-rawhide-x86_64/multiple-tests/test.sh Outdated
@happz
happz force-pushed the granular-feeling-safe branch from 79d239e to 482ae37 Compare July 13, 2026 08:41
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch granular-feeling-safe

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci | full test Pull request is ready for the full test execution

Projects

Status: review

Development

Successfully merging this pull request may close these issues.

More granular feeling-safe

1 participant