Skip to content

Plan cached file purposes in a dry run - #24

Open
tauanbinato wants to merge 1 commit into
mainfrom
dry-run-cached-purpose
Open

tauanbinato wants to merge 1 commit into
mainfrom
dry-run-cached-purpose

Conversation

@tauanbinato

Copy link
Copy Markdown
Contributor

A dry run left files that need a file-purpose answer unplanned, even when the cache held that answer. The units a run then sends for those files were missing, and requests that depend on them (tests, outlines) differed, so a warm cache's estimate counted requests as new that the run answers from the cache.

On devise (evaluation corpus), --dry-run counted 106 of 1,532 first-pass requests as new; the real run sent none. With this change the dry run plans 1,640 requests, all answered by the cache, matching the run's 1,640 cache hits. lobsters, flask and spring-petclinic now plan more requests, all cached.

  • preview records a cached purpose answer and plans the file as resolve_purposes does; an unanswered purpose still leaves the file unplanned, as documented.
  • Test: a_dry_run_plans_the_units_of_a_file_whose_purpose_the_cache_answers.

A dry run left files that need a file-purpose answer unplanned, even
when the cache held that answer, so the units a run then sends for them
were missing and requests that depend on them (tests, outlines) differed.
On devise the estimate counted 106 of 1,532 first-pass requests as new
while the run sent none. The preview now records a cached purpose and
plans the file as a run does.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant