scrapy icon indicating copy to clipboard operation
scrapy copied to clipboard

add async callbacks support to parse

Open mtabbasi opened this issue 2 years ago • 1 comments

Fixes #5424

mtabbasi avatar Jul 26 '22 16:07 mtabbasi

Codecov Report

Merging #5577 (824babb) into master (737f396) will decrease coverage by 0.21%. The diff coverage is 14.28%.

:exclamation: Current head 824babb differs from pull request most recent head 628f53e. Consider uploading reports for the commit 628f53e to get more accurate results

@@            Coverage Diff             @@
##           master    #5577      +/-   ##
==========================================
- Coverage   88.70%   88.49%   -0.22%     
==========================================
  Files         162      162              
  Lines       10787    10796       +9     
  Branches     1851     1851              
==========================================
- Hits         9569     9554      -15     
- Misses        942      966      +24     
  Partials      276      276              
Impacted Files Coverage Δ
scrapy/commands/parse.py 28.19% <14.28%> (+0.25%) :arrow_up:
scrapy/robotstxt.py 75.30% <0.00%> (-22.23%) :arrow_down:

codecov[bot] avatar Jul 26 '22 17:07 codecov[bot]

Looks good to me, but I wonder why the coverage data suggest the new test is not reaching the moved code.

Gallaecio avatar Oct 11 '22 17:10 Gallaecio

@Gallaecio the test launches a separate scrapy parse process, and I guess coverage for subprocesses is not collected?

wRAR avatar Oct 13 '22 11:10 wRAR

Indeed. I thought coverage was able to pick that up anyway, but it seems not. The same code before the changes was not in coverage either.

Gallaecio avatar Oct 15 '22 08:10 Gallaecio

Thank you!

Gallaecio avatar Oct 15 '22 08:10 Gallaecio