Skip to content

The user cache of who-is-alive is covered by no test #2497

Description

@morphqdd

judges/who-is-alive/who-is-alive.rb:27 has next if seen.include?(f.who), so each user is checked once per run no matter how many facts carry their id.

Each time I replaced the line with nil, ran the judge's YAML packs (judges test --judge <name> judges) and its test file under test/judges/, and everything stayed green.

Without it the judge asks GitHub once per fact, which is the difference between a few calls and thousands.

What should happen: a test with several facts of the same user expects one user call to GitHub.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions