Repository navigation
Exec mode for build.sh - #716
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #716 +/- ##
==========================================
+ Coverage 89.90% 89.92% +0.01%
==========================================
Files 50 50
Lines 16957 16990 +33
==========================================
+ Hits 15246 15278 +32
- Misses 1711 1712 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jkloetzke
force-pushed
the
exec-cmd
branch
4 times, most recently
from
October 6, 2026 19:00
45fe816 to
0e975ad
Compare
Adds a new "exec" invocation mode to "bob _invoke", usable as "build.sh exec <command>". Each argument is a full command (with its own parameters) executed in the step's workspace with the same environment as "build.sh shell". Multiple commands run one after another and execution stops at the first one that fails. Since a single Invoker can now run several sandboxed commands in one call, the sandbox root is allocated fresh per command instead of being reused, as the sandbox helper does not tolerate a pre-populated root.
Add some hints that the "exec" mode of checkout/build/package.sh can be used to execute some command in the workspace environment.
Exercise the "exec" invocation mode, i.e. "build.sh exec <command>...". It must work for every supported scripting language (bash, python, PowerShell) and regardless of the sandboxing mode (none, slim or full/fat sandbox with an image).
Use "raise AssertionError" instead which is ignored for coverage counting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.