Conversation
ORG_REPO extraction only stripped https://github.com/ prefixes, fixing it to support all different git urls. fixes #295
AgentReady Code Review - PR #296🎯 SummaryOverall Assessment: ✅ APPROVED with minor suggestions This PR fixes a critical bug in the leaderboard validation workflow by adding SSH URL parsing support. The fix is minimal, focused, and addresses the root cause described in issue #295. 🔍 Detailed AnalysisCode Quality: 9/10Strengths:
Minor Concerns:
Security Analysis: 10/10Strengths:
Notes:
AgentReady Attribute Compliance✅ Passed Attributes
|
| Category | Before | After | Change |
|---|---|---|---|
| Bug Fixes | N/A | ✅ | +1 fixed issue |
| Code Quality | ✅ | ✅ | No change |
| Security | ✅ | ✅ | No change |
| Test Coverage | No change (workflow) |
Estimated Score Impact: Neutral (bug fix maintains existing quality level)
✅ Final Recommendation
APPROVE - This PR should be merged.
Rationale:
- Fixes critical bug preventing valid leaderboard submissions
- Minimal, focused change with no side effects
- No security concerns
- Follows existing code patterns and conventions
- Well-documented in PR description and issue [BUG] Leaderboard CI validation fails with improper ORG_REPO url extraction logic #295
Merge Checklist:
- Code review passed
- Security review passed
- No breaking changes
- Addresses issue [BUG] Leaderboard CI validation fails with improper ORG_REPO url extraction logic #295
- Manual testing completed (recommended)
- Actionlint validation passed (recommended - see below)
🔧 Pre-Merge Action Items
-
Run actionlint (per CLAUDE.md guidelines):
actionlint .github/workflows/leaderboard.yml
-
Optional: Add URL validation (can be follow-up PR):
- Add regex validation for ORG_REPO format
- Add workflow test case documentation
-
Post-merge: Verify fix:
- Re-trigger validation on PRs Leaderboard: feast-dev/feast (61.6/100 - Silver) #293 and Leaderboard: opendatahub-io/ai-helpers (64.7/100 - Silver) #294
- Confirm SSH URL parsing works correctly
📚 References
- Issue [BUG] Leaderboard CI validation fails with improper ORG_REPO url extraction logic #295: Leaderboard CI validation fails with improper ORG_REPO url extraction logic
- CLAUDE.md: GitHub Actions Guidelines (actionlint requirement)
- AgentReady Assessment Framework: Security Best Practices attribute
Reviewed by: Claude Code (AgentReady v2.27.5)
Review Date: 2026-02-17
Attributes Evaluated: 31 (full AgentReady assessment framework)
Security Scan: Passed ✅
Code Quality Scan: Passed ✅
Great work, @kami619! This is a clean, focused bug fix. 🚀
📈 Test Coverage Report
Coverage calculated from unit tests only |
|
I tested this snippet manually and it works. |
* Update ORG_REPO extraction method in workflow ORG_REPO extraction only stripped https://github.com/ prefixes, fixing it to support all different git urls. fixes ambient-code#295 * Update ORG_REPO extraction method in workflow validate access step as well
AgentReady Code Review - PR #296Overall Assessment: ✅ APPROVED with Minor SuggestionsThis PR fixes a legitimate bug in SSH URL parsing for the leaderboard workflow. The change is minimal, focused, and addresses issue #295. 🔍 Code Quality Analysis✅ Strengths
|
| Attribute | Status | Notes |
|---|---|---|
claude_md_instructions |
✅ | Follows CLAUDE.md guidelines |
error_handling_robustness |
Could handle more edge cases | |
security_practices |
✅ | No security regressions |
code_clarity |
Sed chaining could be clearer | |
git_conventional_commits |
✅ | Proper fix commit message |
input_validation |
Missing explicit URL format validation |
🎯 Recommendations
Must-Have (Before Production)
None - current fix is functional
Should-Have (Improve Robustness)
- Reorder sed operations or combine into single command
- Add URL format validation with helpful error messages
- Run actionlint to verify workflow syntax
Nice-to-Have (Future Enhancement)
- Add unit tests for URL parsing logic (could extract to separate script)
- Consider using GitHub Actions expressions instead of sed:
# Alternative using GitHub Actions string functions ORG_REPO: ${{ github.event.repository.full_name }}
📊 Impact Assessment
- Blast Radius: Very small (2 lines in CI workflow)
- Risk Level: Low (backward compatible, adds functionality)
- Test Coverage: Manual testing needed (checklist shows tests not run)
- Breaking Changes: None
✅ Approval Rationale
Despite minor improvement opportunities, this PR:
- Fixes a real bug ([BUG] Leaderboard CI validation fails with improper ORG_REPO url extraction logic #295) preventing SSH URL submissions
- Maintains security posture
- Has minimal risk (already merged successfully)
- Follows project conventions
The suggested improvements are optional enhancements, not blockers.
📚 References
- Issue: [BUG] Leaderboard CI validation fails with improper ORG_REPO url extraction logic #295
- Related Workflow:
.github/workflows/leaderboard.yml - AgentReady Research: Error Handling Robustness (Tier 2)
- Security Guidelines: CLAUDE.md (Command Injection Prevention)
Review performed by AgentReady Code Review Agent
Framework: AgentReady v2.27.5 Best Practices
Date: 2026-02-17
* feat: add opendatahub-io/ai-helpers to leaderboard Score: 64.7/100 (Silver) Repository: https://github.com/opendatahub-io/ai-helpers * fix(cli): Use removesuffix instead of rstrip for .git URL stripping (#292) Signed-off-by: ntkathole <nikhilkathole2683@gmail.com> * chore(release): 2.27.5 [skip ci] ## [2.27.5](v2.27.4...v2.27.5) (2026-02-17) ### Bug Fixes * **cli:** Use removesuffix instead of rstrip for .git URL stripping ([#292](#292)) ([6bd08cf](6bd08cf)) * Is 295 org repo extraction fix (#296) * Update ORG_REPO extraction method in workflow ORG_REPO extraction only stripped https://github.com/ prefixes, fixing it to support all different git urls. fixes #295 * Update ORG_REPO extraction method in workflow validate access step as well --------- Signed-off-by: ntkathole <nikhilkathole2683@gmail.com> Co-authored-by: Nikhil Kathole <nkathole@redhat.com> Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net> Co-authored-by: Kamesh Akella <kakella@redhat.com>
|
🎉 This PR is included in version 2.28.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
ORG_REPO extraction only stripped https://github.com/ prefixes, fixing it to support all different git urls.
Type of Change
Related Issues
Fixes #295
Changes Made
SSH URL parsing — The ORG_REPO extraction (used in both "Verify repository exists" and "Verify submitter has access" steps) needs to handle git@github.com:org/repo.git in addition to https://github.com/org/repo.git. Replace the sed line in both steps:
Before (only handles HTTPS)
ORG_REPO=$(echo "$REPO_URL" | sed 's|https://github.com/||' | sed 's|.git$||')
After (handles both SSH and HTTPS)
ORG_REPO=$(echo "$REPO_URL" | sed 's|git@github.com:||' | sed 's|https://github.com/||' | sed 's|.git$||')
Testing
pytest)Checklist