instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
scrapy__scrapy__4778 | scrapy/scrapy | 4,778 | defect | c1cc3f2f42dbd19b6a80150126322580d063a963 | 959222df7e80334810636166a8adb60ef35728de | Check for unparseable no_proxy values | Fixes #3331
`/var/run/docker.sock` seemed an exceptional case when a socket file is used in `no_proxy` env variable which is unparseable by the `urllib.request._parse_proxy` method.
| diff --git a/scrapy/downloadermiddlewares/httpproxy.py b/scrapy/downloadermiddlewares/httpproxy.py
index 04da1131162..d2665b655db 100644
--- a/scrapy/downloadermiddlewares/httpproxy.py
+++ b/scrapy/downloadermiddlewares/httpproxy.py
@@ -13,7 +13,12 @@ def __init__(self, auth_encoding='latin-1'):
self.auth_enco... | 2 | 1 | 0 | [{"id": "G0", "claim": "Testing the unparseable no_proxy value should live in a separate test method instead of modifying the existing test_no_proxy method.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "_get_proxy does not deal well with multi-valued n... | null |
scrapy__scrapy__4859 | scrapy/scrapy | 4,859 | defect | 75f35f558f5a9e0851c05dda85763b679d713ac1 | 1354f69dcc1c94cd70124e51c8abac41933d9745 | overwrite an output file with -O, (FeedExporter updated) | related to #4857 and #4845
`FeedExporter._get_storage()` updated - `feed_options` successfully passed to Storage objects
`CrawlCommandTest.test_overwrite_output` and
`RunSpiderCommandTest.test_overwrite_output` aimed to test `-O` arg - updated. | diff --git a/scrapy/extensions/feedexport.py b/scrapy/extensions/feedexport.py
index 7dcb2f52e9e..3fb4d0e2cac 100644
--- a/scrapy/extensions/feedexport.py
+++ b/scrapy/extensions/feedexport.py
@@ -452,7 +452,7 @@ def _get_storage(self, uri, feed_options):
crawler = getattr(self, 'crawler', None)
def... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test variable named `file` shadows a Python built-in and should be renamed to something like `fp`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
scrapy__scrapy__4878 | scrapy/scrapy | 4,878 | defect | c20b34269f488dae4de9433d9c7c783bc481bc6f | 61d089485c7ba66649b936e34833b2013fa12458 | Response.protocol attribute | Motivated by #4769 and #4770
```
$ scrapy shell https://example.org
(...)
>>> response.protocol
'HTTP/1.1'
>>>
```
| diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index f3aaa2c8f51..f1be41dde58 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -693,9 +693,22 @@ Response objects
:param ip_address: The IP address of the server from which the Response originat... | 2 | 2 | 1 | [{"id": "G0", "claim": "The versionadded directive for the protocol parameter uses the placeholder 2.X.X instead of the standardized VERSION placeholder that Gallaecio suggested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Response.protocol is ... | null |
scrapy__scrapy__5027 | scrapy/scrapy | 5,027 | defect | d50bedbeea26902d533a53d1764d359feebae66d | 6c894b419d6a24271d385cd2cbfc6adf04dda737 | Update CI to support Twisted 21.2.0 | Fixes #5020 | diff --git a/scrapy/pipelines/images.py b/scrapy/pipelines/images.py
index aafd1d8b20d..e3ab23ea561 100644
--- a/scrapy/pipelines/images.py
+++ b/scrapy/pipelines/images.py
@@ -9,9 +9,8 @@
from io import BytesIO
from itemadapter import ItemAdapter
-from PIL import Image
-from scrapy.exceptions import DropItem
+fr... | 2 | 2 | 0 | [{"id": "G0", "claim": "The ImagesPipeline import in tests/test_pipeline_images.py no longer needs to be moved into the Pillow try/except now that scrapy.pipelines.images no longer imports PIL at module level.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
scrapy__scrapy__5036 | scrapy/scrapy | 5,036 | defect | ab037ab7c99603325b3f40fe9d5da208ec018dae | 6e5ea7924c7e3f5dd958d13db73e04c6348c99ba | UrlLengthMiddleware: don't skip silently | I guess it's a good idea to not just send the skipped info to debug, since it could be critical and not so obvious to debug in case of accidental long url generating.
So it's better to log to `INFO` at least, and add count to crawler stats. | diff --git a/scrapy/spidermiddlewares/urllength.py b/scrapy/spidermiddlewares/urllength.py
index 5be1f80cb05..ee3cb9fd649 100644
--- a/scrapy/spidermiddlewares/urllength.py
+++ b/scrapy/spidermiddlewares/urllength.py
@@ -14,22 +14,27 @@
class UrlLengthMiddleware:
- def __init__(self, maxlength):
+ def __init... | 2 | 2 | 2 | [{"id": "G0", "claim": "Make the new `stats` parameter of `UrlLengthMiddleware.__init__` optional so backward compatibility is maintained (subclasses calling `super().__init__(maxlength)` would otherwise break).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
scrapy__scrapy__5090 | scrapy/scrapy | 5,090 | defect | 5a75b14a5fbbbd37c14aa7317761655ac7706b70 | d245ef078bc517d0000ca1b15015079e20c03e55 | Engine: deprecations and type hints | As discussed earlier @wRAR
Type hints adapted from #3559
Deprecated methods:
* `ExecutionEngine.open_spiders`: I didn't check the history, but I suspect this probably comes from the time when multiple spiders could run in a single crawl. That hasn't been the case for a long time, so it's not necessary to have a... | diff --git a/scrapy/core/engine.py b/scrapy/core/engine.py
index 93bcdb49a9e..8ba5ecd2b9c 100644
--- a/scrapy/core/engine.py
+++ b/scrapy/core/engine.py
@@ -6,46 +6,55 @@
"""
import logging
from time import time
+from typing import Callable, Iterable, Iterator, Optional, Set, Union
-from twisted.internet import de... | 5 | 5 | 1 | [{"id": "G0", "claim": "In Slot.__init__'s multi-line signature, `self` should sit on its own line (suggestion block).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The trailing `# requests in progress` comment on self.inprogress is unnecessary now that ... | null |
scrapy__scrapy__5130 | scrapy/scrapy | 5,130 | defect | e27eff47ac9ae9a9b9c43426ebddd424615df50a | 256bbca224d7516b75d3e0b0cb5cb9e14ba3fae8 | Refactor request to/from dict | An alternative approach to #4945, considering https://github.com/scrapy/scrapy/pull/4945#discussion_r553504035.
Closes #4945.
~I plan to do the same thing with the `Response` class in a later PR (`Response.to_dict` and `scrapy.utils.response.response_from_dict`)~ see #5131 | diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index 500781c0553..f0f5de7817c 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -220,6 +220,8 @@ Request objects
.. automethod:: from_curl
+ .. automethod:: to_dict
+
.. _topics-request-r... | 10 | 10 | 0 | [{"id": "G0", "claim": "The deprecation warning string in scrapy/utils/reqser.py has a missing space and uses grave accents where none, single quotes or double quotes should be used.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The spider parame... | null |
scrapy__scrapy__5218 | scrapy/scrapy | 5,218 | defect | ff272d633237bc873dc956cd8e25117e8777c88d | c238a6e5195a12cff0a290fa88c0c6091098b2f9 | Response.attributes | Closes #1877.
This is a subset of the changes from #5131, as [suggested](https://github.com/scrapy/scrapy/pull/5131#issuecomment-879711114) by @Gallaecio | diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index a6a3daf3123..d3e08efd480 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -670,9 +670,6 @@ Response objects
.. autoclass:: Response
- A :class:`Response` object represents an HTTP respon... | 1 | 1 | 1 | [{"id": "G0", "claim": "The replace test should also check that not passing `lost` to `replace` loses the old value and that not passing e.g. `foo` keeps the old value, as the copy test does.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scrapy__scrapy__5315 | scrapy/scrapy | 5,315 | defect | 28eba610e22c0d2a42e830b4e64746edf44598f9 | c19836e64aed5b4c8712267b7d6f8e0d8b97ad19 | Set WindowsSelectorEventLoopPolicy on Windows. | Closes: #4976
Needs fixing tests that expect a default loop to be used, and adding docs, including manual setting for CrawlerProcess/Runner in https://docs.scrapy.org/en/latest/topics/asyncio.html#installing-the-asyncio-reactor | diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml
index 6fabf5cdec6..ab738511897 100644
--- a/.github/workflows/tests-windows.yml
+++ b/.github/workflows/tests-windows.yml
@@ -23,6 +23,9 @@ jobs:
- python-version: "3.10"
env:
TOXENV: py
+ - py... | 4 | 3 | 1 | [{"id": "G0", "claim": "Tests that hang on old Twisted because of Twisted ticket 9390 also hang on Windows with these changes, and the reason still needs to be investigated.", "category": "testing", "verdict": "uncertain", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Several tests get 100% reproduci... | null |
scrapy__scrapy__5318 | scrapy/scrapy | 5,318 | defect | 9828cb3f0bcc084c99692f19e65c2ff61a06b35a | 3315b94042b77bef22931b0483c73d58ddaa24e4 | Fix file expiration issue with GCS (Issue #5317) | ## Problem description
As explained in that [issue](https://github.com/scrapy/scrapy/issues/5317) files expiration does not work with GCS if you don't write at the root of your bucket.
If you want to reproduce the issue I invite you to take a look at the issue.
## Issue description
Let say that we set `FILES_STO... | diff --git a/scrapy/pipelines/files.py b/scrapy/pipelines/files.py
index 5c52c6c28d3..906e7eb2440 100644
--- a/scrapy/pipelines/files.py
+++ b/scrapy/pipelines/files.py
@@ -222,8 +222,8 @@ def _onsuccess(blob):
return {'checksum': checksum, 'last_modified': last_modified}
else:
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The GCS blob-path fix should be covered by an automated test, ideally a mock-based version of the existing GCS test that runs in CI.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scrapy__scrapy__5320 | scrapy/scrapy | 5,320 | defect | 28eba610e22c0d2a42e830b4e64746edf44598f9 | 9d0b5d9225b9863b24ec80e308018e4d1223bdb2 | Improve open_in_browser base tag injection (#5319) | Fixes #5319
### What changed
Use of `re.sub` instead of `replace` to inject `<base>` tag. | diff --git a/scrapy/utils/response.py b/scrapy/utils/response.py
index b3ef7b4637f..5b488ad8588 100644
--- a/scrapy/utils/response.py
+++ b/scrapy/utils/response.py
@@ -5,6 +5,7 @@
import os
import webbrowser
import tempfile
+import re
from typing import Any, Callable, Iterable, Optional, Tuple, Union
from weakref... | 4 | 4 | 2 | [{"id": "G0", "claim": "The injection regex should only allow `<head` to be followed by `>` or a space-like character, so that tags like `<header>` are not matched by the base-tag substitution.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests sh... | null |
scrapy__scrapy__5450 | scrapy/scrapy | 5,450 | defect | 2d6042b1086dcc84589d0136bc69082e880a1f9f | 5b4b8b6fb12874d4a0a11c261341639c9af95b10 | fixed detection of extensions like ".tar.gz" in URL | #4066 added more extensions to ignore by default such as `.rar` or `.zip`, which is great.
Unfortunately, the addition of `.tar.gz` as an extension to exclude is not working because of the implementation of the function `url_has_any_extension` which can be found in `scrapy/utils/url.py`.
The actual function look... | diff --git a/scrapy/utils/url.py b/scrapy/utils/url.py
index a6a2a9e8b67..bae5a9433ed 100644
--- a/scrapy/utils/url.py
+++ b/scrapy/utils/url.py
@@ -5,7 +5,6 @@
Some of the functions that used to be imported from this module have been moved
to the w3lib.url module. Always import those from there instead.
"""
-import... | 6 | 2 | 1 | [{"id": "G0", "claim": "The pull request should instead rename `tar.gz` to `gz` in the extension list, which would support additional scenarios while avoiding an implementation change that seems slightly more CPU-expensive.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
scrapy__scrapy__5458 | scrapy/scrapy | 5,458 | defect | 4a5ef816044df868fc23a1dbe9e266bb2976db14 | b386c648643529f3f2d9e4d1783632840e6fe270 | fix: return unique_list only when link_extractor.unique is True | In the `lxmlhtml.py` script, the function `extract_links(self, response)` always returns `unique_list(all_links)`, even when the attribute `unique` of the `link_extractor` is equal to `False`.
The behavior is coherent with the `unique` attribute with this little change in the return line.
Fixes https://github.co... | diff --git a/scrapy/linkextractors/lxmlhtml.py b/scrapy/linkextractors/lxmlhtml.py
index 1e6ab984a72..8a4175d49ee 100644
--- a/scrapy/linkextractors/lxmlhtml.py
+++ b/scrapy/linkextractors/lxmlhtml.py
@@ -195,7 +195,8 @@ def extract_links(self, response):
Only links that match the settings passed to the ``__in... | 3 | 3 | 2 | [{"id": "G0", "claim": "The docstring of extract_links must be updated to state that duplicate links are only omitted when unique is True, since the change now returns duplicates otherwise.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A test mus... | null |
scrapy__scrapy__5482 | scrapy/scrapy | 5,482 | defect | 23537a0f9580bfb28ac5d8b88f37df47e838f463 | 1a45edf16e1f8317186047c952df539e2d327485 | Fix TypeError in parse command | Fixes #5481
`scrapy parse -h` now displays the appropriate help message. | diff --git a/docs/faq.rst b/docs/faq.rst
index 8283cab1130..8a9ba809bd1 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -94,15 +94,6 @@ How can I scrape an item with attributes in different pages?
See :ref:`topics-request-response-ref-request-callback-arguments`.
-
-Scrapy crashes with: ImportError: No module name... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use %(default)s in the --depth help string of the parse command instead of hardcoding the default value, so the default does not need to be defined twice.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scrapy__scrapy__5497 | scrapy/scrapy | 5,497 | defect | ded28f7bb908090952c066a782c8518efaf2dd79 | 83c1939281197242511931c6e9f356f2498eb623 | Issue #3264, fix error handling when spider is not matched | Changes
Implementation:
- Check whether Spider exists or is None, and if it's None skip execution of start_requests() with non existing Spider
Testing:
- Add a test case with invalid url inside test_command_parse
Test proves that non-matched Spider does not throw an AttributeError
Fixes #3264, resolves #537... | diff --git a/scrapy/commands/parse.py b/scrapy/commands/parse.py
index a3f6b96f420..99fc8f955ba 100644
--- a/scrapy/commands/parse.py
+++ b/scrapy/commands/parse.py
@@ -146,7 +146,8 @@ def set_spidercls(self, url, opts):
def _start_requests(spider):
yield self.prepare_request(spider, Request(url... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new assertion self.assertIn(\"\"\"\"\"\", _textmode(stderr)) checks that there is an empty string in stderr, which is true of any string, so the line should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new /... | null |
scrapy__scrapy__5526 | scrapy/scrapy | 5,526 | defect | e2769cfe484fa9bf3d4b36623471cc605393ec85 | 6a0bcf97cc6016cb966b92170709bc7518cf62c2 | Merge values of multiple headers with same name | Fixes #5515 | diff --git a/scrapy/http/headers.py b/scrapy/http/headers.py
index 1a2b99b0a4e..a9471d72147 100644
--- a/scrapy/http/headers.py
+++ b/scrapy/http/headers.py
@@ -1,6 +1,7 @@
from w3lib.http import headers_dict_to_raw
from scrapy.utils.datatypes import CaselessDict
from scrapy.utils.python import to_unicode
+from coll... | 2 | 2 | 1 | [{"id": "G0", "claim": "Move the `from collections.abc import Mapping` import above the other module imports at the top of scrapy/http/headers.py, per the attached suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assertion `a... | null |
scrapy__scrapy__5529 | scrapy/scrapy | 5,529 | defect | de0e2ccd7b2e7fdc32071e91e9dcdb4e10f190e1 | e1a784b76b0edf77f89e6663e1e64bd88bd7c430 | Verify that the installed loop matches ASYNCIO_EVENT_LOOP | I realized this was worth doing while working on https://github.com/scrapy/scrapy/pull/5528, but I thought it best not to make it part of that pull request.
I consider it a (minor) bug that we did not check this before, so I am not completely against adding this to 2.6, but since this is not a regression, I also do ... | diff --git a/scrapy/crawler.py b/scrapy/crawler.py
index fdca7b335ad..8fce8d7fd7c 100644
--- a/scrapy/crawler.py
+++ b/scrapy/crawler.py
@@ -31,7 +31,12 @@
)
from scrapy.utils.misc import create_instance, load_object
from scrapy.utils.ossignal import install_shutdown_handlers, signal_names
-from scrapy.utils.reactor... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `f` prefix should be dropped from the string literals in the exception message that contain no interpolation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The function name should include \"asyncio\" because the fun... | null |
scrapy__scrapy__5581 | scrapy/scrapy | 5,581 | defect | f60c7ae768fa2f238ea6d7646098fe99ef8ad461 | 5735e93541d26ad3aef5e4fc45fa3d1c4dc0fa2a | Fix Feed Exporter issue with Post Processing | Fixes #5500
It fixes the issue above. It happens because when dealing with Post Processing, _file_ is wrapped around a `PostProcessingManager`, which becomes the *arg for the following procedures that will happen in `FeedExporter`. Those procedures believe they are handling directly the file: this is not the case w... | diff --git a/scrapy/extensions/feedexport.py b/scrapy/extensions/feedexport.py
index e7097b7a179..3e98a5a0b4b 100644
--- a/scrapy/extensions/feedexport.py
+++ b/scrapy/extensions/feedexport.py
@@ -350,13 +350,19 @@ def close_spider(self, spider):
return defer.DeferredList(deferred_list) if deferred_list else N... | 2 | 2 | 2 | [{"id": "G0", "claim": "The observed failures suggest the PostProcessingManager may need to be closed without closing the underlying file before that file is handed to storage in _close_slot; calling close on it in get_file before the return may be enough.", "category": "correctness", "verdict": "supported", "priority"... | null |
scrapy__scrapy__5758 | scrapy/scrapy | 5,758 | defect | 034dc8f10bee380af469e1af8bff32f5d085127d | a0832081bab5a9cb1ac438f5294ec6b7b3d98981 | Finish exporting for each start exporting | Figured I'd take a crack at #5537 since it's been stale for a while.
This patch moves the call to `slot.finish_exporting()` up to before the conditional that checks if `slot.item_count > 0` so that if an exception occurs when an exporter's `export_item()` method is called, `slot.finish_exporting()` will still be cal... | diff --git a/scrapy/extensions/feedexport.py b/scrapy/extensions/feedexport.py
index 0aa27e41739..c3382d9d875 100644
--- a/scrapy/extensions/feedexport.py
+++ b/scrapy/extensions/feedexport.py
@@ -350,11 +350,11 @@ def close_spider(self, spider):
return defer.DeferredList(deferred_list) if deferred_list else N... | 1 | 1 | 0 | [{"id": "G0", "claim": "The IsExportingListener docstring misspells \"finis_exporting\" for \"finish_exporting\"; Gallaecio asked for the correction via a suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scrapy__scrapy__5801 | scrapy/scrapy | 5,801 | defect | e71eab693264188fe081ebb260baf00cc6b4dc11 | a1e2fbafdcaae9b70cf7c4216c5cb80d1df5268e | Support Path Objects Issue #5739 | Located a couple of places where using Path object raises an exception. Relates to Issue https://github.com/scrapy/scrapy/issues/5739.
The issue can be reproduced by using a Path object in the "IMAGES_STORE" or "FILES_STORE" settings when configuring a file or image pipeline.
Code to reproduce:
```
from pathl... | diff --git a/scrapy/pipelines/files.py b/scrapy/pipelines/files.py
index 01a9c41febf..143e6300db4 100644
--- a/scrapy/pipelines/files.py
+++ b/scrapy/pipelines/files.py
@@ -9,12 +9,13 @@
import mimetypes
import os
import time
+from os import PathLike
from collections import defaultdict
from contextlib import suppr... | 2 | 2 | 1 | [{"id": "G0", "claim": "Since _get_filesystem_path now accepts Union[str, PathLike], the type hints of the code calling it (e.g. persist_file and stat_file) should also be updated to Union[str, PathLike].", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
scrapy__scrapy__5808 | scrapy/scrapy | 5,808 | defect | e71eab693264188fe081ebb260baf00cc6b4dc11 | bc1942e39a9db416b583c0b6436feb2ffa4eba8c | Genspider with https #3553 | This is a simple fix that addresses the issue with running `scrapy genspider` with a "https://" url schema. The approach checks the url for the https schema and if found it uses a simple regex substitution on the spider template string just before it is written to a `.py` file changing the hardcoded "http" to a "http... | diff --git a/docs/topics/commands.rst b/docs/topics/commands.rst
index 36219011673..09bc06df423 100644
--- a/docs/topics/commands.rst
+++ b/docs/topics/commands.rst
@@ -238,9 +238,6 @@ genspider
Create a new spider in the current folder or in the current project's ``spiders`` folder, if called from inside a project.... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new `url.lower().startswith(\"https\")` check matches any input whose text merely begins with \"https\", so a domain like `httpsecurityoff.example` would get `https://` in start_urls instead of `http://`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
scrapy__scrapy__5832 | scrapy/scrapy | 5,832 | defect | c8547b0370d9977c5cdd34f4dfdbad82cc40136c | c4ea9f144f639c09aa98422bb0a8609d159c5854 | Prevent edge case that creates extra event loop | Fixes https://github.com/scrapy/scrapy/issues/5831.
`asyncio.get_event_loop_policy().get_event_loop() is asyncio.get_running_loop()` is not always true, as mentioned in https://github.com/python/cpython/issues/96377#issuecomment-1260006538. The AsyncioSelectorReactor runs in the second thread and uses the already in... | diff --git a/scrapy/utils/reactor.py b/scrapy/utils/reactor.py
index c20948fd3a1..b792eda3838 100644
--- a/scrapy/utils/reactor.py
+++ b/scrapy/utils/reactor.py
@@ -90,7 +90,6 @@ def _get_asyncio_event_loop():
def set_asyncio_event_loop(event_loop_path):
"""Sets and returns the event loop with specified import ... | 2 | 2 | 2 | [{"id": "G0", "claim": "Removing the call to get_asyncio_event_loop_policy() breaks Windows because the WindowsSelectorEventLoopPolicy is no longer set, which is visible in the tests.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G2", "claim": "A test that only p... | null |
scrapy__scrapy__5901 | scrapy/scrapy | 5,901 | defect | 02f3e8d413ccdd6a3f0b5828a9cd94e1fb3662b1 | 7e1814faf836757933afec4c7c394f43f34c3567 | Fix: Request.from_curl() with $-prefixed string literals | Hi @wRAR
I added an [`action`](https://docs.python.org/3/library/argparse.html#action) for the `--data` argument that removes the _string prefix_ and decodes the string. Although `Request.from_curl()` now works correctly with requests like the one you shared in the issue, I don't know if this is the best way to app... | diff --git a/scrapy/utils/curl.py b/scrapy/utils/curl.py
index a2243ae2ea3..9c98e4cb8ec 100644
--- a/scrapy/utils/curl.py
+++ b/scrapy/utils/curl.py
@@ -1,4 +1,5 @@
import argparse
+import re
import warnings
from http.cookies import SimpleCookie
from shlex import split
@@ -7,6 +8,13 @@
from w3lib.http import basic... | 1 | 1 | 0 | [{"id": "G0", "claim": "The DataAction.__call__ implementation is overcomplicated; the simpler startswith-based stripping of the $ prefix the reviewer suggested should replace the encode/decode round trip plus regex logic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
scrapy__scrapy__5926 | scrapy/scrapy | 5,926 | defect | 92f86fab062d179fd68590f1be6a24ca13ec33b6 | 33153855ea04d95545970970c3be08226b679f10 | periodic_log: implemented as separate extension | The same as current version of https://github.com/scrapy/scrapy/pull/5830 - but implemented as separate extension. So it doesn't affect `scrapy.extensions.logstats.LogStats` and no risk of breaking it's backward compatibility. | diff --git a/scrapy/extensions/logstats_extended.py b/scrapy/extensions/logstats_extended.py
new file mode 100644
index 00000000000..7cba0dc2b98
--- /dev/null
+++ b/scrapy/extensions/logstats_extended.py
@@ -0,0 +1,112 @@
+import logging
+from datetime import datetime
+
+from twisted.internet import task
+
+from scrapy... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use datetime.now() with an explicit timezone instead of the deprecated datetime.utcnow() for the extension's timestamps.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the new class into log_stats.py and rename it, preferably... | null |
scrapy__scrapy__5950 | scrapy/scrapy | 5,950 | defect | d2e7f6e209e14111c91c9f7cbf12e9df7060099d | 54287f733972dcaf13706664ba89ab1c52e3a290 | Add-ons | This is #1272, updated to the current code and with builtin-addons removed. There should be some unanswered questions in that PR. I've addressed some of the simplest feedback and made the CI pass, though there are still documentation references to file paths and there may be other things that need to be fixed.
I ha... | diff --git a/docs/index.rst b/docs/index.rst
index 5404969e02e..8798aebd132 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -222,6 +222,7 @@ Extending Scrapy
:hidden:
topics/architecture
+ topics/addons
topics/downloader-middleware
topics/spider-middleware
topics/extensions
@@ -235,6 +236,9 ... | 35 | 33 | 13 | [{"id": "G0", "claim": "The add-on implementation should be simplified to a minimal design where the ADDONS setting holds components with an update_settings method called during crawler initialization, dropping add-ons managing other add-ons, the multiple configuration mechanisms, version requirements and similar extra... | null |
scrapy__scrapy__5952 | scrapy/scrapy | 5,952 | defect | d2e7f6e209e14111c91c9f7cbf12e9df7060099d | 8fd9c36f36d781cb3cf39c66d08e339809695091 | Fix JsonItemExporter puts lone comma in the output if encoder fails | Continuation of #3111.
Resolves #3090, closes #3111. | diff --git a/scrapy/exporters.py b/scrapy/exporters.py
index 4538c9ee10f..154da3ca56a 100644
--- a/scrapy/exporters.py
+++ b/scrapy/exporters.py
@@ -133,6 +133,13 @@ def _beautify_newline(self):
if self.indent is not None:
self.file.write(b"\n")
+ def _add_comma_after_first(self):
+ if... | 3 | 3 | 1 | [{"id": "G0", "claim": "Some existing tests fail, apparently because the change adds extra commas to the exported output.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The added catch-and-reraise of TypeError around encoding does nothing except bre... | null |
scrapy__scrapy__6013 | scrapy/scrapy | 6,013 | defect | 7c497688f8e20339d766573ae6ce2e7782beb1da | 2dc8bdcaf5d8bf455b5b0e560ba9307f62fa3588 | Handle Tuple type on getdictorlist method, bump 3.12 python version | fix #6011 | diff --git a/scrapy/settings/__init__.py b/scrapy/settings/__init__.py
index bc82cc098ac..90dcd341c49 100644
--- a/scrapy/settings/__init__.py
+++ b/scrapy/settings/__init__.py
@@ -15,6 +15,7 @@
Mapping,
MutableMapping,
Optional,
+ Set,
Tuple,
Union,
cast,
@@ -238,7 +239,7 @@ def getdic... | 3 | 2 | 2 | [{"id": "G0", "claim": "The reviewer (PR author) doubts the added default typing hint on getdictorlist and asks whether it makes sense or should be removed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Some CI tests fail, and the 3.12.0-beta.4 extra-deps... | null |
scrapy__scrapy__6016 | scrapy/scrapy | 6,016 | defect | 3318971512fd0314ffd6053b68e4aef2142c1a80 | fd4292b722edfa5aaf08f6e64035271222771fa2 | Fix: response.json() call makes unnecessary memory allocation | Now `response.json()` uses `response.body` to retrieve the `dict` object, so the str response is no longer stored in RAM.
Closes https://github.com/scrapy/scrapy/issues/5968 | diff --git a/scrapy/http/response/text.py b/scrapy/http/response/text.py
index 7fc54b5d37c..47d7bc10f4c 100644
--- a/scrapy/http/response/text.py
+++ b/scrapy/http/response/text.py
@@ -82,7 +82,7 @@ def json(self):
Deserialize a JSON document to a Python object.
"""
if self._cached_decoded_js... | 1 | 1 | 1 | [{"id": "G0", "claim": "Switching TextResponse.json() from json.loads(self.text) to json.loads(self.body) is backwards incompatible for responses whose encoding is not UTF-8, UTF-16 or UTF-32, so an entry should be added to the changelog explaining the incompatibility and the json.loads(response.text) workaround.", "ca... | null |
scrapy__scrapy__6050 | scrapy/scrapy | 6,050 | defect | dba37674e6eaa6c2030c8eb35ebf8127cd488062 | 922ff5738448205c5b7e5ced533bb8820b168480 | Improve the backwards compatibility for RetryMiddleware.EXCEPTIONS_TO_RETRY | Fixes #6049 (with the code provided by the reporter) | diff --git a/scrapy/downloadermiddlewares/retry.py b/scrapy/downloadermiddlewares/retry.py
index 205bb48b103..af590be47ca 100644
--- a/scrapy/downloadermiddlewares/retry.py
+++ b/scrapy/downloadermiddlewares/retry.py
@@ -23,12 +23,13 @@
retry_logger = getLogger(__name__)
+DEPRECATED_ATTRIBUTE = "EXCEPTIONS_TO_RETR... | 2 | 1 | 0 | [{"id": "G0", "claim": "Gallaecio asks for clarification on when the newly added AttributeError in backwards_compatibility_getattr is raised.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new DEPRECATED_ATTRIBUTE constant is inconsistent: the d... | null |
scrapy__scrapy__6116 | scrapy/scrapy | 6,116 | defect | 991121fa91aee4d428ae09e75427d4e91970a41b | cc2ad923f94d2f5485c20f594db56e2540024ae0 | removed some deprecated functions and supports | commits aabc3db and cc2ad92 resolved #6111
resolves #6109 | diff --git a/scrapy/utils/log.py b/scrapy/utils/log.py
index fdea46a3d57..276c62a87e7 100644
--- a/scrapy/utils/log.py
+++ b/scrapy/utils/log.py
@@ -235,15 +235,8 @@ def logformatter_adapter(logkws: dict) -> Tuple[int, str, dict]:
if not {"level", "msg", "args"} <= set(logkws):
warnings.warn("Missing keys... | 1 | 1 | 0 | [{"id": "G0", "claim": "The leftover deprecation-warning block in logformatter_adapter (the 'Missing keys in LogFormatter method' warning) also needs to be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}] | null |
scrapy__scrapy__6213 | scrapy/scrapy | 6,213 | defect | 4229048255639c260651ed254bed7cafc433a14b | 24634f1bb236f72a1a7b73900f8e3b524f7717b5 | Cleanup deprecated fingerprint code in scrapy.utils.request | Closes #6212 | diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index 9d64eee454d..67fc0c6e9cf 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -469,60 +469,6 @@ import path.
.. autoclass:: scrapy.utils.request.RequestFingerprinter
-
-.. setting:: REQUEST_FIN... | 3 | 3 | 2 | [{"id": "G0", "claim": "Deprecate the REQUEST_FINGERPRINTER_IMPLEMENTATION setting itself now (default it to a sentinel and log a deprecation message when it is set to anything else) instead of just switching its default, stop adding the setting to settings.py when using startproject, and remove any mention of the sett... | null |
scrapy__scrapy__6310 | scrapy/scrapy | 6,310 | defect | 5d31e89262a2db8baa2911fa955ca4ef87a5b6db | 90455636987b48dd5cbdbebeaf35e55be60986f1 | Fix WrappedRequest.get_header raising TypeError if default is None | Fixes https://github.com/scrapy/scrapy/issues/6308
Alternatives:
```python
def get_header(self, name, default=None):
value = self.request.headers.get(name, default)
if not value:
return value
return to_unicode(value, errors="replace")
```
But I don't like repe... | diff --git a/scrapy/http/cookies.py b/scrapy/http/cookies.py
index 2595f328eea..0a88e143883 100644
--- a/scrapy/http/cookies.py
+++ b/scrapy/http/cookies.py
@@ -170,7 +170,8 @@ def has_header(self, name):
return name in self.request.headers
def get_header(self, name, default=None):
- return to_un... | 1 | 1 | 1 | [{"id": "G0", "claim": "The S1 rewrite makes get_header return the raw bytes b'' for an empty binary header value where '' is wanted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scrapy__scrapy__6324 | scrapy/scrapy | 6,324 | defect | a5da77d01dccbc91206d053396fb5b80e1a6b15b | bd43233c79f18c62ce4e23f9b23ab82a6110b168 | issue #6323: add SpiderLoggerAdapter, change Spider.logger to return SpiderLoggerAdapter | fixes #6323
SpiderLoggerAdapter prioritizes self.extra over logged extra so it works as it worked before.
`spider` in extra will always be `self` | diff --git a/scrapy/spiders/__init__.py b/scrapy/spiders/__init__.py
index 72c2aaba7f5..c3f67c50948 100644
--- a/scrapy/spiders/__init__.py
+++ b/scrapy/spiders/__init__.py
@@ -13,6 +13,7 @@
from scrapy import signals
from scrapy.http import Request, Response
+from scrapy.utils.spider_logger_adapter import SpiderLo... | 4 | 2 | 1 | [{"id": "G0", "claim": "SpiderLoggerAdapter should not live in its own separate module; it should go into scrapy.utils.log, with the scrapy.spiders import moved under TYPE_CHECKING and inside logger() if needed to avoid the circular import.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "int... | null |
scrapy__scrapy__6347 | scrapy/scrapy | 6,347 | defect | 4300a1d240c7c2c21a4ef0c1c60c3d844493e516 | 180bc9bad7aceb3a9e10c1411212914bc32fb721 | Closes #6342. Setting METAREFRESH_IGNORE_TAGS to [‘noscript’] by default | Setting METAREFRESH_IGNORE_TAGS to [‘noscript’] by default
Fixes #6342 | diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst
index 1abbc49684f..3f90cf2eda0 100644
--- a/docs/topics/downloader-middleware.rst
+++ b/docs/topics/downloader-middleware.rst
@@ -876,13 +876,13 @@ Whether the Meta Refresh middleware will be enabled.
METAREFRESH_IGNORE_TAGS
^^... | 1 | 1 | 1 | [{"id": "G0", "claim": "Rather than rewriting the existing 2.0 versionchanged entry for METAREFRESH_IGNORE_TAGS, add a new versionchanged entry below it with the version set to VERSION.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scrapy__scrapy__6352 | scrapy/scrapy | 6,352 | defect | 4300a1d240c7c2c21a4ef0c1c60c3d844493e516 | b7fa711efc57e3d3c3511ba6b58052d3a5a37739 | Closes #6340. Deprecate the spider argument to Downloader._get_slot_key() | Fix #6340 | diff --git a/docs/news.rst b/docs/news.rst
index fafea0bf8aa..b82c82a54db 100644
--- a/docs/news.rst
+++ b/docs/news.rst
@@ -1262,6 +1262,9 @@ Deprecations
- :func:`scrapy.utils.response.response_httprepr` is now deprecated.
(:issue:`4972`)
+- :func:`scrapy.core.downloader.Downloader._get_slot_key` is now d... | 4 | 3 | 1 | [{"id": "G0", "claim": "The added release-notes line should be wrapped to 80 characters.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deprecation warning message should mention the new public method (get_slot_key) explicitly.", "category": "... | null |
scrapy__scrapy__6374 | scrapy/scrapy | 6,374 | defect | 631fc65fadb874629787ae5f7fdd876b9ec96a29 | e676cd3ce0d488f56498b766912725066bcee4d9 | docs: Remove top-level reactor imports from CrawlerProces/CrawlerRunner examples | fix #6361 | diff --git a/docs/topics/practices.rst b/docs/topics/practices.rst
index cd359b1473e..7731180fe0a 100644
--- a/docs/topics/practices.rst
+++ b/docs/topics/practices.rst
@@ -92,7 +92,6 @@ reactor after ``MySpider`` has finished running.
.. code-block:: python
- from twisted.internet import reactor
import sc... | 9 | 6 | 1 | [{"id": "G0", "claim": "Add an empty line before the top-level `from twisted.internet import reactor` in the first CrawlerRunner example.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The sentence introducing the non-default-reactor example shoul... | null |
scrapy__scrapy__6484 | scrapy/scrapy | 6,484 | defect | ae967d1c0671b2296e5efd92ef0a9ce02f68f5b3 | c93e0112dfdd93ac5c1a09b9460692a9527605b1 | Ignore SyntaxError as well when SPIDER_LOADER_WARN_ONLY is set to True | Fixes https://github.com/scrapy/scrapy/issues/6483 | diff --git a/docs/news.rst b/docs/news.rst
index 758b22d8044..def62276657 100644
--- a/docs/news.rst
+++ b/docs/news.rst
@@ -8,6 +8,12 @@ Release notes
Scrapy VERSION (YYYY-MM-DD)
---------------------------
+New features
+~~~~~~~~~~~~
+
+- If :setting:`SPIDER_LOADER_WARN_ONLY` is set to ``True``,
+ ``SpiderLoader... | 1 | 1 | 0 | [{"id": "G0", "claim": "The news entry should use the :exc:`SyntaxError` cross-reference role instead of double-backtick literal markup.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scrapy__scrapy__6519 | scrapy/scrapy | 6,519 | defect | d2bdbad8c8cc5e5b4b9d3a79c94e2411a44e94be | 569ef3ce653a85bfdb43c799e9e1f895ebdb457a | Deprecate unused scrapy utils | Fixes #6517
This PR deprecates following unused functions and classes in `scrapy.utils`:
- `flatten`
- `iflatten`
- `equal_attributes`
- `request_authenticate`
- `ScrapyJSONDecoder`
- `assert_samelines`
I have also changed some other warnings for a grammatical uniformity
pls review this PR | diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.py
index 51621834730..12c09839f0f 100644
--- a/scrapy/utils/misc.py
+++ b/scrapy/utils/misc.py
@@ -111,7 +111,7 @@ def md5sum(file: IO[bytes]) -> str:
"""
warnings.warn(
(
- "The scrapy.utils.misc.md5sum function is deprecated, and will... | 4 | 3 | 2 | [{"id": "G0", "claim": "The deprecation warning added at S1 was mistakenly written for ScrapyJSONEncoder (in its default method) although the class this change set out to deprecate is ScrapyJSONDecoder - the author confused the two classes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
scrapy__scrapy__6527 | scrapy/scrapy | 6,527 | defect | e7f5ae0b34ef87503884967f8b6c031d3f213c3e | b244ea7ac028e2aae69d7014a808d49fa26d7c6c | Replace Slot.throttle with Request.meta['dont_throttle'] | https://github.com/scrapy/scrapy/pull/6246#discussion_r1827583470
cc @GeorgeA92, @VMRuiz | diff --git a/docs/topics/autothrottle.rst b/docs/topics/autothrottle.rst
index 8a13b8976c9..48d742f6355 100644
--- a/docs/topics/autothrottle.rst
+++ b/docs/topics/autothrottle.rst
@@ -47,12 +47,19 @@ effect, but there are some important differences:
AutoThrottle doesn't have these issues.
-Disabling throttling on... | 1 | 1 | 1 | [{"id": "G0", "claim": "The dont_throttle metadata key is confusingly named because a request carrying it still runs with the previously learned slot delay (throttling is not actually disabled); the reviewer suggests a name reflecting that only the delay adjustment is skipped.", "category": "design", "verdict": "suppor... | null |
scrapy__scrapy__6568 | scrapy/scrapy | 6,568 | defect | ba33a40365f91aee20ebb8ce73c435687234c8cd | 71b34c8e248213f1fc28b11dd5a9dbcbc01372f8 | Fix Default SpiderLoader doesn't take into account addons | Fixes https://github.com/scrapy/scrapy/issues/6544
I had to do it at the crawler level because the settings passed to the spiderloader are frozen.
This achieves the goal of making new spider modules visible, but creates some not elegant behavior because each addon `update_settings` is ran twice. Which I still have ... | diff --git a/scrapy/addons.py b/scrapy/addons.py
index 7a1da3afc30..e87adaa9d41 100644
--- a/scrapy/addons.py
+++ b/scrapy/addons.py
@@ -9,7 +9,7 @@
if TYPE_CHECKING:
from scrapy.crawler import Crawler
- from scrapy.settings import Settings
+ from scrapy.settings import BaseSettings, Settings
logger ... | 5 | 3 | 1 | [{"id": "G0", "claim": "AddonManager.load_settings should be typed BaseSettings instead of Settings | BaseSettings.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The add-ons docs must gain or extend a section clarifying that add-ons are instant... | null |
scrapy__scrapy__6608 | scrapy/scrapy | 6,608 | defect | a195af304d2823cc686fd7354790e52239208d82 | 0f005dfc16c334341df7f6f90bd801db7250f919 | Flexible severity of logging level when items are dropped | This PR is created to resolve #6603. I have added a new default setting called `DEFAULT_DROPITEM_LOG_LEVEL`, set to `WARNING` by default. I have modified the exception for `DropItem` to use the default log value unless severity is provided by the component. Modified the documentation under docs/topics/settings.rst.
... | diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst
index 76904a26ef0..6a5054ed272 100644
--- a/docs/topics/settings.rst
+++ b/docs/topics/settings.rst
@@ -418,6 +418,36 @@ This setting also affects :setting:`DOWNLOAD_DELAY` and
:ref:`topics-autothrottle`: if :setting:`CONCURRENT_REQUESTS_PER_IP`
is non-... | 10 | 8 | 1 | [{"id": "G0", "claim": "The pull request changed the line endings of all lines of docs/topics/settings.rst (CRLF instead of LF), which makes the PR diff hard to read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "unclear"}, {"id": "G1", "claim": "The pull request contains unrelate... | null |
scrapy__scrapy__6651 | scrapy/scrapy | 6,651 | defect | b4c253102139e842859a9abf1455e62504cc9511 | 4842bcbf1da41029a604d1bf743d4dc893960d39 | Deprecate AjaxCrawlMiddleware and stop calling escape_ajax() by default | Fixes #6523 | diff --git a/docs/topics/broad-crawls.rst b/docs/topics/broad-crawls.rst
index 0286c335408..248e38b61e2 100644
--- a/docs/topics/broad-crawls.rst
+++ b/docs/topics/broad-crawls.rst
@@ -182,30 +182,6 @@ To disable redirects use:
REDIRECT_ENABLED = False
-Enable crawling of "Ajax Crawlable Pages"
-==============... | 1 | 1 | 0 | [{"id": "G0", "claim": "A note explaining that the AjaxCrawlMiddleware is deprecated should be added below the \"AjaxCrawlMiddleware Settings\" heading in docs/topics/downloader-middleware.rst.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scrapy__scrapy__6671 | scrapy/scrapy | 6,671 | defect | 00167edca0677fd9657a8c5995d30600dd37fe37 | 54facebb3eaa0763c09ff77e70befbceac20bb92 | Fix getting annotations for _parse_sitemap() at the runtime. | Fixes #6665 (hopefully there are no other functions where this is important). | diff --git a/scrapy/spiders/sitemap.py b/scrapy/spiders/sitemap.py
index 91c7e3be98a..39033ac3cb6 100644
--- a/scrapy/spiders/sitemap.py
+++ b/scrapy/spiders/sitemap.py
@@ -2,6 +2,9 @@
import logging
import re
+
+# Iterable is needed at the run time for the SitemapSpider._parse_sitemap() annotation
+from collection... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test should mention scrapy-poet and be moved to a separate file (e.g. test_poet) to test things intended not to break that downstream.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scrapy__scrapy__6693 | scrapy/scrapy | 6,693 | defect | c200458f24a2e55dece5df5c22f39a0d1b4ff341 | a28f56ac3e51ee67fb109fb4e51ff0d39878c77a | Base class for universal spider middlewares | Related to #6590
What do we think about this? Is this the protocol we decided to implement? | diff --git a/scrapy/spidermiddlewares/base.py b/scrapy/spidermiddlewares/base.py
new file mode 100644
index 00000000000..10a49a9e80d
--- /dev/null
+++ b/scrapy/spidermiddlewares/base.py
@@ -0,0 +1,55 @@
+from __future__ import annotations
+
+from typing import TYPE_CHECKING, Any
+
+from scrapy import Request, Spider
+
... | 3 | 1 | 0 | [{"id": "G0", "claim": "The overridable methods of BaseSpiderMiddleware should be underscored (private by convention).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper should use `yield from self.process_request(o, response)` so one request or ite... | null |
scrapy__scrapy__6752 | scrapy/scrapy | 6,752 | defect | ac5a5b7811c27eceff7814a8456a74487b1c4743 | 5887cd35bd2839d8d00057b1cd57d5853856ff0d | Prioritize start requests over other requests by default, and keep them in yield order | https://github.com/scrapy/scrapy/pull/6729#discussion_r2040244861 | diff --git a/docs/news.rst b/docs/news.rst
index 0add34a81f7..d3e343e8c1e 100644
--- a/docs/news.rst
+++ b/docs/news.rst
@@ -20,10 +20,7 @@ Backward-incompatible changes
requests in the scheduler, and instead runs continuously until all start
requests have been scheduled.
- As a result, the order in whic... | 8 | 6 | 2 | [{"id": "G0", "claim": "The release note should document what actually happens when SCHEDULER_START_DISK_QUEUE is set to None, since it currently reads as if that changes the previously mentioned behavior without saying what the behavior becomes.", "category": "documentation", "verdict": "supported", "priority": "P1", ... | null |
scrapy__scrapy__6801 | scrapy/scrapy | 6,801 | defect | 82acef30517496d622a80f24adb5b3599e63f64a | 1ddcb568e27cda10db4d0640aa42d020d4624a30 | Add `send_catch_log_async()`. | Fixes #6781 | diff --git a/docs/topics/signals.rst b/docs/topics/signals.rst
index 66cb87fc502..59742ffebd7 100644
--- a/docs/topics/signals.rst
+++ b/docs/topics/signals.rst
@@ -46,8 +46,8 @@ Here is a simple example showing how you can catch signals and perform some acti
.. _signal-deferred:
-Deferred signal handlers
-=======... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new \"asynchronous handlers\" wording in docs/topics/signals.rst should be turned into a link to the corresponding section above.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new \"asynchronous signal handlers\" w... | null |
scrapy__scrapy__6827 | scrapy/scrapy | 6,827 | defect | f2fc177f1fb954480922301749cf00ee79eebb97 | 4a63444c64c08e53da6874ce62da4df528cf1c35 | Add is_asyncio_available(). | This is currently a copy of is_asyncio_reactor_installed() but with a future-proof name and semantics. | diff --git a/docs/topics/asyncio.rst b/docs/topics/asyncio.rst
index 0490129b38b..473ef7bfafe 100644
--- a/docs/topics/asyncio.rst
+++ b/docs/topics/asyncio.rst
@@ -105,25 +105,26 @@ Enforcing asyncio as a requirement
==================================
If you are writing a :ref:`component <topics-components>` that ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The RuntimeError branch of the new is_asyncio_available() (the `if not is_reactor_installed():` guard) is not covered by tests, so maybe is_reactor_installed() could be added to the coverage-ignore list if there is no good way to test it.", "category": "testing", "verdict": "supported", "priorit... | null |
scrapy__scrapy__6842 | scrapy/scrapy | 6,842 | defect | 8fb8d2c6b8a83181ef6564fbc9afa9cfeea2bd05 | 0c643745568bc6109e6743e2a6f194870ce3e22a | Added download_async() to ExecutionEngine and test cases for download() and download_async() | Fixes #6791
I added a public async_download method in ExecutionEngine class that is, the asynchronous version of download.
I also added four test cases for each method, download and async_download:
- Test basic successful download of a request
- Test download with a redirect request
- Test download attempt w... | diff --git a/assert b/assert
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/scrapy/core/engine.py b/scrapy/core/engine.py
index d9361a67456..231db44ccd7 100644
--- a/scrapy/core/engine.py
+++ b/scrapy/core/engine.py
@@ -367,6 +367,21 @@ def download(self, request: Request) -> Generator[Deferred[Any], ... | 5 | 4 | 1 | [{"id": "G0", "claim": "The new engine method should be named download_async() rather than async_download().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Canceling all pending reactor delayed calls in tearDown() is a generic workaround that may be unne... | null |
scrapy__scrapy__6897 | scrapy/scrapy | 6,897 | defect | 85aeda365db01939f70d0888593e7808380c8514 | e7099f34f1508a81ba3cc1d4b37a678a7af7c38b | Fix FileFeedStorage handling of Windows paths without file:// scheme | ## Description
This PR addresses an issue in the `FileFeedStorage` class where passing a Windows-style path without the `file://` URI scheme causes incorrect path resolution. Specifically, using a path like `C:/foo` was incorrectly processed by `w3lib.url.file_uri_to_path()`, which expects a proper URI. This led to ... | diff --git a/scrapy/extensions/feedexport.py b/scrapy/extensions/feedexport.py
index d9e9ea775cf..763dd326be9 100644
--- a/scrapy/extensions/feedexport.py
+++ b/scrapy/extensions/feedexport.py
@@ -185,7 +185,9 @@ def store(self, file: IO[bytes]) -> Deferred[None] | None:
@implementer(IFeedStorage)
class FileFeedStora... | 3 | 3 | 0 | [{"id": "G0", "claim": "The tmp_path fixture parameter of test_preserves_windows_path_without_file_scheme is unused and can be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test defines path and expected_path holding the same value... | null |
scrapy__scrapy__6940 | scrapy/scrapy | 6,940 | defect | 16f168b406079e92870f37ed3dbeec62da8beb25 | c45b919da2845f4ea45670c9f1610e8b5c4a0d27 | Change default priority queue to DownloaderAwarePriorityQueue | Closes #6924
This PR changes the default value of `SCHEDULER_PRIORITY_QUEUE` from `scrapy.pqueues.ScrapyPriorityQueue` to `scrapy.pqueues.DownloaderAwarePriorityQueue`. While implementing this change, two test failures appeared as side effects that required fixes.
The first issue occurred in `tests/test_engine.p... | diff --git a/docs/topics/broad-crawls.rst b/docs/topics/broad-crawls.rst
index ecde3da4306..a76aaf548a1 100644
--- a/docs/topics/broad-crawls.rst
+++ b/docs/topics/broad-crawls.rst
@@ -41,19 +41,6 @@ efficient broad crawl.
.. _broad-crawls-scheduler-priority-queue:
-Use the right :setting:`SCHEDULER_PRIORITY_QUEUE... | 2 | 1 | 1 | [{"id": "G0", "claim": "The blanket str(slot) conversion in DownloaderAwarePriorityQueue.push looks wrong (is it only for type checks?) and treats download_slot=None as a valid literal \"None\" slot; it should instead fall back to the default hostname-based slot key.", "category": "correctness", "verdict": "supported",... | null |
scrapy__scrapy__7007 | scrapy/scrapy | 7,007 | defect | a0b766f9e195814b47f394d531f5f7efe24ec251 | 05bff2b04b3d20236783d731946436ec0690c2e9 | Optimise `SitemapSpider` memory usage | Also see #6985 #605
Could resolve #3529
Benchmarks with real running spider:
- latest release branch: https://github.com/abebus/sitemap
- patch branch: https://github.com/abebus/sitemap/tree/patch
TL;DR: peak memusage dropped from 4.169GB to 1.828GB
Text below is related to sample synthetic benchmark
Us... | diff --git a/scrapy/utils/sitemap.py b/scrapy/utils/sitemap.py
index c0100ea62cd..65d7d5b0681 100644
--- a/scrapy/utils/sitemap.py
+++ b/scrapy/utils/sitemap.py
@@ -7,6 +7,7 @@
from __future__ import annotations
+from io import BytesIO, StringIO
from typing import TYPE_CHECKING, Any
from urllib.parse import urlj... | 5 | 3 | 2 | [{"id": "G0", "claim": "Changing `Sitemap.__init__` to accept only `bytes` is backward-incompatible since existing callers pass `str`; keep `str` support, optionally logging a deprecation warning when a string is received.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
scrapy__scrapy__7033 | scrapy/scrapy | 7,033 | defect | ed63fa94d698ba09875d45c20253b98e05cca5e5 | 9e84e8e892d58942bd2d4c06867eb4546f92549f | Extract @_warn_spider_arg. | (in preparation for downloader middleware changes, separate PR mostly to check the coverage changes)
It turns out that even simple decorators that support sync and async functions are very unwieldy :-/ | diff --git a/scrapy/core/downloader/__init__.py b/scrapy/core/downloader/__init__.py
index 3c7960b86cc..4b4d4efc76d 100644
--- a/scrapy/core/downloader/__init__.py
+++ b/scrapy/core/downloader/__init__.py
@@ -21,6 +21,7 @@
call_later,
create_looping_call,
)
+from scrapy.utils.decorators import _warn_spider_a... | 1 | 1 | 1 | [{"id": "G0", "claim": "The decorator should also warn when the `spider` argument is passed explicitly as `None`, provided it is specified as a parameter, since such code would also break when the parameter is removed (i.e., check `\"spider\" in bound.arguments` instead of truthiness).", "category": "correctness", "ver... | null |
scrapy__scrapy__7039 | scrapy/scrapy | 7,039 | defect | 2ad81a0ef88309526b52a03d5281600e84ef94a5 | 02b1029bba21a58ee5b51cab2f24a20a6a4f86c5 | Deprecate spider attributes that can be replaced by settings, round 2 | close: #7038
deprecated attributes:
- `max_concurrent_requests` → `CONCURRENT_REQUESTS`
- `download_maxsize` → `DOWNLOAD_MAXSIZE`
- `download_warnsize` → `DOWNLOAD_WARNSIZE`
- `download_timeout` → `DOWNLOAD_TIMEOUT`
- `user_agent` → `USER_AGENT` | diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst
index 6f36acc6860..e0dd0f22513 100644
--- a/docs/topics/downloader-middleware.rst
+++ b/docs/topics/downloader-middleware.rst
@@ -829,6 +829,7 @@ always uses the ``'meta refresh'`` string as reason.
The :class:`RedirectMiddlewar... | 6 | 3 | 3 | [{"id": "G0", "claim": "RedirectMiddleware.process_response should use the method's spider parameter instead of self.crawler.spider, for which the reviewer claims there is no guarantee it exists at that point.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla... | null |
scrapy__scrapy__7069 | scrapy/scrapy | 7,069 | defect | 4cb0144b39716b40413a3ea179141a63994ad8b3 | bcc76d7c476b4f81b9b555fafac68c222b723b43 | Add `DownloaderMiddlewareManager.download_async()`, deprecate returning Deferreds from downloader mws | Fixes #7148 | diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst
index 6f36acc6860..b08cbcb2bda 100644
--- a/docs/topics/downloader-middleware.rst
+++ b/docs/topics/downloader-middleware.rst
@@ -68,7 +68,8 @@ defines one or more of these methods:
.. class:: DownloaderMiddleware
- .. not... | 1 | 1 | 0 | [{"id": "G0", "claim": "The note added in docs/topics/downloader-middleware.rst should read \"Any of the downloader middleware methods may be defined as a coroutine function (``async def``)\" instead of \"may be coroutine functions\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "in... | null |
scrapy__scrapy__7182 | scrapy/scrapy | 7,182 | defect | 180ca39b230590a2a2862c8d18c574661b1d16ad | d304f1a9341b7800783f660075968aadaf4b8445 | Await persist_file() in media pipelines. | Fixes #6369 | diff --git a/docs/news.rst b/docs/news.rst
index 19d990a5034..5f8396e552a 100644
--- a/docs/news.rst
+++ b/docs/news.rst
@@ -79,6 +79,21 @@ Backward-incompatible changes
:class:`~twisted.internet.defer.Deferred` object. This
change only impacts code that calls this method directly.
+- In order to fix a lo... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 'PR TBD' reference in the release notes should be updated with the actual PR number before merging.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scrapy__scrapy__7263 | scrapy/scrapy | 7,263 | defect | 06fb87f7bb0cd860536fc8d15415cb3d78314f15 | 0d4e742cbf66e16601bfcb8c98addd4fb610946d | Deprecate scrapy.mail and StatsMailer extension (#7249) | SUMMARY
This PR adds the deprecation of the scrapy.mail module and the StatsMailer extension, as proposed in #7249. The purpose of this deprecation is to encourage users to switch to dedicated Python mail libraries while keeping backward compatibility for now.
CHANGES
CORE: Added ScrapyDeprecationWarning to MailSe... | diff --git a/docs/topics/email.rst b/docs/topics/email.rst
index 1d7bad78712..b53b74b6e0c 100644
--- a/docs/topics/email.rst
+++ b/docs/topics/email.rst
@@ -3,6 +3,9 @@
==============
Sending e-mail
==============
+.. deprecated:: VERSION
+ The :mod:`scrapy.mail` module is deprecated and will be removed in a futu... | 6 | 6 | 1 | [{"id": "G0", "claim": "The pull request, as first submitted, does not resolve all of the requirements of the linked issue #7249.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The whole test suite should be run rather than only selected test files,... | null |
scrapy__scrapy__7283 | scrapy/scrapy | 7,283 | defect | da1a6b7ebca5fc7d35458d821c93331e9080e993 | d37823ed20a58ac2463d2c0b8fc50be6425cd7ed | Added DOWNLOAD_BIND_ADDRESS setting for download handlers | Added a global DOWNLOAD_BIND_ADDRESS setting, which allows configuring the default local bind address for outgoing download-handler connections.
The setting accepts a (ip, port) tuple and is used by built-in HTTP download handlers (HTTP/1.1, HTTP/2, and httpx).
Closes #7266
| diff --git a/docs/news.rst b/docs/news.rst
index ff8e6fb084f..132c9a35ff5 100644
--- a/docs/news.rst
+++ b/docs/news.rst
@@ -14,6 +14,9 @@ New features
that returns headers as a list of ``(key, value)`` tuples.
(:issue:`7239`)
+- Added a :setting:`DOWNLOAD_BIND_ADDRESS` setting to set the default local
+ ... | 6 | 5 | 2 | [{"id": "G0", "claim": "The PR's bind_address semantics are inconsistent and under-documented: the doc change suggests a backward-incompatible tuple-only format, the httpx handler's scalar branch is unexplained and contradicts the docs that say the value is always a tuple, and ScrapyAgent's type hints say bytes — the r... | null |
scrapy__scrapy__7351 | scrapy/scrapy | 7,351 | defect | 6fe27ba33e9117a2d632396fe5e61d0fb32fa6cc | 6254b7477a1d8da80c2c6857336cc089845350c1 | Fix DownloaderAwarePriorityQueue tie-breaking across slots | Fixes #7293. | diff --git a/scrapy/pqueues.py b/scrapy/pqueues.py
index ed57091ba30..e6b1f1419b8 100644
--- a/scrapy/pqueues.py
+++ b/scrapy/pqueues.py
@@ -350,9 +350,23 @@ def __init__(
self.crawler: Crawler = crawler
self.pqueues: dict[str, ScrapyPriorityQueue] = {} # slot -> priority queue
+ self._last_... | 3 | 1 | 0 | [{"id": "G0", "claim": "If `_downloader_interface.stats()` ever returns tuples with more than two elements, the tuple unpacking in `_next_slot` will raise `ValueError` at runtime; consider indexing instead of unpacking so additional tuple fields don't break slot selection.", "category": "correctness", "verdict": "uncer... | null |
scrapy__scrapy__7361 | scrapy/scrapy | 7,361 | defect | 54a4c3af899b8c05c6d2545fa27af664bc231e0c | 4149fe951369da914aa41ab3caac4bc95f77e7e5 | Rename DNS_RESOLVER to TWISTED_DNS_RESOLVER | Description
Renames the DNS_RESOLVER setting to TWISTED_DNS_RESOLVER to clarify its dependency on Twisted internals, as discussed in #7350.
Based on maintainer feedback, other DNS settings (DNSCACHE_ENABLED, DNSCACHE_SIZE, and DNS_TIMEOUT) have been left unchanged to maintain future flexibility.
Changes
Core: U... | diff --git a/docs/faq.rst b/docs/faq.rst
index fdf0582de73..e117d2a5fb1 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -360,7 +360,7 @@ method for this purpose. For example:
Does Scrapy support IPv6 addresses?
-----------------------------------
-Yes, by setting :setting:`DNS_RESOLVER` to ``scrapy.resolver.Caching... | 4 | 4 | 2 | [{"id": "G0", "claim": "The old-news entries should not reference DNS_RESOLVER via the :setting: role; the reviewer asked to enclose the name in double backticks instead to avoid Sphinx warnings.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "craw... | null |
scrapy__scrapy__7366 | scrapy/scrapy | 7,366 | defect | 2ce02d417a99343f630d97e6bb8def1760df1366 | c7c140ea18fd0751848ff31c7e20d87da79b5c30 | AsyncCrawlerProcess._start_asyncio() improvements. | Fixes #7228
I don't like it that much from the engineering perspective (I'd want code that doesn't need long workflow descriptions but maybe that's inevitable) but it seems to work so it's an improvement over master, there may be further iterative improvements possible.
Possible alternative approaches:
- ~~Don... | diff --git a/scrapy/crawler.py b/scrapy/crawler.py
index 2e07a3b87ae..6bc223de433 100644
--- a/scrapy/crawler.py
+++ b/scrapy/crawler.py
@@ -605,22 +605,30 @@ def _signal_shutdown(self, signum: int, _: Any) -> None:
from twisted.internet import reactor
install_shutdown_handlers(self._signal_kill)
- ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The Ctrl-C-once workflow comment says steps 4-7 of the normal workflow happen and stop_after_crawl is ignored, but the code only closes the loop when stop_after_crawl is True; the comment and the control flow should be brought into line.", "category": "documentation", "verdict": "supported", "pr... | null |
scrapy__scrapy__7374 | scrapy/scrapy | 7,374 | defect | 2ce02d417a99343f630d97e6bb8def1760df1366 | 8bed033b69a4fe59060c5b7ea84bfbe2f204c821 | Reducing memory footprint of `Response` object: __slots__ and lazy evaluation | Basically the same as #7036
Before:
```py
Python 3.14.2 (main, Dec 9 2025, 19:03:28) [Clang 21.1.4 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
Ctrl click to launch VS Code Native REPL
>>> from pympler.asizeof import asizeof
>>> from scrapy.http import Response
>>> r = Re... | diff --git a/scrapy/http/response/__init__.py b/scrapy/http/response/__init__.py
index 2cc35fef4da..d95b9e955d0 100644
--- a/scrapy/http/response/__init__.py
+++ b/scrapy/http/response/__init__.py
@@ -38,17 +38,20 @@ class Response(object_ref):
downloaded (by the Downloader) and fed to the Spiders for processing.
... | 3 | 1 | 1 | [{"id": "G0", "claim": "Shadowing a class variable with an instance variable, as the change does with _cached_decoded_json, may be bad practice, and some linters and mypyc require one not to do it.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly... | null |
scrapy__scrapy__7375 | scrapy/scrapy | 7,375 | defect | 2ce02d417a99343f630d97e6bb8def1760df1366 | 5bfca8f2ddc3eb9b749608d5e35fe719e1762fde | improve trackref | - use `NoneType` from `types` since python 3.9 is no longer supported
- use `monotonic_ns` instead of `time` and fix flakiness of `get_oldest`
fixes #1758 | diff --git a/scrapy/utils/trackref.py b/scrapy/utils/trackref.py
index b04214c51c0..f21f0c5f9a5 100644
--- a/scrapy/utils/trackref.py
+++ b/scrapy/utils/trackref.py
@@ -13,7 +13,8 @@
from collections import defaultdict
from operator import itemgetter
-from time import time
+from time import monotonic_ns
+from types... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request's tests fail on PyPy.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The test creates o3 but never checks it; assertions covering o3 are missing.", "category": "testing", "verdict": "supported", "priority": "... | null |
scrapy__scrapy__7376 | scrapy/scrapy | 7,376 | defect | 31bf7c3892df3eb0dfdf5223a0aff5e261f0a7c3 | 2cc126b2d30416d1c96fb5764e4f5ef11212fe0c | improve commands a bit | - reduce `print` calls and buffer flushes
- don't copy `headings` in `ScrapyHelpFormatter::format_part_strings`
- allow parallelization with xdist for `TestHelpMessage::test_help_messages`
- use monotonic counter for `check` command
this will sped up tests a bit (if xdist will be lucky) since `TestHelpMessage::... | diff --git a/scrapy/cmdline.py b/scrapy/cmdline.py
index 487980abd9c..df1a66f3f99 100644
--- a/scrapy/cmdline.py
+++ b/scrapy/cmdline.py
@@ -100,25 +100,37 @@ def _pop_command_name(argv: list[str]) -> str | None:
def _print_header(settings: BaseSettings, inproject: bool) -> None:
version = scrapy.__version__
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `flush=False` arguments added to the print calls should be removed because `flush=False` is already the default value of `print()`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
scrapy__scrapy__7388 | scrapy/scrapy | 7,388 | defect | c4c0555ccf0807600f95b0d31f3cb68c55001e40 | e35263d33bc677868ee8eb702e4e9a44a39f6966 | deprecate `walk_modules` in favour of `walk_modules_iter` | maybe this is not even needed (just like my other PR's lol :) ) | diff --git a/scrapy/cmdline.py b/scrapy/cmdline.py
index 487980abd9c..057ddba4d16 100644
--- a/scrapy/cmdline.py
+++ b/scrapy/cmdline.py
@@ -12,7 +12,7 @@
from scrapy.commands import BaseRunSpiderCommand, ScrapyCommand, ScrapyHelpFormatter
from scrapy.crawler import AsyncCrawlerProcess, CrawlerProcess
from scrapy.ex... | 3 | 3 | 1 | [{"id": "G0", "claim": "Remove the '**Deprecated** in favour of `walk_modules_iter`!' line from the walk_modules docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test that still calls the now-deprecated walk_modules should keep doing ... | null |
scrapy__scrapy__7395 | scrapy/scrapy | 7,395 | defect | b2b2d0b015948f8ca89fae9984ad67c4e7b33ea8 | 2f5f387089de381e6b6bceff7bd289860f9a4a4e | Reactorless shell and other small shell improvements | Fixes #7188
* I've added some notes about the workflow and problems with it, hopefully we will be able to improve the architecture up later.
* Various small refactoring without functionality changes
* The `spider` shell var is set again, it was broken in the previous refactoring for `async def start()`.
* `Shell.... | diff --git a/docs/topics/asyncio.rst b/docs/topics/asyncio.rst
index 63bde82795b..8efa2559efc 100644
--- a/docs/topics/asyncio.rst
+++ b/docs/topics/asyncio.rst
@@ -177,7 +177,6 @@ in future Scrapy versions. The following features are not available:
:class:`~scrapy.core.downloader.handlers._httpx.HttpxDownloadHandle... | 1 | 1 | 0 | [{"id": "G0", "claim": "The question recorded in the _schedule() TODO comment (whether set_asyncio_event_loop() is still needed there) should be moved into an issue and the TODO comment removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scrapy__scrapy__7441 | scrapy/scrapy | 7,441 | defect | 9da14cdff142ec91e727e864e7844a66590dfbf0 | 4fa3210d54441cbc7a6545aee886cea6a3421262 | Small download handler fixes and improvements | (sync with `scrapy-download-handlers-incubator`)
1. Add `download_latency` support to `HttpxDownloadHandler`
2. Skip sending some default headers in `HttpxDownloadHandler`
3. Skip adding the `:status` pseudo-header to `response.headers` in `H2DownloadHandler`
4. Add more download handler tests and do some cleanup... | diff --git a/scrapy/core/downloader/handlers/_httpx.py b/scrapy/core/downloader/handlers/_httpx.py
index 83009c0eda9..313fb1c4f90 100644
--- a/scrapy/core/downloader/handlers/_httpx.py
+++ b/scrapy/core/downloader/handlers/_httpx.py
@@ -5,6 +5,7 @@
import ipaddress
import logging
import ssl
+import time
from http.c... | 3 | 2 | 2 | [{"id": "G0", "claim": "The download_latency is 0 on Windows, so the test's `>= 0` assertion can never fail there; the test should be special-cased for Windows while still asserting a non-zero latency on other platforms.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
scratchfoundation__scratch-gui__5463 | scratchfoundation/scratch-gui | 5,463 | defect | 8e3603aa8be9a6618a51d9fa5d01ef284973a4ed | ac0467db646cc79f0024e03282a0e7b0fa8678b4 | Fix default parameter text loading in English | ### Resolves
Resolves #5445
Resolves #5489
Resolves #2544 (this issue is tied to wrong issue)
### Proposed Changes
Adds an argument to makeToolboxXML, isInitialSetup, which is true only in reducers/toolbox.js. When true, the toolbox returned does not have blocks that have localized parameters.
### Reason for... | diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx
index b659cc7145c..45bf9ec48ae 100644
--- a/src/containers/blocks.jsx
+++ b/src/containers/blocks.jsx
@@ -339,7 +339,7 @@ class Blocks extends React.Component {
const targetCostumes = target.getCostumes();
const targetSounds = ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unused first parameter of the category functions should be named `isInitialSetup` instead of `_`, with eslint no-unused-vars suppressed (per line or by dealing with the warnings) if the linter complains.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
scratchfoundation__scratch-gui__8685 | scratchfoundation/scratch-gui | 8,685 | defect | 68b45e38a34809a16cbf6c9628e5a1009e72025b | 97dc338b5a2c12a35d6c566c09e50824baaafa9e | fix: update extension monitors after locale change | ### Resolves
- Resolves #8499
- Resolves [ENA-142](https://scratchfoundation.atlassian.net/browse/ENA-142)
### Proposed Changes
- Use changes to the `toolboxXML` from the Redux state to trigger rendering of monitors.
### Reason for Changes
When the locale changes, the virtual machine updates the extensi... | diff --git a/src/containers/monitor.jsx b/src/containers/monitor.jsx
index 2e900a26f81..b952a183624 100644
--- a/src/containers/monitor.jsx
+++ b/src/containers/monitor.jsx
@@ -250,6 +250,7 @@ Monitor.propTypes = {
resizeMonitorRect: PropTypes.func.isRequired,
spriteName: PropTypes.string, // eslint-disable-l... | 4 | 3 | 1 | [{"id": "G0", "claim": "Having an unused toolboxXML property (with an eslint-disable) to trigger re-renders seems like a sign that something is not being done correctly, and the reviewer asks whether React offers an official way to declare that rendering depends on a property React cannot analyze.", "category": "design... | null |
scratchfoundation__scratch-gui__8753 | scratchfoundation/scratch-gui | 8,753 | defect | 79c46e54058de2eb92aa751ea1cb0bee7e17c87a | dae5843c18371c2912e8928124af81897bc09a1c | feat: store color theme in state | _Note that this is not merging into `develop`. Instead we will likely have a long-running feature branch for the color theme epic._
### Resolves
- Resolves [ENA-236](https://scratchfoundation.atlassian.net/browse/ENA-236)
### Proposed Changes
- Add a theme name to the Redux state
- Create a framework for c... | diff --git a/src/components/gui/gui.jsx b/src/components/gui/gui.jsx
index a446048989c..7a5f6642e36 100644
--- a/src/components/gui/gui.jsx
+++ b/src/components/gui/gui.jsx
@@ -33,6 +33,7 @@ import TelemetryModal from '../telemetry-modal/telemetry-modal.jsx';
import layout, {STAGE_SIZE_MODES} from '../../lib/layout-... | 3 | 3 | 1 | [{"id": "G0", "claim": "The reviewer is open to better names for the themes than 'standard'/'dark-mode'/'high-contrast' and invites suggestions, since renaming later is easy.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Removing the colours en... | null |
scratchfoundation__scratch-gui__8756 | scratchfoundation/scratch-gui | 8,756 | defect | bb618d09cb81d00fb0efa79e08c12ec361c181fc | 602041092d74c1a28c9556b8e954f73a000a927d | feat: color theming for monitors based on block category | _Part of the color contrast epic. During development this will live on the `feature/color-contrast` branch._
_There is not a way to change the color theme in the UI yet. If you want to see this in action, you can change the `initialState` in `src/reducers/theme.js` or use Redux developer tools to dispatch the set th... | diff --git a/src/components/monitor/default-monitor.jsx b/src/components/monitor/default-monitor.jsx
index 9920147750b..3368519ddbd 100644
--- a/src/components/monitor/default-monitor.jsx
+++ b/src/components/monitor/default-monitor.jsx
@@ -10,7 +10,10 @@ const DefaultMonitor = ({categoryColor, label, value}) => (
... | 2 | 2 | 0 | [{"id": "G0", "claim": "It could make sense to add at least one more test of a different theme to the new monitor test file.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The long single-line style prop on the list value div should be reformatted as a ... | null |
scratchfoundation__scratch-gui__9110 | scratchfoundation/scratch-gui | 9,110 | defect | d09feb3a3f731fd1ae530b98385afd0b89a1188a | db8d53b60e9c3c89d30ee4734f115cd170ee3358 | Replace react-contextmenu | ### Resolves
Resolves ENA-350, part of ENA-207.
### Proposed Changes
- Build new `useContextMenu` custom hook to implement a context menu in terms of React hooks
- Replace use of `react-contextmenu` with `useContextMenu` in the sprite tiles and monitors
- Update `selenium-helper` with the class names used by... | diff --git a/package-lock.json b/package-lock.json
index faf29124005..9374d3165f2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -45,7 +45,6 @@
"query-string": "^5.1.1",
"raw-loader": "^0.5.1",
"react": "18.2.0",
- "react-contextmenu": "2.14.0",
"react-dom": "18.2.0... | 2 | 1 | 1 | [{"id": "G0", "claim": "The `setContextMenuPosition` dependency is not required in the `useCallback` for `closeContextMenu` (the setter is stable), so it could be left out of the dependency array.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "R... | null |
screenpipe__screenpipe__1114 | screenpipe/screenpipe | 1,114 | defect | c5f6c2e45373ad1659d7a47176fd2a7671cf628f | 6fe4f1fa0a3d0aa4e2bca8cdf4440e0c0abbd90f | Add shortcut to toggle audio recording and REST API | /closes #1065
/claim #1065
https://github.com/user-attachments/assets/089b162c-2daa-47c8-9eda-d897ebac04b0
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
## Release Notes
- **New Features**
- Added global shortcuts for starting and stopping aud... | diff --git a/Cargo.toml b/Cargo.toml
index 255c1e1652..685e0a2662 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,6 +36,7 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
tracing-appender = { version = "0.2.3" }
tokio = { version = "1.15", features = ["full", "tracing"] }
crossbeam = "0.8.4"... | 15 | 3 | 2 | [{"id": "G0", "claim": "The start and stop shortcut handlers should share one extracted helper so error handling (including the isProcessingRef guard, Promise.all and a finally cleanup) is consistent between the two operations.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introdu... | null |
screenpipe__screenpipe__1381 | screenpipe/screenpipe | 1,381 | defect | 3458771ef240fda277c4cd6137646011d8908f05 | a95486e87197a92804298d384c0f7c8412c307bb | Capture browser url | /claim #1378
/closes #1378 | diff --git a/screenpipe-server/benches/db_benchmarks.rs b/screenpipe-server/benches/db_benchmarks.rs
index 9c7d391d38..08fb807b8e 100644
--- a/screenpipe-server/benches/db_benchmarks.rs
+++ b/screenpipe-server/benches/db_benchmarks.rs
@@ -26,6 +26,7 @@ async fn setup_large_db(size: usize) -> DatabaseManager {
... | 4 | 3 | 1 | [{"id": "G0", "claim": "The enigo-based keystroke/clipboard simulation used to grab the browser URL is hacky and a cleaner alternative should be used instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The browser_url column does not belong in the oc... | null |
screenpipe__screenpipe__1460 | screenpipe/screenpipe | 1,460 | defect | 6f3f8322532417cc60fee92201c00ecfe992c403 | 37bc9e37801def17e63c6bbbad6097c837a6874d | feat: show local timezone on logs | - **feat: show local timezone on logs**
- **chore: include chrono on `tracing-subscriber`**
| diff --git a/Cargo.toml b/Cargo.toml
index c47494380b..258914cd70 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,7 +30,7 @@ hf-hub = { version = "0.3.2", git = "https://github.com/neo773/hf-hub", features
] }
log = "0.4"
tracing = "0.1.40"
-tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
+tra... | 2 | 1 | 1 | [{"id": "G0", "claim": "The with_timer configuration is applied only to the stdout logging layer and is missing from the file logger layer that the app's log component reads, so file logs may not show the local timezone.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
screenpipe__screenpipe__464 | screenpipe/screenpipe | 464 | defect | cdbd6472d0f9420fe4e378dd10ac9e8a07cdc902 | b4161b595af2997f88a452f796a218065d52b1eb | Hallucinations and tokens | ---
name: pull request
about: submit changes to the project
title: "[pr] "
labels: ''
assignees: ''
---
## description
remove timestamp tokens and obvious hallucinations from speech to text | diff --git a/screenpipe-audio/Cargo.toml b/screenpipe-audio/Cargo.toml
index 7ad24714bf9..b81dc4e829e 100644
--- a/screenpipe-audio/Cargo.toml
+++ b/screenpipe-audio/Cargo.toml
@@ -70,6 +70,8 @@ crossbeam = { workspace = true }
dirs = "5.0.1"
lazy_static = { version = "1.4.0" }
+realfft = "3.4.0"
+regex = "1.11.0"
... | 6 | 3 | 0 | [{"id": "G0", "claim": "We might want to remove webrtc VAD altogether, since it does not make sense to use and is causing issues on some OS.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The PR should use overlapping audio somehow, so whisper keeps co... | null |
screenpipe__screenpipe__593 | screenpipe/screenpipe | 593 | defect | ffd0d5b4c1abec736003883bed085598c327518f | b07f39e65a52449eb30ac99850169e54e3d39a3a | Add to database endpoint | ---
name: Add /add endpoint to database
about: Creates an endpoint to add frames, ocr_results, and transcription results to the screenpipe database from outside sources
---
## description
Creates an endpoint to add frames, ocr_results, and transcription results to the screenpipe database from outside sources
... | diff --git a/screenpipe-server/benches/db_benchmarks.rs b/screenpipe-server/benches/db_benchmarks.rs
index 996e087d35..dbf7674ddc 100644
--- a/screenpipe-server/benches/db_benchmarks.rs
+++ b/screenpipe-server/benches/db_benchmarks.rs
@@ -14,7 +14,7 @@ async fn setup_large_db(size: usize) -> DatabaseManager {
fo... | 5 | 3 | 3 | [{"id": "G0", "claim": "Add tests for the frame-writing-to-mp4 part of the new add endpoint.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The add endpoint cannot specify the OcrEngine used for ocr_results (it always inserts the default engine) and off... | null |
scribejava__scribejava__667 | scribejava/scribejava | 667 | defect | 9a83b6cfeb7f2245a10ac579563c73c2c4024f7d | 36940c4eae90c51cd25c398422a576a64e1cff75 | Adds API provider for Salesforce | This PR adds an API provider for Salesforce (OAuth 2.0).
| diff --git a/scribejava-apis/src/main/java/com/github/scribejava/apis/SalesforceApi.java b/scribejava-apis/src/main/java/com/github/scribejava/apis/SalesforceApi.java
new file mode 100644
index 000000000..08f814c92
--- /dev/null
+++ b/scribejava-apis/src/main/java/com/github/scribejava/apis/SalesforceApi.java
@@ -0,0 +... | 4 | 3 | 2 | [{"id": "G0", "claim": "Do not use tabs in the source; use spaces instead.", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Exceptions in the SalesforceApi constructor should not be swallowed with printStackTrace; let them propagate or wrap them, e.g. throw... | null |
scriptscat__scriptcat__1082 | scriptscat/scriptcat | 1,082 | defect | b43880eb619e1ca2f3291efee7972119b01620a6 | 6b97784f7788dd6341c7e4a6dab552e9263be115 | 处理GM xhr的问题 | ## 概述 Descriptions
<!-- 如果有关联的 issue,请在下面记载 -->
<!-- Describe related issue(s) if any. -->
<!-- close #xxx -->
close #1078 #1080
我增加了 readyState === 4 判断,去修复 #1078 的问题,你看看是不是正确
正在处理 #1080
## 变更内容 Changes
<!-- - 这个 PR 做了什么? -->
<!-- - What does this PR do? -->
### 截图 Screenshots
<!-- 如果可以展示页面,... | diff --git a/example/tests/gm_xhr_test.js b/example/tests/gm_xhr_test.js
index fc0e10fe4..b2692f76f 100644
--- a/example/tests/gm_xhr_test.js
+++ b/example/tests/gm_xhr_test.js
@@ -1221,6 +1221,44 @@ const enableTool = true;
}
},
},
+ {
+ name: "Test bug #1078",
+ async run(fetch) {
+ ... | 5 | 4 | 2 | [{"id": "G0", "claim": "At onload the data reaches content/page but response has somehow become null and is therefore skipped, so the PR should not be merged yet.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Gating responseText on `res.readyState ... | null |
scriptscat__scriptcat__1166 | scriptscat/scriptcat | 1,166 | defect | be818dc29fdd60d632e1232be69069cf761e7539 | 052f7d49ca5bc65d83630e22e0b9a4915f5d8f67 | [v1.3] 增强文本解码 | ## 概述 Descriptions
close #1163
主要用来处理网上下载代码时编码非utf-8但charset又没设置时
进行 BOM 或 null guessing 来决定 utf-8 / utf-16le / utf-16be / utf-32le / utf-32be
不处理 cloud sync 相关的代码
<!-- 如果有关联的 issue,请在下面记载 -->
<!-- Describe related issue(s) if any. -->
<!-- close #xxx -->
## 变更内容 Changes
<!-- - 这个 PR 做了什么? -->
<!... | diff --git a/src/app/service/service_worker/resource.ts b/src/app/service/service_worker/resource.ts
index 8a52bfe4e..378c7ef44 100644
--- a/src/app/service/service_worker/resource.ts
+++ b/src/app/service/service_worker/resource.ts
@@ -13,6 +13,7 @@ import { calculateHashFromArrayBuffer } from "@App/pkg/utils/crypto";... | 6 | 4 | 2 | [{"id": "G0", "claim": "@resource content should be kept as-is (原汁原味), but the PR runs every text resource through the new readBlobContent decoding; decoding is only appropriate for @require/@require-css, which are converted into runnable code.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
scriptscat__scriptcat__1170 | scriptscat/scriptcat | 1,170 | defect | 75180b7a924b1fe04efc55d024f50c6e6d5d37fe | 9df678744096e7daab2426d50b2f0ad19fe47520 | [v1.4] VSCodeConnect 代码重构 | ## [v1.3/1.4] VSCodeConnect 重构:提升 WebSocket 连接稳定性与可维护性
本次 PR 对 `src/app/service/offscreen/vscode-connect.ts` 进行重构,目标是改善旧版在连接管理、重连逻辑与异常处理上的不稳定与难维护问题,使 VS Code 热重载流程在长时间运行与异常场景下表现更可靠。
### 新旧对比一览
| 项目 | 旧版(修改前) | 新版(修改后) ... | diff --git a/src/app/service/offscreen/client.ts b/src/app/service/offscreen/client.ts
index a79421c08..d168f6bcb 100644
--- a/src/app/service/offscreen/client.ts
+++ b/src/app/service/offscreen/client.ts
@@ -2,7 +2,7 @@ import { type WindowMessage } from "@Packages/message/window_message";
import type { SCRIPT_RUN_ST... | 7 | 3 | 0 | [{"id": "G0", "claim": "The stale connectTimeoutTimer is not cleared when a reconnect is started after an error, so an old timeout callback may still fire and close or interfere with the newly created WebSocket; the reviewer asks to clear the existing connectTimeoutTimer (and clean up the old socket) before reconnectin... | null |
scriptscat__scriptcat__1213 | scriptscat/scriptcat | 1,213 | defect | 6084f79bff5dd7a2e1679ba9c7bb837aa8ac73b7 | d88285775c5d9075f1c896bc511d075b6ba7f07c | [v1.4] feat: 支持 `@unwrap` | ## 文档说明
### VM
https://violentmonkey.github.io/api/metadata-block/#unwrap
### TM
https://www.tampermonkey.net/documentation.php?locale=en#meta:unwrap
## 相关历史
* https://github.com/violentmonkey/violentmonkey/issues/966.
* https://github.com/violentmonkey/violentmonkey/discussions/1442
* https://githu... | diff --git a/example/tests/unwrap_test.js b/example/tests/unwrap_test.js
new file mode 100644
index 000000000..7577c53f8
--- /dev/null
+++ b/example/tests/unwrap_test.js
@@ -0,0 +1,66 @@
+// ==UserScript==
+// @name A Scriptlet for @unwrap test
+// @namespace none
+// @version 2026-02-07
+// @descriptio... | 8 | 5 | 2 | [{"id": "G0", "claim": "The new embeddedPatternChecker/embeddedPatternCheckerString exports that decide whether an unwrap script executes are not covered by src/pkg/utils/url_matcher.test.ts; add unit tests for include/exclude/regex combinations and the branch that returns false immediately on an exclude hit.", "catego... | null |
scriptscat__scriptcat__1216 | scriptscat/scriptcat | 1,216 | defect | d0061abe4ca2b48da297ea988386c2beb8c3fb20 | 1e7214dfa5880435caec7315544a8e87f4648f5e | [v1.3] 接受 @version 没有或空值 | 跟 TM 一样。会显示 "0.0",但内部处理不设为 "0.0"
只在显示改变
(部份情况会显示 "N/A" )
安装或更新时可接受不输入 "0.0"
这样 VM的导出 和 其他TM脚本 都能正常安装了 | diff --git a/src/app/service/content/gm_api/gm_info.ts b/src/app/service/content/gm_api/gm_info.ts
index 3f7848efd..44ca42d25 100644
--- a/src/app/service/content/gm_api/gm_info.ts
+++ b/src/app/service/content/gm_api/gm_info.ts
@@ -34,7 +34,7 @@ export function evaluateGMInfo(envInfo: GMInfoEnv, script: TScriptInfo) {... | 5 | 2 | 1 | [{"id": "G0", "claim": "shouldIgnoreUpdate extracts newVersion but its return re-reads newMeta?.version?.[0]; it should compare directly with newVersion for clarity and type narrowing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The install p... | null |
scriptscat__scriptcat__1328 | scriptscat/scriptcat | 1,328 | defect | 3e975c0f4027ce575b7a23735eb44e1a05adb874 | 6c8a73e9dfa6fdfd55c5ed02803f2a58937fb734 | 🔧 通用修复与基础设施改进 | ## Checklist / 检查清单
- [x] Code reviewed by human / 代码通过人工检查
- [x] Changes tested / 已完成测试
## Description / 描述
从 `develop/agent` 分支提取的非 Agent 相关通用修复与改进:
**Bug fix:**
- **confirm/App.tsx**: 定时器从 `setTimeout` 递归改为 `useEffect` + `setInterval`,修复内存泄漏和渲染循环;提取 `PermissionConfirmRequest` 组件
- **utils.ts**: `sourceMapTo` 添加 ... | diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 3b0577d66..f7785c480 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -5,6 +5,7 @@ on:
branches:
- main
- release/*
+ - feature/*
- dev
paths-ignore:
- ".github/**"
di... | 5 | 3 | 3 | [{"id": "G0", "claim": "When the uuid URL parameter is missing the new App returns null, leaving a blank confirm page that neither shows an error nor closes the window; the comment asks for at least an error hint plus an active close (or an error UI).", "category": "correctness", "verdict": "uncertain", "priority": "P1... | null |
scriptscat__scriptcat__618 | scriptscat/scriptcat | 618 | defect | 870dd9bc6b7eff3eceefa915452e773ec0565180 | 54aa30d0a314619c865fe28a2df91e5f952158c3 | 單元測試追加 - Exclusion Test | https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns#host
* host must not include a port number.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Match_patterns#path
* Note: The path pattern string should not include a port number. Adding a port, as in: ht... | diff --git a/src/pkg/utils/match.test.ts b/src/pkg/utils/match.test.ts
index 5258c24be..b494b8290 100644
--- a/src/pkg/utils/match.test.ts
+++ b/src/pkg/utils/match.test.ts
@@ -1,5 +1,6 @@
import { describe, expect, it } from "vitest";
import { dealPatternMatches, parsePatternMatchesURL, UrlMatch } from "./match";
+i... | 4 | 4 | 1 | [{"id": "G0", "claim": "The @match/@include/@exclude handling is split too finely and conflates match-pattern, glob and regex semantics, so it should be restructured in a follow-up PR — e.g. two parameters matches/excludes that directly generate the urlMatcher and match/exclude patterns, separating match-style patterns... | null |
scriptscat__scriptcat__653 | scriptscat/scriptcat | 653 | defect | 6847a596c4b06c75e13594ef60e4b9dfa5718cf3 | 000b37af4b43e42cb0614f608b92e3208f9c08bf | ScriptMatchInfo 相关代码优化 | Close #652
* 原本的customMatch设计改成了 uuid, uuid~Ori (scriptUrlPatterns 和 originalUrlPatterns 都放在 scriptMatch)
* 只要原本 match/include/exclude 能匹配的都会显示出来
* parseUserConfig 从 content 改至 service_worker 执行
* 使用 isEffective 直接判断 Exclude 状态
* runtime.ts 全面使用 已删除 code value resource 的 TScriptMatchInfoEntry
<img width="... | diff --git a/src/app/repo/scripts.ts b/src/app/repo/scripts.ts
index 9f8d24808..dae77dedd 100644
--- a/src/app/repo/scripts.ts
+++ b/src/app/repo/scripts.ts
@@ -81,6 +81,8 @@ export interface ScriptRunResource extends Script {
value: { [key: string]: any };
flag: string;
resource: { [key: string]: { base64?: s... | 15 | 12 | 2 | [{"id": "G0", "claim": "The loadScript objects built in sandbox/runtime.ts must not clear code, value and resource, because background scripts need those resources (same for the similar spots below).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
scriptscat__scriptcat__849 | scriptscat/scriptcat | 849 | defect | 080a85998bff80d29974e07164caffc7561b6316 | d7586360865658ee646f614f17eca7087f2d1e0e | `GMApiRequest` 代码调整,`GM_log` 代码修正,`@connect`判断修正 | ## 概述
<!-- 如果有关联的 issue,请在下面记载 -->
<!-- close #xxx -->
close #848
`Request` 改名至 `GMApiRequest` 并加入 params 的类型
`GM_log` 的 labels 应该是 `[]` . 改成 `...labels`
`@connect`对于subdomain 判断修正了。 否则 `myapple.com` 会错误地对应到 `apple.com`
`@connect`加入了 `self` 的支持。见 https://www.tampermonkey.net/documentation.php?locale=en#m... | diff --git a/src/app/service/content/gm_api.ts b/src/app/service/content/gm_api.ts
index 4826b45ff..654e1ffc7 100644
--- a/src/app/service/content/gm_api.ts
+++ b/src/app/service/content/gm_api.ts
@@ -456,11 +456,7 @@ export default class GMApi extends GM_Base {
if (typeof message !== "string") {
message = ... | 5 | 2 | 1 | [{"id": "G0", "claim": "The GM_log call in content/gm_api.ts should pass labels directly instead of conditionally sending undefined when the labels array is empty.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit GMTypes.CookieDetails... | null |
scriptscat__scriptcat__865 | scriptscat/scriptcat | 865 | defect | fbd655f2745451afdf5841d6682974a89081f3be | 6069c489dd040c1662f36dfe8d9ee21a1fcce090 | 紧急修正: GM.delete/setValue Promise不fulfill | 合并后请发布新Beta版
之前没考虑 deleteValue 时,value 本身就是undefined, 因此 GM.deleteValue(xxx) 不会 Promise fulfill
现在没值更新也是发消息。
收消息那边处理 | diff --git a/src/app/repo/scripts.ts b/src/app/repo/scripts.ts
index 7b91bb9ca..bb4b562cb 100644
--- a/src/app/repo/scripts.ts
+++ b/src/app/repo/scripts.ts
@@ -43,10 +43,11 @@ export interface ConfigGroup {
[key: string]: Config;
}
-export type UserConfig = {
- [key: string]: ConfigGroup | { sort: string[] } | ... | 2 | 1 | 0 | [{"id": "G0", "claim": "GM.setValue/GM.deleteValue promises do not fulfill and the stored value is left unchanged, as demonstrated by the reproducible userscript.", "category": "correctness", "verdict": "uncertain", "priority": "P0", "scope": "pre_existing"}, {"id": "G1", "claim": "Rename `decodedEntries` to a more des... | null |
scriptscat__scriptcat__882 | scriptscat/scriptcat | 882 | defect | 6104427898d041d71d13117d7dcd809528aeebfd | b0866a14bd6f988dce4502287b5a554fb5f98317 | ♻️ 重构 EarlyStart 实现 | ## 概述 Descriptions
close #870
## 变更内容 Changes
根据 https://github.com/scriptscat/scriptcat/pull/871#issuecomment-3437565409 的思路重构 early-start 实现
### 截图 Screenshots
<!-- 如果可以展示页面,请务必附上截图 -->
<!-- If it can be illustrated, please provide a screenshot. -->
| diff --git a/example/tests/early_inject_content_test.js b/example/tests/early_inject_content_test.js
index fbd7b8dec..cc28eed18 100644
--- a/example/tests/early_inject_content_test.js
+++ b/example/tests/early_inject_content_test.js
@@ -155,8 +155,10 @@
console.log("\n%c--- GM 存储 API 测试 ---", "color: orange; font-we... | 8 | 6 | 4 | [{"id": "G0", "claim": "content.js should be registered by fetching its code and wrapping it with the message flags (`(function (MessageFlags) {...})(...)`) instead of adding the extra \"scriptcat-content-flag\" one-line script, so pages do not wait for an extra one-line script to execute.", "category": "design", "verd... | null |
scriptscat__scriptcat__893 | scriptscat/scriptcat | 893 | defect | cca11e02b98de285423b04ec0d95eab995cee378 | ea71b8440997167aa55ec38ad2f9256214d2ed95 | ♻️ 重构优化脚本图标加载 | ## 概述 Descriptions
close #887 #726
## 变更内容 Changes
重构优化脚本图标加载,现在图标使用opfs存储
### 截图 Screenshots
<!-- 如果可以展示页面,请务必附上截图 -->
<!-- If it can be illustrated, please provide a screenshot. -->
| diff --git a/src/app/repo/favicon.ts b/src/app/repo/favicon.ts
new file mode 100644
index 000000000..a52776207
--- /dev/null
+++ b/src/app/repo/favicon.ts
@@ -0,0 +1,22 @@
+import { Repo } from "./repo";
+
+export type FaviconRecord = {
+ match: string;
+ website: string;
+ icon?: string;
+};
+
+export interface Fav... | 9 | 4 | 2 | [{"id": "G0", "claim": "The removeEntry promise in the deleteScripts favicon-cleanup handler should be awaited, otherwise the try-catch cannot catch its rejection and the cleanup may not complete before execution continues.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {... | null |
scroll-tech__ceno__1036 | scroll-tech/ceno | 1,036 | defect | 21375587b4992e5e829b61def64106965e186a22 | 8c312b1eebee5868986b03ccc1ebab372653e2d9 | fix keccak precompile e2e | build on top of #1034 & #1035 & #1038
This PR fix keccak precompile e2e error, some previous left over.
- [x] rom check error => fixed ecall instrunction specs
- [x] logup sum error => The logup sum != 0 error, see https://github.com/scroll-tech/ceno/pull/1036/files#r2301146794. Need to fix ceno-recursion verifi... | diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index 1444b61f8..48cf86dc4 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -55,17 +55,21 @@ jobs:
MOCK_PROVING: 1
run: cargo run --package ceno_zkvm --features sanity-check --... | 4 | 2 | 0 | [{"id": "G0", "claim": "The dummy padding logic must be refreshed when there is rotation, and the corresponding logic in ceno-recursion-verifier needs to be fixed as well, otherwise the keccak precompile will not pass e2e.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"... | null |
scroll-tech__ceno__1078 | scroll-tech/ceno | 1,078 | defect | 9130e7e740762dd60261a75da75ef53ea400da0e | 59e641a97304e35e8aa06dbbdc5d025a9764308d | feat: add secp256k1 ecrecover precompile | patch crate: https://github.com/scroll-tech/elliptic-curves/tree/ceno/k256-13.4
test_secp256k1_ecrecover, runs 5 ecrecover:
- with precompile: 3845214 steps
- without: 65928672 steps | diff --git a/Cargo.lock b/Cargo.lock
index 89f6fc5dd4..a052eb99d6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -906,7 +906,9 @@ version = "0.1.0"
dependencies = [
"alloy-consensus",
"alloy-primitives",
+ "ceno_keccak",
"ceno_rt",
+ "k256",
"revm-precompile",
"thiserror 2.0.12",
]
@@ -958,6 +960,7 @@ name = "... | 4 | 3 | 3 | [{"id": "G0", "claim": "The pull request calls a decompress syscall that does not exist yet, and the reviewer asks whether a native guest-program decompress (as in the commented-out original code) would work instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
scroll-tech__ceno__1318 | scroll-tech/ceno | 1,318 | defect | 2fe5ec17882483aa2f6e0cadbbced89e25762ea8 | f6649fdf7aee878f5cfbcbe5b9127fa291c49b44 | support single-shard e2e verification | ## Problem
`e2e` skipped verification whenever `--shard-id` was set, even when only a single shard proof was produced. That blocked valid single-shard debugging and validation flows.
## Design Rationale
Treat single-shard verification as proof-soundness verification, not full continuation-chain verification. V... | diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index ff4831ea2..963708fd4 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -122,6 +122,11 @@ jobs:
RUSTFLAGS: "-C opt-level=3"
run: cargo run --release --package ceno_zkvm --b... | 3 | 2 | 1 | [{"id": "G0", "claim": "Routing the single-proof case of `verify()` through the standalone shard path `verify_shard_proof_halt()` skips first-chunk entry checks (`INIT_PC == vk.entry_pc`, implicit `shard_id == 0`) previously enforced via `verify_proofs_halt()`, so a valid standalone non-zero-shard proof can be accepted... | null |
scroll-tech__ceno__164 | scroll-tech/ceno | 164 | defect | 0a407211dcbb5eeb9e0b02438c92ed46b3197c5f | 85da7b94d57c28274b3720309a459f4c77959706 | emul-r0: Emulator and trace generator | Issue #111.
* Pull the `Emulator` from Risc0 ([emu/rv32im.rs](https://github.com/risc0/risc0/blob/main/risc0/circuit/rv32im/src/prove/emu/rv32im.rs))
* Implement a `VMState`.
* Implement a `Tracer` that generates `StepRecord`.
* Fibonacci test bytecode.
* Test execution. | diff --git a/Cargo.lock b/Cargo.lock
index ad8c72308..9de4bbdf5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -250,6 +250,14 @@ version = "1.0.90"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5"
+[[package]]
+name = "ceno_e... | 7 | 7 | 3 | [{"id": "G0", "claim": "Remove the unneeded WordAddr::page_idx helper from ceno_emul/src/addr.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "SimpleContext::new should take the pc as an input parameter instead of hardcoding it.", "category": ... | null |
scroll-tech__ceno__188 | scroll-tech/ceno | 188 | defect | a225ab73792c2036737689ffb81d8ac07038b915 | e3ff4db304ddeea1265196f4b8054198cd826418 | Feat: add e2e prover | Fixes #96.
- We define types like `ZKVMProvingKey, ZKVMVerifyingKey, ZKVMConstraintSystem`.
- We requires that the set of logup sum in opcode/table circuits sum to zero.
- The critical requirement that $\prod \textrm{proof}.r_{out} = \prod \textrm{proof}.w_{out}$ introduced in the code is **not** enabled for now. ... | diff --git a/ceno_emul/src/rv32im.rs b/ceno_emul/src/rv32im.rs
index 710d7e7d4..64e758f55 100644
--- a/ceno_emul/src/rv32im.rs
+++ b/ceno_emul/src/rv32im.rs
@@ -183,6 +183,12 @@ pub struct Instruction {
pub func7: u32,
}
+impl Default for Instruction {
+ fn default() -> Self {
+ insn(InsnKind::INVALID... | 6 | 5 | 1 | [{"id": "G0", "claim": "Remove the now-stale `#[allow(unused)]` attributes on RangeTableConfig's methods in ceno_zkvm/src/tables/range.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Insert `.with_min_len(MIN_PAR_SIZE)` on the parallel iterat... | null |
scroll-tech__ceno__248 | scroll-tech/ceno | 248 | defect | 243ae2b95d0467b12cf13eacb85344a15436fdca | a75ea0254fb7b4ef81bb7612d18d6cfa126a86c6 | Change BaseFold trim API to consume pp & truncate public parameters directly in `trim` | Considering that BaseFold trim is almost always used only once in each program execution, consume the input public parameter instead of clone it to save memory.
This API change also allows the `trim` function to directly truncate the input public parameters. | diff --git a/mpcs/benches/basecode.rs b/mpcs/benches/basecode.rs
index e9cf65ddd..543592973 100644
--- a/mpcs/benches/basecode.rs
+++ b/mpcs/benches/basecode.rs
@@ -40,7 +40,7 @@ fn bench_encoding(c: &mut Criterion, is_base: bool) {
let (pp, _) = {
let poly_size = 1 << num_vars;
... | 3 | 2 | 0 | [{"id": "G0", "claim": "In Basecode::trim, the parameter should be declared `mut` instead of rebinding it with `let mut pp = pp;`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In RSCode::trim, the parameter should be declared `mut` instead of ... | null |
scroll-tech__ceno__258 | scroll-tech/ceno | 258 | defect | ccc8c91071ea0aabbd159f60c4a6ec0091d0699e | 24bbb6bb16341a1dfcc1ac801035ecc62ac3c2e7 | Feat: Ecall/Halt | Fixes #125.
- [x] Ecall instruction config
- [x] Ecall/Halt circuit.
- [x] Added public input in the prover framework and allows the circuit builder to access public inputs. | diff --git a/ceno_zkvm/src/chip_handler.rs b/ceno_zkvm/src/chip_handler.rs
index 755278c0c..8ed029e5d 100644
--- a/ceno_zkvm/src/chip_handler.rs
+++ b/ceno_zkvm/src/chip_handler.rs
@@ -2,7 +2,7 @@ use ff_ext::ExtensionField;
use crate::{
error::ZKVMError,
- expression::{Expression, WitIn},
+ expression::{... | 8 | 5 | 3 | [{"id": "G0", "claim": "The new ecall module publishes nothing, so it needs `pub use halt::HaltCircuit;` to expose the halt instruction type.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Halt only needs to exist once, so the circuits should re... | null |
scroll-tech__ceno__271 | scroll-tech/ceno | 271 | defect | c011e497ebdce568326130c7f6f666de1f9e5bdd | 2eb9bfddbdccad9a3c3eb26128bda7a12e1e9bdb | feat: memory chip handler | Chip handler for memory, identical to that for registers.
Once the logic is verified, the next step will be to deduplicate. | diff --git a/ceno_zkvm/src/chip_handler.rs b/ceno_zkvm/src/chip_handler.rs
index 2e18aa0cf..9780d1ef5 100644
--- a/ceno_zkvm/src/chip_handler.rs
+++ b/ceno_zkvm/src/chip_handler.rs
@@ -8,6 +8,7 @@ use crate::{
pub mod general;
pub mod global_state;
+pub mod memory;
pub mod register;
pub mod utils;
@@ -42,3 +43,... | 1 | 1 | 0 | [{"id": "G0", "claim": "The parameter `memory_id` should be renamed to `memory_addr` in the memory_read/memory_write signatures (trait and CircuitBuilder impl).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
scroll-tech__ceno__309 | scroll-tech/ceno | 309 | defect | c7316e83798da65fd5f6348a85ffdf7378d35c97 | 69c76b859115f09d46698ddf3a1759ebb755b45e | chore: update toolchain | Our `rust-toolchain` specifies `nightly-2024-05-02`. That one comes with `rustfmt` version 1.7. But our `rustfmt.toml` uses `style_edition = "2024"`; but `2024` was only added in version 1.8. So in this PR we update to a more recent nightly toolchain.
Most of the changes in here are from our specified `rustfmt.to... | diff --git a/ceno_emul/src/elf.rs b/ceno_emul/src/elf.rs
index 2842d6b33..f6a28f743 100644
--- a/ceno_emul/src/elf.rs
+++ b/ceno_emul/src/elf.rs
@@ -19,8 +19,8 @@ extern crate alloc;
use alloc::collections::BTreeMap;
use crate::addr::WORD_SIZE;
-use anyhow::{anyhow, bail, Context, Result};
-use elf::{endian::Little... | 1 | 1 | 1 | [{"id": "G0", "claim": "The change to the expected LookupError challenge index (0 -> 1) in the test_lookup_error/assert_u5 test should be confirmed as intended for this PR.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
scroll-tech__ceno__487 | scroll-tech/ceno | 487 | defect | 1839eb99bfbc1646f3b90d588e2bbf34617ffc10 | 6560e8d98f35e4b099c74999bf2984869b9adccc | Feat: expose `base_address` and `instructions` decoded from ELF | This PR aims to extract more information from ELF file. The program table circuit needs the whole instructions to build the fixed program table.
Meanwhile, we also distinguish two values of program counter:
- `pc_base` (was former called `pc_start` incorrectly): It's address of the first opcode in the program. Th... | diff --git a/Cargo.lock b/Cargo.lock
index c80dfdedb..c3f5b34b5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -241,6 +241,8 @@ dependencies = [
"anyhow",
"ceno-examples",
"elf",
+ "num-derive",
+ "num-traits",
"strum",
"strum_macros",
"tracing",
@@ -271,6 +273,7 @@ dependencies = [
"itertools 0.13.0",
"mp... | 14 | 6 | 3 | [{"id": "G0", "claim": "The pull request forgot to commit some of its changes, so the reviewer is getting compiler errors.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The address ranges should in general be half-open, including the lower limit bu... | null |
scroll-tech__ceno__554 | scroll-tech/ceno | 554 | defect | 8e000286e1af38fc1954353a5b9d3d80bb79c798 | a5fef547802b106e260cc67c6ac78dc55691c749 | Merge two similar benchmarks in BaseFold into one | Extracting small PR from #294.
The two benchmarks `benches_commit_verify_rs` and `benches_commit_verify_basecode` are similar, differing only in the choice of parameter. Merge them into one benchmark file.
Also simplify the codes using the test utility functions introduced in #552
Waiting for #552 to merge. | diff --git a/mpcs/Cargo.toml b/mpcs/Cargo.toml
index 26ee123ba..1100cb133 100644
--- a/mpcs/Cargo.toml
+++ b/mpcs/Cargo.toml
@@ -38,11 +38,7 @@ sanity-check = []
[[bench]]
harness = false
-name = "commit_open_verify_rs"
-
-[[bench]]
-harness = false
-name = "commit_open_verify_basecode"
+name = "basefold"
[[benc... | 3 | 1 | 0 | [{"id": "G0", "claim": "The requested cfg(or(test, bench)) (or equivalent) gating of the test_util module should actually be implemented, or otherwise the TODO-comment left in the PR should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "gen_r... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.