Non-determenistics build order results in failed builds #3608
Labels
locked
[bot] locked due to inactivity
stale::closed
[bot] closed after being marked as stale
stale
[bot] marked as stale due to inactivity
Actual Behavior
conda build spontaneously fails when building two packages from one recipe
Expected Behavior
conda build should succeed
Steps to Reproduce
The recipe run enough times.
This build recipe includes two packages: testpkg and testpkg-client.
Problem:
The build order of these packages is non-determenistic as function render_recipe may return results in arbitrary order.
Build order:
testpkg-client
,testpkg
When conda build decides that it wants to build
testpkg-client
as a first package and recipe hasGIT_*
variables in it it will trigger execution this line which tries to move work dir to another location.But as the
work
directory already exists it results in nested pathwork/work
which makes directory not installable or prevents population of environment variables.When I tried to fix it replacing offending move line with following code:
It builds the package, but fails on test stage, where test enviroment still installs
testpkg
instead oftestpkg-client
.Removing
GIT_*
from recipe variables also results in this error.Build order:
testpkg
,testpkg-client
Everything built and tested as expected without any problems.
Output of conda info
The text was updated successfully, but these errors were encountered: