judges-action#1160: add nil size for yegor256/nil-size-repo to Fbe#repository#341
judges-action#1160: add nil size for yegor256/nil-size-repo to Fbe#repository#341Yegorov wants to merge 1 commit into
yegor256/nil-size-repo to Fbe#repository#341Conversation
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)test/fbe/test_octo.rb (1)
🔇 Additional comments (2)
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. Comment |
|
@yegor256 merge this PR, please. |
| size = | ||
| case name | ||
| when 'yegor256/empty-repo' then 0 | ||
| when 'yegor256/nil-size-repo' then nil |
There was a problem hiding this comment.
@Yegorov why this may happen? It looks like a bug in GitHub API.
There was a problem hiding this comment.
@yegor256 Yes, it looks like a bug, but it could also be something with the token's access rights.
There was a problem hiding this comment.
@Yegorov maybe we should fix the root cause: access rights problem. This change looks like a simulation of something that never happens in reality.
There was a problem hiding this comment.
@yegor256 Unfortunately, I can't help here, as I don't have the full context of the situation.
Can you make a request to view information about the repository with this token?
edmoffo
left a comment
There was a problem hiding this comment.
The diff matches the stated intent of judges-action#1160 and the two new tests cover both the empty-repo and nil-size-repo branches. CI is green.
The thread on line 621 about fixing the root cause versus extending the test fake is still open; deferring to that discussion before merge.
bibonix
left a comment
There was a problem hiding this comment.
The change adds two synthetic repository names to the test fake (yegor256/empty-repo keeps size 0; yegor256/nil-size-repo returns nil). It matches what the consumer in judges-action#1160 needs to exercise its nil-handling branch, and the two added tests pin both branches. CI is green.
The thread on line 621 raises a real question about whether the fake should simulate behavior the real API never produces; that decision sits with the maintainers and is the reason this is a COMMENT verdict rather than an approval. The branch is also currently in a conflicting state against master and needs a rebase before merge.
Need for zerocracy/judges-action#1160
Summary by CodeRabbit
Bug Fixes
Tests