Repository navigation
fix(inspection): order failure patterns chronologically - #3603
eneekoruiz wants to merge 2 commits into
Conversation
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 2 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 1 PR taxonomy bucket(s): CI/CD Recommendation. Scanned 2 changed file(s). Roadmap taxonomy buckets: CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 2 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 2 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
📝 Summary
Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
🔇 Additional comments: 1
scripts/lib/inspection.js-82-82: 1
82-82: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
⚠️ Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.Keep missing timestamps out of
firstSeen.If a group has one dated run and one run with
createdAt: null, the0fallback sorts the null run last. Line 85 then reportsfirstSeen: null, even though the group has a known first timestamp. Sort undated runs separately and derivefirstSeenandlastSeenfrom dated runs. Apply the same missing-date policy to the pattern comparison on Line 109.
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository: affaan-m/ECC/.coderabbit.yaml
- Review profile: ASSERTIVE
- Plan: Advanced
- Run ID:
70928369-2e42-42a5-98a8-54bd77c0f3d7
📒 Files selected for processing: 2
scripts/lib/inspection.jstests/lib/inspection.test.js
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
📜 Review details
⏰ Context from checks skipped due to timeout: 1
- GitHub Check: Greptile Review
🧰 Additional context used
📚 Code guidelines: 4
.cursor/rules/typescript-security.md — unknown
.cursor/rules/common-hooks.md — unknown
.cursor/rules/typescript-coding-style.md — unknown
.cursor/rules/typescript-hooks.md — unknown
📓 Path-based instructions: 5
Focus on command injection, unsafe subprocess usage, path traversal, SSRF, secret exposure, and missing tests for new CLI behavior.
⚙️ CodeRabbit configuration file
Files:
scripts/lib/inspection.js
Source excerpt: Source excerpt: Use **security-reviewer** skill for comprehensive security audits
📄 CodeRabbit inference engine (.cursor/rules/typescript-security.md)
Files:
scripts/lib/inspection.jstests/lib/inspection.test.js
Source excerpt: Use with caution: Source excerpt: Use with caution: Enable for trusted, well-defined plans Source excerpt: Use with caution: Disable for exploratory work Source excerpt: Use with caution: Never use dangerously-skip-permissio...
📄 CodeRabbit inference engine (.cursor/rules/common-hooks.md)
Files:
scripts/lib/inspection.jstests/lib/inspection.test.js
Source excerpt: Use spread operator for immutable updates: Source excerpt: Use async/await with try-catch: Source excerpt: Use Zod for schema-based validation: Source excerpt: Use proper logging libraries instead
📄 CodeRabbit inference engine (.cursor/rules/typescript-coding-style.md)
Files:
scripts/lib/inspection.jstests/lib/inspection.test.js
Source excerpt: **console.log audit**: Check all modified files for `console.log` before session ends
📄 CodeRabbit inference engine (.cursor/rules/typescript-hooks.md)
Files:
scripts/lib/inspection.jstests/lib/inspection.test.js
[Medium impact] No outstanding findings block merging. The current comparison explicitly places missing dates after valid timestamps in both failure ordering and pattern tie-breaking.
|
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 2 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 1 PR taxonomy bucket(s): CI/CD Recommendation. Scanned 2 changed file(s). Roadmap taxonomy buckets: CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 2 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 2 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
|
Thank you for ordering inspection failure patterns by actual time. We carried your contribution into #3654 with attribution and the related follow-up fixes. That integration merged as e494799, and the resulting main passed CI, CodeQL, and Supply-Chain Watch. I’m closing this source PR as delivered. We appreciate your work and hope you’ll keep contributing. |
Compare parsed timestamps when ordering failures and breaking ties between patterns. String ordering incorrectly treats 04:00+04:00 as later than 01:00Z, reversing first/last seen. Missing dates sort after valid dates, including timestamps before 1970, and undated ties remain stable.
Validation: reproduced both offset and pre-epoch regressions before their fixes; 18 inspection tests pass. Coverage: 92.72% lines, 92.15% branches, 85.71% functions. ESLint, diff checks and independent review passed.