bst shell work directory no longer at /buildstream-build on buildstream 2.6.0
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Reproduce the regression by running the shown bst shell utils/generate-cve-report.bst commands with BuildStream 2.5.0 and 2.6.0, then test the bst shell path with --mount cve /buildstream-build. Trace the shell entry point and verify that the mounted files remain accessible at the expected working directory without breaking the 2.6.0 behavior.
Written by the indexing model from the issue text.
Description
In buildstream 2.5.0 and before, bst shell <element.bst> will start the shell in /buildstream-build, e.g.
src # bst --version
2.5.0
src # bst shell utils/generate-cve-report.bst
[--:--:--][ ][ main:core activity ] START Loading elements
[00:00:00][ ][ main:core activity ] SUCCESS Loading elements
[--:--:--][ ][ main:core activity ] START Resolving elements
[00:00:00][ ][ main:core activity ] SUCCESS Resolving elements
[--:--:--][ ][ main:core activity ] START Initializing remote caches
[00:00:01][ ][ main:core activity ] SUCCESS Initializing remote caches
[--:--:--][ ][ main:core activity ] START Query cache
[00:00:01][ ][ main:core activity ] SUCCESS Query cache
[--:--:--][6deaf86b][ main:utils/generate-cve-report.bst ] START Staging dependencies
[00:00:00][6deaf86b][ main:utils/generate-cve-report.bst ] SUCCESS Staging dependencies
[--:--:--][6deaf86b][ main:utils/generate-cve-report.bst ] START Integrating sandbox
[00:00:00][6deaf86b][ main:utils/generate-cve-report.bst ] SUCCESS Integrating sandbox
[--:--:--][6deaf86b][ main:utils/generate-cve-report.bst ] STATUS Running command
sh -i
<:/buildstream-build]$ pwd
/buildstream-build
In buildstream 2.6.0, the work directory is instead /
src # bst --version
2.6.0
src # bst shell utils/generate-cve-report.bst
[--:--:--][ ][ main:core activity ] START Loading elements
[00:00:00][ ][ main:core activity ] SUCCESS Loading elements
[--:--:--][ ][ main:core activity ] START Resolving elements
[00:00:00][ ][ main:core activity ] SUCCESS Resolving elements
[--:--:--][ ][ main:core activity ] START Initializing remote caches
[00:00:01][ ][ main:core activity ] SUCCESS Initializing remote caches
[--:--:--][ ][ main:core activity ] START Query cache
[00:00:00][ ][ main:core activity ] SUCCESS Query cache
[--:--:--][6deaf86b][ main:utils/generate-cve-report.bst ] START Staging dependencies
[00:00:00][6deaf86b][ main:utils/generate-cve-report.bst ] SUCCESS Staging dependencies
[--:--:--][6deaf86b][ main:utils/generate-cve-report.bst ] START Integrating sandbox
[00:00:00][6deaf86b][ main:utils/generate-cve-report.bst ] SUCCESS Integrating sandbox
[--:--:--][6deaf86b][ main:utils/generate-cve-report.bst ] STATUS Running command
sh -i
<te-cve-report.bst:/]$ pwd
/
<te-cve-report.bst:/]$ ls
bin dev etc lib lib64 proc sbin tmp usr var
We have issue when some files are mounted to /buildstream-build and are accessed by relative path with bst shell <element> --mount cve /buildstream-build -- <script-accessing-mounted-files>
- Dominant language
- Python
- Stars
- 144
- Forks
- 45
- Avg merge
- 20h 38m
- Merged PRs (30d)
- 6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/buildstream
-
logging
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/buildstream#2150 · 3 comments ·
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
apache/buildstream#2143 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
apache/buildstream#2194 ·
-
Modification time of an element with an open workspace propagates into consumer element's sandbox Openbug
Difficulty 3/5 1-2 days Newbie friendliness 58/100
apache/buildstream#2186 · 2 comments · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
apache/buildstream#2184 · 1 comment ·
All issues in apache/buildstream
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100