Skip to content

deps: bound curl_cffi below 0.17 (impersonated requests lose their User-Agent) - #5

Merged
lfoletti merged 1 commit into
mainfrom
ci-curl-cffi-borne
Nov 4, 2026
Merged

lfoletti merged 1 commit into
mainfrom
ci-curl-cffi-borne

Conversation

@lfoletti

@lfoletti lfoletti commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Why

The CI installs the extras from pyproject.toml (curl_cffi>=0.15), not from requirements*.lock. It now gets curl_cffi 0.17.0, and tests/test_tls_fingerprint.py::test_imitation_envoie_une_empreinte_de_navigateur fails on Python 3.11 and 3.13: the impersonated request reaches the server without a User-Agent (assert 'Chrome' in ''). The lock pins 0.16.3, the version the code was tested with. The last green run on main is from 25 October, before 0.17.0.

What

curl_cffi>=0.15,<0.17 in pyproject.toml. Adapting _http.aimpersonate_get to 0.17 is a separate change.

Failing first

The failing run is on PR #4 (unrelated change): https://github.com/lfoletti/accesspath/actions/runs/41875669170 — the same test fails there with curl_cffi 0.17.0. This PR's CI is the proof that the bound restores it.

The CI installs the extras from pyproject.toml, not from the lock, and now gets curl_cffi 0.17.0. With 0.17.0, test_imitation_envoie_une_empreinte_de_navigateur fails: the impersonated request sends no User-Agent. The lock pins 0.16.3. The bound keeps the CI on the tested version until the code is adapted to 0.17.
@lfoletti
lfoletti marked this pull request as ready for review November 4, 2026 17:51
@lfoletti
lfoletti merged commit 53a70fb into main Nov 4, 2026
5 checks passed
@lfoletti
lfoletti deleted the ci-curl-cffi-borne branch November 4, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant