-
Notifications
You must be signed in to change notification settings - Fork 10k
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
GitHub Actions for Windows-latest don't run tests #31249
Comments
This is how GitHub Actions runs the commands that you specify for the steps of the action, ie
It's possible to set the default shell to Tests (windows-latest, 3.2, cpython, download, sh)
...
2022-09-25T08:45:25.3864717Z ##[group]Run ./devscripts/run_tests.sh
2022-09-25T08:45:25.3865180Z �[36;1m./devscripts/run_tests.sh�[0m
2022-09-25T08:45:25.3876386Z shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
2022-09-25T08:45:25.3876706Z env:
2022-09-25T08:45:25.3877035Z pythonLocation: C:\hostedtoolcache\windows\Python\3.2.5\x64
2022-09-25T08:45:25.3877382Z YTDL_TEST_SET: download
2022-09-25T08:45:25.3877606Z ##[endgroup]
2022-09-25T08:45:26.6952787Z
2022-09-25T08:45:26.6955131Z ----------------------------------------------------------------------
2022-09-25T08:45:26.6960038Z Ran 0 tests in 0.391s
2022-09-25T08:45:26.6982769Z
2022-09-25T08:45:26.6983705Z OK So maybe the problem is that the Windows commands aren't finding the test scripts. |
You can tell whether it worked based on how long the tests took. Based on that, it broke sometime between https://github.com/ytdl-org/youtube-dl/actions/runs/1885214664 and https://github.com/ytdl-org/youtube-dl/actions/runs/1892945259 You may also notice that the warning:
is present for the first link, but not the second So I'm almost certain (but don't have time to test right now) that pinning the workflow to |
YES! I observed a bug in nose where it doesn't find any tests because it normalises the path and case of the test filenames in two incompatible ways. Quite possibly this might have been a latent bug revealed by the newer version of the Windows runner. After unsuccessfully trying to deploy modified versions of nose to test this, I came to the conclusion that yt-dlp's adoption of pytest was the answer. But in the short term this is a lot simpler: --- old/youtube-dl/.github/workflows/ci.yml
+++ new/youtube-dl/.github/workflows/ci.yml
@@ -15,12 +15,12 @@
run-tests-ext: [sh]
include:
# python 3.2 is only available on windows via setup-python
- - os: windows-latest
+ - os: windows-2019
python-version: 3.2
python-impl: cpython
ytdl-test-set: core
run-tests-ext: bat
- - os: windows-latest
+ - os: windows-2019
python-version: 3.2
python-impl: cpython
ytdl-test-set: download |
* commit 'd35557a75d943865e40410d51bfcc18276e98532': [Telegraaf] Use mobile GraphQL API endpoint [test] Use windows-2019 for tests (At least for now) resolves ytdl-org#31249
(At least for now) resolves ytdl-org#31249
Checklist
Verbose log
Download test extract:
Core test similar apart from this line, which shows that the batch file logic is correct:
Description
Apparently the GitHub CI tests, neither
core
nordownload
, haven't been running on theWindows-latest
platform for some longish time (months?). The relevant action log extract above is what GH shows when the./devscripts/run_tests.bat
is modified with@echo on
.Is it just this:
But supposedly GH made PowerShell the default at least 2 years ago, which seems too long for that to be the problem.
The batch file is running. The nose output shows that it just doesn't find the tests. The code that @dstftw committed is unchanged since switching to GH Actions so presumably the command-line escaping of eg
(
and!
must have worked then (logs expired).Any ideas?
The text was updated successfully, but these errors were encountered: