lostisland / lostisland/faraday_middleware

missing tests for parallel caching feature

Open
#100 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
558
Forks
196
PR merge metrics
No merged PRs in 30d

Description

Looks like in a83b39c6, the if env[:parallel_manager] condition and the cache_on_complete method it uses were not tested.

The feature itself seems like a bit of a smell — why would the concurrent case not work with threadsafe code?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting commit a83b39c6 and the existing test suite for the code containing the if env[:parallel_manager] condition. Trace how that branch reaches cache_on_complete, then add coverage for the parallel path and the method's behavior. Done means the relevant caching behavior is exercised by tests and the suite passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.