-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CI failure - Windows unit tests #12372
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
Comments
Oldest failure seems to be https://dev.azure.com/ms/vscode-python/_build/results?buildId=88048&view=logs&j=c988df44-9d9a-569e-48be-286abc0c9c8f&t=e05b582e-afad-5edb-605e-ce81b7e22a0b for #12232 (the failure isn't related to the PR). Seems like
Maybe a related issue: https://github.com/pytest-dev/py/issues/245 The quickest fix would be to force We could also try removing the offending test nodes and files 🙃 |
Windows unit tests are passing for the CI build for #12407: https://dev.azure.com/ms/vscode-python/_build/results?buildId=88808&view=results |
Hi 👋 , Can I get some feedback on this comment: pytest-dev/pytest#7477 (comment)? Seems to be directly related/cause for this issue, so it would be great to be able to figure out the problem/solve it before 6.0 is out. Thanks! |
Hi @nicoddemus, What kind of specific feedback are you looking for? Do you want me to try out combinations of pytest 5.4.3 and py-1.8.1, py-1.8.2, and py-1.9.0? |
Hi @kimadeline, It is just that the underlying issue is not clear to me: the output has changed in the sense that the It would be helpful to understand what caused the problem for vs code, as we would love to have this resolved. |
Short explanationThe output of running Bit more detailsAs part of our CI test suites we have some tests where we compare the output of I noticed was that we had silently started using Given this folder structure: The Windows output changed: diff --git a/output_json_1.8.1.json b/output_json_1.8.2.json
index 87eec17..3dc6573 100644
--- a/output_json_1.8.1.json
+++ b/output_json_1.8.2.json
@@ -1094,20 +1094,6 @@
"markers": [],
"parentid": "./tests/v/test_spam.py"
},
- {
- "id": "./tests/w/test_spam.py::test_simple",
- "name": "test_simple",
- "source": ".\\tests\\w\\test_spam.py:4",
- "markers": [],
- "parentid": "./tests/w/test_spam.py"
- },
- {
- "id": "./tests/w/test_spam_ex.py::test_simple",
- "name": "test_simple",
- "source": ".\\tests\\w\\test_spam_ex.py:4",
- "markers": [],
- "parentid": "./tests/w/test_spam_ex.py"
- },
{
"id": "./tests/x/y/z/test_ham.py::test_simple",
"name": "test_simple",
@@ -1128,6 +1114,20 @@
"source": ".\\tests\\x\\y\\z\\b\\test_spam.py:7",
"markers": [],
"parentid": "./tests/x/y/z/b/test_spam.py"
+ },
+ {
+ "id": "./tests/w/test_spam.py::test_simple",
+ "name": "test_simple",
+ "source": ".\\tests\\w\\test_spam.py:4",
+ "markers": [],
+ "parentid": "./tests/w/test_spam.py"
+ },
+ {
+ "id": "./tests/w/test_spam_ex.py::test_simple",
+ "name": "test_simple",
+ "source": ".\\tests\\w\\test_spam_ex.py:4",
+ "markers": [],
+ "parentid": "./tests/w/test_spam_ex.py"
}
]
} Or in a UI-based diff checker: |
Thanks @kimadeline for writing a detailed description of the problem. I can see a collection difference between --- out-1.8.1 2020-07-16 09:43:54.272329900 -0300
+++ out-1.8.2 2020-07-16 09:39:21.247834200 -0300
@@ -1,9 +1,8 @@
======================================= test session starts =======================================
-platform win32 -- Python 3.7.6, pytest-5.4.3, py-1.8.1, pluggy-0.13.1
+platform win32 -- Python 3.7.6, pytest-5.4.3, py-1.8.2, pluggy-0.13.1
rootdir: d:\projects\pytest\.tmp, inifile: pytest.ini
plugins: hypothesis-5.14.0, forked-1.1.3, xdist-1.33.0
collected 61 items
-
<Package D:\projects\pytest\.tmp\pythonFiles\tests>
<Module test_normalize_for_interpreter.py>
<Class TestNormalizationScript>
@@ -12,16 +11,13 @@
<Function test_withHangingIndent>
<Function test_clearOutExtraneousNewlines>
<Function test_clearOutExtraLinesAndWhitespace>
-<Package D:\projects\pytest\.tmp\pythonFiles\tests\debug_adapter>
<Module test_install_debugpy.py>
<Function test_install_debugpy>
-<Package D:\projects\pytest\.tmp\pythonFiles\tests\ipython>
<Module test_variables.py>
<Function test_variable_list>
<Function test_variable_value>
<Function test_dataframe_info>
<Function test_dataframe_rows>
-<Package D:\projects\pytest\.tmp\pythonFiles\tests\testing_tools\adapter>
<Module test___main__.py>
<UnitTestCase ParseGeneralTests>
<TestCaseFunction test_unsupported_command>
@@ -71,7 +67,6 @@
<TestCaseFunction test_one_arg>
<TestCaseFunction test_quotation_marks>
<TestCaseFunction test_whitespace>
-<Package D:\projects\pytest\.tmp\pythonFiles\tests\testing_tools\adapter\pytest>
<Module test_cli.py>
<UnitTestCase AddCLISubparserTests>
<TestCaseFunction test_discover> As we can see, 4 packages for some reason are not being collected in However, I get the same collection tree with pytest's --- out-1.8.1-master 2020-07-16 09:42:22.989084900 -0300
+++ out-1.8.2-master 2020-07-16 09:42:31.749859100 -0300
@@ -1,5 +1,5 @@
======================================= test session starts =======================================
-platform win32 -- Python 3.7.6, pytest-6.0.0rc2.dev45+g71ab6236a, py-1.8.1, pluggy-0.13.1
+platform win32 -- Python 3.7.6, pytest-6.0.0rc2.dev45+g71ab6236a, py-1.8.2, pluggy-0.13.1
rootdir: d:\projects\pytest\.tmp, configfile: pytest.ini
plugins: hypothesis-5.14.0, forked-1.1.3, xdist-1.33.0
collected 61 items So whatever the problem was it will be fixed in While it is interesting to investigate further, we don't currently have plans for a |
Sadly we pinned pytest to |
Wouldn't be possible to use |
Well, we could, but not only would we still need to pin pytest to Nonetheless I can bring it up to the team whenever |
https://dev.azure.com/ms/vscode-python/_build/results?buildId=88164&view=logs&j=e7ebb862-ce3e-5fd4-27ed-c97d7dbc698e&t=cdf7b4d7-ce31-509a-4cc5-d6c8b2fdc4b0&l=960
pythonFiles\tests\testing_tools\adapter\test_functional.py:163: AssertionError
The text was updated successfully, but these errors were encountered: