You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .coderabbit.yaml
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,16 @@
5
5
inheritance: true
6
6
7
7
reviews:
8
+
path_instructions:
9
+
- path: "**/*.py"
10
+
instructions: |
11
+
- This project targets Python 3.14 (requires-python = '==3.14.*').
12
+
- Per PEP 758 (https://peps.python.org/pep-0758/), bare 'except ExcA, ExcB:' without parentheses is valid syntax in Python 3.14+ and means catching both exceptions. Do not flag this as a Python 2-style except clause or suggest adding parentheses.
13
+
- Focus on security, test structure and coding style adherence in new code introduced
14
+
- Code should follow python, pytest best practices
15
+
- Ensure we use https://github.com/RedHatQE/openshift-python-wrapper/ instead of direct oc calls when possible
16
+
- Code reuse, test parameterization, proper test dependency should be also encouraged
Copy file name to clipboardExpand all lines: CONSTITUTION.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,8 +79,12 @@ All code MUST consider security implications.
79
79
- Avoid running destructive commands without explicit user confirmation
80
80
- Use detect-secrets and gitleaks pre-commit hooks to prevent secret leakage
81
81
- Test code MUST NOT introduce vulnerabilities into the tested systems
82
+
- Use `utilities.path_utils.resolve_repo_path` to resolve and validate any user-supplied or parameterized file paths, preventing path-traversal and symlink-escape outside the repository root
83
+
- JIRA ticket links are allowed in PRs and commit messages (our Jira is public)
84
+
- Do NOT reference internal-only resources (Jenkins, Confluence, Slack threads) in code, PRs, or commit messages
85
+
- Do NOT link embargoed or security-restricted (RH-employee-only) tickets
82
86
83
-
**Rationale**: Tests interact with production-like clusters; security lapses can have real consequences.
87
+
**Rationale**: Tests interact with production-like clusters; security lapses can have real consequences. This is a public repository — only reference publicly accessible resources.
0 commit comments