You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by "mir-faisal-ahmed (via GitHub)" <gi...@apache.org> on 2025/07/18 09:49:35 UTC
[I] `bst build` command fails intermittently [buildstream]
mir-faisal-ahmed opened a new issue, #2037:
URL: https://github.com/apache/buildstream/issues/2037
Running `bst build`, is inconsistent; Buildstream, seems to be attempting to resolve the link elements first, giving a circular dependency error; This error seems occurs intermittently, which might be pointing to a race condition; as running `bst build <$target_element.bst>` does not generate the same circular dependency issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] `bst build` command fails intermittently [buildstream]
Posted by "harrysarson (via GitHub)" <gi...@apache.org>.
harrysarson commented on issue #2037:
URL: https://github.com/apache/buildstream/issues/2037#issuecomment-3276297214
Hi, I had some free time recently so did some digging into this.
> Buildstream, seems to be attempting to resolve the link elements first, giving a circular dependency error;
I have managed to reproduce this issue.
It is a bug in the loader, essentially the same
issue as https://github.com/apache/buildstream/issues/1455 but the fix
(https://github.com/apache/buildstream/pull/1701) does not fix these issues
because we are doing `bst build link.bst` rather than `bst build
junction.bst:element.bst`. Doing the load via the link element confuses the
logic for ensuring fully loaded because the `provinance_node` is not `None`
in `Loader.get_loader`.
I think I have a fix I can propose for this (along similar lines to #1701). Will try and put an PR up at some point.
> This error seems occurs intermittently, which might be pointing to a race condition
This error is _not_ caused by a race condition (there is no concurrency in the
loader). The intermittent failures come from the order in which elements are
loaded when running `bst build` or `bst show` with no arguments.
The implementation of argument-less `bst [build|show]` generates a list of
elements to load via a call to `Project.get_default_targets()`[^1] which does an
`os.walk` on the elements directory. `os.walk` does not iterate in a
deterministic order and so the order in which elements are loaded varies.
If the problematic element are loaded first then buildstream crashes with the
circular deps issue and if other elements are loaded first then buildstream runs
successfully. This explains the intermittent failure.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] `bst build` command fails intermittently [buildstream]
Posted by "juergbi (via GitHub)" <gi...@apache.org>.
juergbi closed issue #2037: `bst build` command fails intermittently
URL: https://github.com/apache/buildstream/issues/2037
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org