Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add additional coverage for joining urls #1066

Merged
merged 2 commits into from
Sep 1, 2024
Merged

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 31, 2024

What do these changes do?

#1039 introduced a regression in decoding query string params with %2B (aka +). Add coverage to ensure we do not miss this again in the future.

Are there changes in behavior for the user?

no

Related issue number

#1039

tests/test_url.py Outdated Show resolved Hide resolved
@bdraco
Copy link
Member Author

bdraco commented Aug 31, 2024

I think #1039 needs to be reworked to use URL( self._val._replace(.....), encoded=True, ) instead

@bdraco bdraco changed the title Fix regression decoding query string params in join urls Add coverage for decoding query string params in join urls Aug 31, 2024
tests/test_url.py Outdated Show resolved Hide resolved
@bdraco bdraco changed the title Add coverage for decoding query string params in join urls Add additional coverage joining url Aug 31, 2024
@bdraco bdraco added the bot:chronographer:skip This PR does not need to include a change note label Aug 31, 2024
@bdraco bdraco changed the title Add additional coverage joining url Add additional coverage for joining urls Aug 31, 2024
Copy link

codecov bot commented Aug 31, 2024

Codecov Report

Attention: Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.

Project coverage is 92.91%. Comparing base (94b6b51) to head (51faa7c).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
tests/test_url.py 95.45% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1066      +/-   ##
==========================================
+ Coverage   92.89%   92.91%   +0.01%     
==========================================
  Files          26       26              
  Lines        4295     4317      +22     
  Branches      356      356              
==========================================
+ Hits         3990     4011      +21     
- Misses        279      280       +1     
  Partials       26       26              
Flag Coverage Δ
CI-GHA 92.88% <95.45%> (+0.01%) ⬆️
MyPy 25.53% <0.00%> (-0.14%) ⬇️
OS-Linux 99.26% <100.00%> (+<0.01%) ⬆️
OS-Windows 99.58% <100.00%> (+<0.01%) ⬆️
OS-macOS 99.02% <100.00%> (+<0.01%) ⬆️
Py-3.10.11 98.90% <100.00%> (+<0.01%) ⬆️
Py-3.10.14 99.11% <100.00%> (+<0.01%) ⬆️
Py-3.11.9 99.11% <100.00%> (+<0.01%) ⬆️
Py-3.12.5 99.11% <100.00%> (+<0.01%) ⬆️
Py-3.13.0-rc.1 99.11% <100.00%> (+<0.01%) ⬆️
Py-3.8.10 98.87% <100.00%> (+<0.01%) ⬆️
Py-3.8.18 99.08% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 98.87% <100.00%> (+<0.01%) ⬆️
Py-3.9.19 99.08% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.11 99.39% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.16 99.42% <100.00%> (+<0.01%) ⬆️
VM-macos-latest 99.02% <100.00%> (+<0.01%) ⬆️
VM-ubuntu-latest 99.26% <100.00%> (+<0.01%) ⬆️
VM-windows-latest 99.58% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco marked this pull request as ready for review August 31, 2024 04:59
@bdraco bdraco enabled auto-merge (squash) August 31, 2024 05:02
@bdraco bdraco closed this Aug 31, 2024
auto-merge was automatically disabled August 31, 2024 05:03

Pull request was closed

@bdraco bdraco reopened this Aug 31, 2024
@bdraco bdraco enabled auto-merge (squash) August 31, 2024 05:09
@bdraco
Copy link
Member Author

bdraco commented Aug 31, 2024

@codecov codecov/patch — 0.00% of diff hit (target 62.37%) isn't passing so this one won't merge as its marked as required

@bdraco bdraco disabled auto-merge August 31, 2024 05:17
@bdraco bdraco mentioned this pull request Aug 31, 2024
@webknjaz
Copy link
Member

@bdraco this should probably be force-merged for now. It's likely because of the Codecov v4 bug we saw earlier. I'm yet to file a report upstream.

@bdraco
Copy link
Member Author

bdraco commented Aug 31, 2024

@webknjaz looks like I don’t have the proper GitHub access to override checks for this repo.

@bdraco bdraco enabled auto-merge (squash) August 31, 2024 17:02
@bdraco bdraco disabled auto-merge August 31, 2024 20:46
@webknjaz webknjaz added bot:chronographer:skip This PR does not need to include a change note and removed bot:chronographer:skip This PR does not need to include a change note labels Aug 31, 2024
@bdraco bdraco merged commit 2a3235e into master Sep 1, 2024
45 of 48 checks passed
@bdraco bdraco deleted the query_decoding_regression branch September 1, 2024 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:skip This PR does not need to include a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants