-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
WIP: Use vcrpy more widely, regenerate broken cassettes #2128
Conversation
ebdfe2a
to
916b8d5
Compare
Attempting to ignore the broken tests, I see the following are also not vcr'd:
Besides those, I'm getting There are a couple more errors, but they're in a different vein, and hopefully by the time we get these errors settled the others will resolve themselves. Logs: |
In view of the above, I've added On my system, this reduces the total number of failed tests to 14:
pytest-chroot.log |
One cassette down, two to go. Though for some reason I've picked up a test failure in |
Turns out Moreover, I'm puzzled by the fact we have this function in the first place. |
49893ce
to
13fa4e3
Compare
Yet another function found:
|
29cbc5b
to
72d5674
Compare
This is as far as I'm able to take it for now -- work is ramping up and won't be able to keep pushing on this in the near future. If anyone picks this up, the remaining items that need to be dealt with for this PR are:
The remaining test failures in the logs I've posted are due to #2058 and should be addressed there. The other failures should be addressed by the (newly/re)generated cassettes -- they no longer cause failures either my machine or my chroot with |
Great work, if you need help with anything let me know. @ me, and I will review this <3 |
update min python version for tests update docs Co-Authored-By: kuba <[email protected]> Co-Authored-By: Jayden <[email protected]> Co-Authored-By: Robert Schütz <[email protected]> Co-Authored-By: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-Authored-By: Alexis Raphaeloff <[email protected]> Co-Authored-By: Randy Blancett <[email protected]> Co-Authored-By: darcy <[email protected]> Co-Authored-By: Karan Bheda <[email protected]> Co-Authored-By: Jeremy Cutler <[email protected]> Co-Authored-By: Soiu Cristian-Ionuț <[email protected]> Co-Authored-By: Peter S <[email protected]> Co-Authored-By: Alan <[email protected]>
Hadn't created a separate branch for this pr, this made rebasing to the latest |
Not sure what this merge signals, shouldn't the PR have been closed instead?
El 2 de septiembre de 2024 21:55:20 GMT+03:00, kuba ***@***.***> escribió:
…Merged #2128 into dev.
--
Reply to this email directly or view it on GitHub:
#2128 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
I didn't merge this? Not sure what happened here, there's no trace of your code on the dev/master branch. |
Huh, weird. Got an email notification saying you merged it.
El 2 de septiembre de 2024 23:04:11 GMT+03:00, kuba ***@***.***> escribió:
…> Not sure what this merge signals, shouldn't the PR have been closed instead? El 2 de septiembre de 2024 21:55:20 GMT+03:00, kuba ***@***.***> escribió:
> […](#)
> Merged #2128 into dev. -- Reply to this email directly or view it on GitHub: [#2128 (comment)](#2128 (comment)) You are receiving this because you authored the thread. Message ID: ***@***.***>
I didn't merge this? Not sure what happened here, there's no trace of your code on the dev/master branch.
--
Reply to this email directly or view it on GitHub:
#2128 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Yeah, I am also seeing a message that I merged this. Even though I haven't pressed a button. You can consider this PR closed. Maybe the fact that I merged master into dev, merged this PR automatically? idk |
Ah, perhaps I confused it by having this PR be based off my master (which is the entire reason I forked this PR), and then resynced my master to yours.
El 2 de septiembre de 2024 23:11:25 GMT+03:00, kuba ***@***.***> escribió:
…> Huh, weird. Got an email notification saying you merged it. El 2 de septiembre de 2024 23:04:11 GMT+03:00, kuba ***@***.***> escribió:
> […](#)
> > Not sure what this merge signals, shouldn't the PR have been closed instead? El 2 de septiembre de 2024 21:55:20 GMT+03:00, kuba ***@***.***> escribió: > […](#) > Merged #2128 into dev. -- Reply to this email directly or view it on GitHub: [#2128 (comment)]([#2128 (comment)](#2128 (comment))) You are receiving this because you authored the thread. Message ID: ***@***.***> I didn't merge this? Not sure what happened here, there's no trace of your code on the dev/master branch. -- Reply to this email directly or view it on GitHub: [#2128 (comment)](#2128 (comment)) You are receiving this because you authored the thread. Message ID: ***@***.***>
Yeah, I am also seeing a message that I merged this. Even though I haven't pressed a button. You can consider this PR closed.
Maybe the fact that I merged master into dev, merged this PR automatically? idk
--
Reply to this email directly or view it on GitHub:
#2128 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Note
The scope of this PR has creeped since the initial posting.
Additions are listed at #2128 (comment)
test_matching: Use vcrpy to avoid being rate-limited by Spotify
Description
Among the network-based tests,
test_matching
has not been updated to usevcrpy
. This makes it hit the Spotify API with every run, making the tests flaky. This patch series enablesvcrpy
on the test and uploads the cassettes that were generated with it.Also, update test expectations for some tracks that now have more matches.
Related Issue
Closes: #2127
Motivation and Context
See above.
How Has This Been Tested?
Tests are running on a clean chroot with the following config:
(Specifically, I'm using Arch Linux's
pkgctl
to create asystemd-nspawn
container with only the minimal dependencies needed to build the AUR package installed.)Types of Changes
Checklist
My code follows the code style of this project
My change requires a change to the documentation
I have updated the documentation accordingly
I have read the CONTRIBUTING document
I have read the CORE VALUES document
It doesn't exist?
I have added tests to cover my changes
All new and existing tests passed
I am still getting these four failures, but these seem to be a bug in the YTMusic provider code (I suspect the "lookup by ISRC" code is dropping some matches) rather than a problem with the cassettes
Moreover, when I run in a chroot, on the first run I get errors due to attempts to overwrite cassettes (even when running with
--recording-mode=none --block-network
) pytest-initial-chroot, pytestdebug-initial-chroot, and on subsequent runs I getYT-DLP download error
in some cases pytest-later-chroot, pytestdebug-later-chroot. Outside the chroot, I sometimes get cassette-overwriting attempts pytest-cassette-system, pytestdebug-cassette-system, and sometimes only the four YTMusic errors above pytest-ytmusic-system, pytestdebug-ytmusic-system.I don't know what's wrong with my setup that I'm getting these inconsistent results, but this is as far as my knowledge carries me.