-
Notifications
You must be signed in to change notification settings - Fork 54
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
Add --test={skip|native|native-and-emulated}
#1190
Conversation
maybe Or we could also make this opt-in, by saying: |
If we make it opt-in, we can print a big fat warning and then say: to run tests in non-native environments, use |
Do you prefer this to be opt-in? I originally wanted to keep the default behavior the same but up to you.
I guess the question (to decide the best default) is whether "on average" running tests on non-native will work more often than it will fail. Let me know what you prefer and I will adapt the code. |
I think opt-in makes sense here. Looking from the perspective of someone who just wants to invoke rattler-build. I would not expect a big fat error. |
So, would |
Also should I add a test in |
We had a build tools meeting and I brought up this question :) One suggestion was to copy what conda-forge does: https://conda-forge.org/docs/maintainer/conda_forge_yml/#test
Although we don't really know when there is an "emulator". We could however potentially infer that if there are any We could also retire the current
Anyways, just ideas. |
I like the idea of something more expressive than a boolean flag. I also think it would be nice to propose something related to emulation/cross-compilation so we don't have to compute that logic "outside" of So, considering all the comments above, we could do:
We can have WDYT? |
Looks good to me! I still would print a warning if tests are not run when cross compiling though. |
--no-test-if-emulate
flag --test={skip|native|native-and-emulated}
LGTM |
Nice! |
Excellent work @hadim! I think we need to keep the old flag to not break conda-forge (and we remove it in a few months). The old flag can just override the test strategy to skip, right? |
Thanks! |
Head branch was pushed to by a user without write access
See #1175 for context.
It adds a new flag to
build
that allow skipping the tests if cross compiling:--no-test-if-emulate
I have a few questions:
noarch
should be handled here? or when should we consider the build is a cross compilation or not?