Skip to content

Add peek method to queues #5112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 26, 2021
Merged

Add peek method to queues #5112

merged 13 commits into from
Apr 26, 2021

Conversation

elacuesta
Copy link
Member

@elacuesta elacuesta commented Apr 22, 2021

Add peek method after https://github.com/scrapy/queuelib/releases/tag/v1.6.1

Some Scrapy tests inherit from the queuelib ones and are failing (https://github.com/scrapy/scrapy/runs/2411643205 for instance), this fixes it.

Test coverage is not yet complete, I'm working on it

@codecov
Copy link

codecov bot commented Apr 22, 2021

Codecov Report

Merging #5112 (14d74d9) into master (7095df1) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5112      +/-   ##
==========================================
+ Coverage   88.20%   88.25%   +0.05%     
==========================================
  Files         162      162              
  Lines       10401    10430      +29     
  Branches     1510     1514       +4     
==========================================
+ Hits         9174     9205      +31     
+ Misses        952      951       -1     
+ Partials      275      274       -1     
Impacted Files Coverage Δ
scrapy/pqueues.py 99.17% <100.00%> (+0.09%) ⬆️
scrapy/squeues.py 100.00% <100.00%> (+3.22%) ⬆️

@@ -24,6 +24,7 @@ disable=abstract-method,
consider-using-in,
consider-using-set-comprehension,
consider-using-sys-exit,
consider-using-with,
Copy link
Member Author

@elacuesta elacuesta Apr 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really related, but the most recent pylint update (2.8.0) is making the build fail.

elacuesta and others added 2 commits April 26, 2021 13:14
Co-authored-by: Adrián Chaves <adrian@chaves.io>
@elacuesta elacuesta merged commit 6837919 into scrapy:master Apr 26, 2021
@elacuesta elacuesta deleted the queue-peek branch April 26, 2021 18:04
@elacuesta elacuesta added this to the 2.6 milestone Apr 26, 2021
@elacuesta elacuesta mentioned this pull request Sep 9, 2021
3 tasks
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.

2 participants