-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix the ability to run network and flaky tests #3070
Conversation
The old setup didn't seem to work on CI, even when we explicitly passed the relevant flags.
Codecov Report
@@ Coverage Diff @@
## master #3070 +/- ##
========================================
Coverage ? 94.8%
========================================
Files ? 67
Lines ? 12876
Branches ? 0
========================================
Hits ? 12207
Misses ? 669
Partials ? 0 |
Hmmm, this is my code. Checking what I missed. We use the similar code internally and it works (I think...) Do we have any flaky tests? I only see one that's marked, and that's skipped anyway (maybe because of this problem):
|
Hmm... maybe it does work, at least in this. But we definitely aren't running the network tests, even with these changes (e.g., look at the |
|
Let's def change to the most reliable & standard approach here. I think I originally got this from https://docs.pytest.org/en/latest/example/simple.html#control-skipping-of-tests-according-to-command-line-option but if this is minority let's make the switch What makes us think the existing approach wasn't working? (not saying that it did work in CI! It does seem to work locally though) |
Pytest reports the exact same number of tests passed, both with and without |
That does sound suspicious! I'm on vacation with bad WiFi but let me confirm in the next few days, if that's ok |
Somewhat weirdly. I get different results; could you confirm yours?
Also of note: |
I'm referring to the tests running on CI, e.g., "Linux py36-flakey" on Azure. If you look at the full logs from this PR (which I made verbose) and scroll down you see:
So for some reason it's not doing flakey tests, even though in theory I'm passing the right flags for it: xarray/ci/azure/unit-tests.yml Line 14 in 681ec0e
Actually, I definitely screwed this up. I should be using |
The old setup didn't seem to work on CI, even when we explicitly passed the
relevant flags.