Skip to content

Additional build dependency checks - #739

Merged
jkloetzke merged 3 commits into
BobBuildTool:masterfrom
jkloetzke:additional-checks
Nov 13, 2026
Merged

jkloetzke merged 3 commits into
BobBuildTool:masterfrom
jkloetzke:additional-checks

Conversation

@jkloetzke

Copy link
Copy Markdown
Member

With --check-deps, all workspaces that are visible to a step are hashed
before and after the step is executed without a sandbox. If any of them
changed, the build fails and modified build and package workspaces are
invalidated so that they are rebuilt on the next invocation.

Fixes #354.

Steps must not modify the workspaces of their dependencies. Inside a
sandbox this is enforced by mounting them read-only. Outside of a
sandbox, nothing prevented a step from inadvertently changing them.

With --check-deps, all workspaces that are visible to a step are hashed
before and after the step is executed without a sandbox. If any of them
changed, the build fails and modified build and package workspaces are
invalidated so that they are rebuilt on the next invocation.

The check is enabled by default for "bob build" and disabled for
"bob dev". It can be configured with the "check_deps" key in
default.yaml.

Jenkins builds are checked too, unless disabled by the new
"jobs.check-deps" extended option. The option is only recorded in the
job spec if disabled so that existing jobs are not reconfigured and
scheduled again.

Fixes BobBuildTool#354.
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.40%. Comparing base (2cf114a) to head (76c4f2e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #739      +/-   ##
==========================================
+ Coverage   90.37%   90.40%   +0.02%     
==========================================
  Files          59       59              
  Lines       17352    17404      +52     
==========================================
+ Hits        15682    15734      +52     
  Misses       1670     1670              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jkloetzke
jkloetzke merged commit 88daed8 into BobBuildTool:master Nov 13, 2026
11 checks passed
@jkloetzke
jkloetzke deleted the additional-checks branch November 13, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: additional checks for source tree

1 participant