-
Notifications
You must be signed in to change notification settings - Fork 31.5k
[flax] fix repo_check #7914
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
[flax] fix repo_check #7914
Conversation
Unless, this is actually a problem, this adds `modeling_flax_utils` to ignore list. otherwise currently it expects to have a 'tests/test_modeling_flax_utils.py' for it. for context please see: huggingface#3722 (comment)
|
I don't understand why you have a problem. Edit: Not saying that this is useless, I just want to understand why it fails for you and not for me :-) |
|
Something is wrong on your side and CI.
Specifically:
I have no idea why you and CI don't reproduce these failures. |
|
I'm in the middle of something else right now, but will investigate once I'm done. I'm unsure of why the CI hasn't been more angry with the jax PR myself. But I'd like to understand why it's not failing for me and the CI before taking the fix if that makes sense. |
|
Absolutely, @sgugger. I will try to poke and see if the script behaves differently for some reason. I will report back if I find the culprit. It should be safe for you to merge this as the lack of it may impacts other devs, I posted all the details why it's correct in here #7914 (comment) It's your call. |
|
Found part of the culprit - my py37 env doesn't catch the problem, whereas py38 does - now need to figure out whether it's some package difference or python itself. |
|
Oh, interesting! I'm indeed on Python 3.7.9 |
|
and so is CI Using my mightly https://github.com/stas00/conda-tools/blob/master/conda-env-compare.pl - I should get to the root of it in a few minutes |
|
I downgraded the the py38 env to py37 and it doesn't detect the problem anymore. Upgraded it back to py38 via conda and it fails now too! bummer - so it must have been some package. I need to dig more. I'd check |
|
I'm confused by your report: by "it fails now too!" do you mean you don't see the problem anymore? Edit: Think I've found the issue. It's because the presence/absence of jax/flax will change what's in the init. And neither me nor the CI have it installed. |
|
If my reasoning is correct, #7919 should be red. We can then add it to your fixes and merge all of this together. |
|
Yes, this is the culprit. If you So basically the validation script is as good as the preinstalled pre-requisites allow it to be, therefore to move forward to do proper testing we need to have a prerequisites set that contains all possible external packages used by the core library. Perhaps we need to change
and have the But specifically for this issue #7919 will do the trick. I merged it here as you suggested. |
Yeah, I was trying to figure out the difference and there were too many differences in installed modules, so I downgraded to py37, then upgraded to py38 and lost an environment that was good for the purpose of this issue. I eventually recovered it. I need to remember to back up conda envs before I try to mess with them :( |
sgugger
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix and for humoring me while I was investigating the cause!
LysandreJik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Unless, this is actually a problem, this PR adds
modeling_flax_utilsto ignore list. otherwise currently it expects to havetests/test_modeling_flax_utils.pyfor this module.It also adds the 2 new tests that don't run common tests to
TEST_FILES_WITH_NO_COMMON_TESTSFor context please see: #3722 (comment)
now check_repo is happy.
@sgugger