-
Notifications
You must be signed in to change notification settings - Fork 148
lint check fail instead of warn #3661
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
base: main
Are you sure you want to change the base?
Conversation
I'm not sure we're ready for schema validation being a hard fail lint check because it will report many false positives :/ We need at least a way users could override it for a given repo, in-repo config file, or something, otherwise, it may be complicated. Imagine a |
📝 WalkthroughWalkthroughThis pull request updates the release documentation and error handling for the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant L as tmt-lint
participant C as Core.lint_validate
U->>L: Execute "tmt lint" command
L->>C: Validate fmf metadata
C-->>L: Return FAILURE outcome on invalid key
L-->>U: Exit with code 1
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (2)
docs/releases.rst
(1 hunks)tmt/base.py
(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
tmt/base.py (1)
tmt/lint.py (1)
LinterOutcome
(93-98)
⏰ Context from checks skipped due to timeout of 90000ms (63)
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: osh-diff-scan:fedora-rawhide-x86_64
- GitHub Check: testing-farm:fedora-41-x86_64:core
- GitHub Check: testing-farm:fedora-41-x86_64:core
- GitHub Check: testing-farm:fedora-41-x86_64:core
- GitHub Check: testing-farm:fedora-41-x86_64:internal-wow
- GitHub Check: testing-farm:fedora-41-x86_64:internal-plugins
- GitHub Check: testing-farm:fedora-41-x86_64:provision
- GitHub Check: testing-farm:fedora-rawhide-x86_64:full
- GitHub Check: testing-farm:fedora-41-x86_64:extended-unit-tests
- GitHub Check: testing-farm:fedora-40-x86_64:full
- GitHub Check: rpm-build:fedora-rawhide-x86_64
- GitHub Check: testing-farm:fedora-41-x86_64:full
- GitHub Check: rpm-build:fedora-40-x86_64
- GitHub Check: testing-farm:fedora-41-x86_64:core
- GitHub Check: rpm-build:fedora-41-x86_64
- GitHub Check: testing-farm:fedora-42-x86_64:full
- GitHub Check: testing-farm:centos-stream-9-x86_64:full
- GitHub Check: rpm-build:fedora-42-x86_64
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: rpm-build:epel-9-x86_64
- GitHub Check: rpm-build:fedora-rawhide-x86_64
- GitHub Check: rpm-build:fedora-41-x86_64
- GitHub Check: rpm-build:fedora-40-x86_64
- GitHub Check: rpm-build:fedora-42-x86_64
- GitHub Check: rpm-build:epel-9-x86_64
- GitHub Check: testing-farm:fedora-41-x86_64:internal-wow
- GitHub Check: testing-farm:fedora-41-x86_64:internal-plugins
- GitHub Check: testing-farm:fedora-41-x86_64:provision
- GitHub Check: testing-farm:fedora-41-x86_64:extended-unit-tests
- GitHub Check: testing-farm:fedora-rawhide-x86_64:full
- GitHub Check: testing-farm:centos-stream-9-x86_64:full
- GitHub Check: testing-farm:fedora-40-x86_64:full
- GitHub Check: testing-farm:fedora-42-x86_64:full
- GitHub Check: testing-farm:fedora-41-x86_64:full
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: testing-farm:fedora-41-x86_64:core
- GitHub Check: rpm-build:fedora-rawhide-x86_64
- GitHub Check: rpm-build:fedora-41-x86_64
- GitHub Check: rpm-build:fedora-40-x86_64
- GitHub Check: rpm-build:fedora-42-x86_64
- GitHub Check: testing-farm:fedora-42-x86_64:internal-wow
- GitHub Check: rpm-build:epel-9-x86_64
- GitHub Check: testing-farm:fedora-42-x86_64:internal-plugins
- GitHub Check: testing-farm:fedora-42-x86_64:provision
- GitHub Check: testing-farm:fedora-42-x86_64:extended-unit-tests
- GitHub Check: testing-farm:fedora-41-x86_64:full
- GitHub Check: testing-farm:fedora-42-x86_64:full
- GitHub Check: testing-farm:fedora-40-x86_64:full
- GitHub Check: testing-farm:fedora-rawhide-x86_64:full
- GitHub Check: testing-farm:centos-stream-9-x86_64:full
- GitHub Check: testing-farm:centos-stream-9-x86_64:core
- GitHub Check: testing-farm:fedora-42-x86_64:core
- GitHub Check: rpm-build:fedora-42-x86_64
- GitHub Check: rpm-build:fedora-41-x86_64
- GitHub Check: rpm-build:fedora-40-x86_64
- GitHub Check: rpm-build:fedora-rawhide-x86_64
- GitHub Check: rpm-build:epel-9-x86_64
🔇 Additional comments (1)
tmt/base.py (1)
1089-1089
: Schema validation failures now cause lint checks to fail rather than just warn.The schema validation outcome has been changed from
LinterOutcome.WARN
toLinterOutcome.FAIL
, which aligns with the PR objective of making lint checks fail instead of warn. This change will enforce stricter validation and cause thetmt lint
command to exit with code 1 when an invalid key is encountered in fmf metadata.
Pull Request Checklist
Also this is my first PR opened with the use of Graphite app. Let's see.