I'm trying to use "random" in a recipe to take random subsets, but I'm getting "Non-whitelisted import of random" presubmit errors. Since the engine doesn't like me using random.sample(), can it provide an alternative?
Yes... I assume no one is volunteering? :)
me? fix something instead of just filing a bug? hahahaha no
https://chromium-review.googlesource.com/c/infra/luci/recipes-py/+/1369054
The following revision refers to this bug: https://chromium.googlesource.com/infra/luci/recipes-py/+/95a3eec6ae5226c402ca15514f2ccc39d5b367c9 commit 95a3eec6ae5226c402ca15514f2ccc39d5b367c9 Author: Robert Iannucci <iannucci@chromium.org> Date: Mon Dec 10 20:24:37 2018 [random] Add new "random" module. R=bpastene@chromium.org, martiniss@chromium.org Bug: 913124 Change-Id: I0916bd9910e4acdcc459d6bad9d26fc596360b2a Reviewed-on: https://chromium-review.googlesource.com/c/1369054 Reviewed-by: Stephen Martinis <martiniss@chromium.org> Commit-Queue: Robbie Iannucci <iannucci@chromium.org> [add] https://crrev.com/95a3eec6ae5226c402ca15514f2ccc39d5b367c9/recipe_modules/random/api.py [add] https://crrev.com/95a3eec6ae5226c402ca15514f2ccc39d5b367c9/recipe_modules/random/tests/full.expected/basic.json [add] https://crrev.com/95a3eec6ae5226c402ca15514f2ccc39d5b367c9/recipe_modules/random/tests/full.expected/reseed.json [modify] https://crrev.com/95a3eec6ae5226c402ca15514f2ccc39d5b367c9/README.recipes.md [add] https://crrev.com/95a3eec6ae5226c402ca15514f2ccc39d5b367c9/recipe_modules/random/__init__.py [add] https://crrev.com/95a3eec6ae5226c402ca15514f2ccc39d5b367c9/recipe_modules/random/tests/full.py [add] https://crrev.com/95a3eec6ae5226c402ca15514f2ccc39d5b367c9/recipe_modules/random/test_api.py
Comment 1 by iannu...@google.com
, Dec 7