-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Rebuild for hdf51106 #75
Rebuild for hdf51106 #75
Conversation
…da-forge-pinning 2020.06.15.22.23.24
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Seeing the following failure on Windows... ================================== FAILURES ===================================
_______________ TestUnicode.test_unicode_hdf5_python_consistent _______________
self = <h5py.tests.test_file.TestUnicode testMethod=test_unicode_hdf5_python_consistent>
def test_unicode_hdf5_python_consistent(self):
""" Unicode filenames can be used, and seen correctly from python
"""
fname = self.mktemp(prefix=six.unichr(0x201a))
with File(fname, 'w') as f:
> self.assertTrue(os.path.exists(fname))
E AssertionError: False is not true
..\_test_env\lib\site-packages\h5py\tests\test_file.py:493: AssertionError
============================== warnings summary =============================== |
@jakirkham Seems like the Unicode temp file isn't properly created. But how can we be sure, if that's really the case? |
It'd be great to get this merged since newer packages (like pytables) are locking hdf5 version to >=1.10.6 in conda now (: |
Help on this would be welcome. I lack a Windows machine and it's fairly rare I do development there. So this probably needs someone who has that expertise/resources to push this forward. Please let us know if you have someone (or you yourself are that someone 😉) 🙂 |
Maybe we can just skip that test if that is the only failure |
I have a Windows machine but I have no idea how you run your tests. If you can help me get set up I can look into this test |
Great, thanks for helping out @likewei92! 😄 Should just be a matter of checking out this PR locally and running something like this...
There are different variant files in |
I looked into this and found that the file was being created correctly but was somehow not being opened correctly. If you changed In any case, it looks like this tests is safe to ignore. Should we do that as @scopatz suggested? |
Thanks for exploring this @likewei92! 😄 Interesting, with that context, did a bit of searching. Looks like upstream issue ( h5py/h5py#839 ) may be related. Also there's a patch suggested for Am ok with skipping the test. Though I guess this means there will be some issues opening files on Windows. Are we ok with that? |
So I looked into this a little more: the file that's created on disk (when I viewed it with file explorer) has a � in it where the unicode character is supposed to be. I'm ok with bypassing this test for now - I'm actually using h5py on Linux and this is blocking an environment upgrade for me. If we're concerned about the Windows bug, is it possible to publish the Linux version to conda forge first? |
Yeah no objection moving forward as long as we are aware of the tradeoffs. Does someone know what we would need to add to skip this test? |
The test itself is in hdf5 so I don't think we'd be able to tell pytest to skip if unless we modify hdf5 code. Is it possible to override the CI policy and merge this PR? |
It looks like the test is in h5py. It would be better to fix CI. If someone would like to suggest how we skip this test, that would be welcome. |
h5py just uses pytest |
The way that the tests are executed inside h5py is a little restrictive, but this patch skips the test and passes the build on my windows system: From 2b11c25bc866d0fceb52b27da4f51836cbbe727c Mon Sep 17 00:00:00 2001
From: Duncan Macleod <[email protected]>
Date: Fri, 26 Jun 2020 10:22:45 +0100
Subject: [PATCH] skip failing unicode test on windows
---
recipe/meta.yaml | 2 ++
recipe/skip-failing-unicode-test.patch | Bin 0 -> 535 bytes
2 files changed, 2 insertions(+)
create mode 100644 recipe/skip-failing-unicode-test.patch
diff --git a/recipe/meta.yaml b/recipe/meta.yaml
index 547523e..dfb04b9 100644
--- a/recipe/meta.yaml
+++ b/recipe/meta.yaml
@@ -22,6 +22,8 @@ source:
# see https://github.com/h5py/h5py/issues/1244
# https://github.com/h5py/h5py/pull/1325
- ppc64le_test.patch
+ # skip failing unicode test on windows
+ - skip-failing-unicode-test.patch # [win]
build:
number: {{ build }}
diff --git a/recipe/skip-failing-unicode-test.patch b/recipe/skip-failing-unicode-test.patch
new file mode 100644
index 0000000000000000000000000000000000000000..1175aa6a6f86420cf2243b4612b0d9b7a336b9a1
GIT binary patch
literal 535
zcmbtQ!HUBm6ukQtk6xOPnzY>}+g&L1KbA#e)JE2*sDb3~R|DBXA*c25csk?EFiZ*o
z7(Zlyw(4s;SAqNBD?+4}fsoS9KsNv+HRBV!3EEuSGb>9<>vK&%-r;mSHkS*+7;mbg
zqA0eN?{~nb>!E>SneocF05@u~#LHUu@VEUw|3t7J;miQOS22+stZ@OnRWiI1Mrxhu
zxc4ioYn6H>&3`DLcsGWYDvt2#)F}x!_<BMI*x_Lpr=3&0v|()L6f*6p*4;NM{`Eg;
z{v<VR0wfnQYS|gaNzX)0qH}LF>5TT$2d+ajT>T&hF8LH+S+;bt)R*T^g5zOy8d4Qm
HB<JWCYE`4A
literal 0
HcmV?d00001
--
2.27.0.windows.1 The content of the binary patch file should be: diff --git a/h5py/tests/__init__.py b/h5py/tests/__init__.py
index 3fb68a2d..bb525b97 100644
--- a/h5py/tests/__init__.py
+++ b/h5py/tests/__init__.py
@@ -18,6 +18,6 @@ def run_tests(args=''):
from shlex import split
from subprocess import call
from sys import executable
- cli = [executable, "-m", "pytest", "--pyargs", "h5py"]
+ cli = [executable, "-m", "pytest", "--pyargs", "h5py", "-k", "not test_unicode_hdf5_python_consistent"]
cli.extend(split(args))
return call(cli) |
Cool! Can someone please send a PR based off this branch that includes that patch? |
FYI you can skip the test in this repo itself (instead of h5py) by using |
Doing it now, including @likewei92's simpler test modification. |
We might even make an OS switch there, adding @likewei92's suggestion only if Windows is the running OS. |
This PR has been triggered in an effort to update hdf51106.
Notes and instructions for merging this PR:
Please note that if you close this PR we presume that the feedstock has been rebuilt, so if you are going to perform the rebuild yourself don't close this PR until the your rebuild has been merged.
This package has the following downstream children:
And potentially more.
If this PR was opened in error or needs to be updated please add the
bot-rerun
label to this PR. The bot will close this PR and schedule another one. If you do not have permissions to add this label, you can use the phrase@conda-forge-admin, please rerun bot
in a PR comment to have theconda-forge-admin
add it for you.This PR was created by the regro-cf-autotick-bot.
The regro-cf-autotick-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. If you would like a local version of this bot, you might consider using rever. Rever is a tool for automating software releases and forms the backbone of the bot's conda-forge PRing capability. Rever is both conda (
conda install -c conda-forge rever
) and pip (pip install re-ver
) installable.Finally, feel free to drop us a line if there are any issues!
This PR was generated by https://circleci.com/gh/regro/circle_worker/24268, please use this URL for debugging