Skip to content

Move score_tooling dev targets to tools/BUILD - #222

Merged
antonkri merged 1 commit into
mainfrom
move-score-tooling-to-tools
Sep 17, 2026
Merged

antonkri merged 1 commit into
mainfrom
move-score-tooling-to-tools

Conversation

@antonkri

@antonkri antonkri commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

This pull request restructures Bazel development tooling by moving tool targets (copyright, formatting, license checks) out of the root BUILD file into a new tools/BUILD file. This change helps keep the root build configuration free from dev dependencies and clarifies the separation between core build logic and developer tooling. It also updates documentation, pre-commit hooks, and CI workflows to reference the new tool locations.

@github-actions

Copy link
Copy Markdown
Contributor

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: db655037-2e08-459d-b939-83347abc0f1f
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: For repository 'platforms', the root module requires module version platforms@1.0.0, but got platforms@1.1.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_platform', the root module requires module version score_platform@0.7.1, but got score_platform@0.7.2 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_oci', the root module requires module version rules_oci@2.2.7, but got rules_oci@2.3.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 3 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:license-check': no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/time/time/BUILD
ERROR: no such target '//:license-check': target 'license-check' not declared in package '' defined by /home/runner/work/time/time/BUILD
INFO: Elapsed time: 18.131s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@PiotrKorkus PiotrKorkus left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or docs() target can be moved to docs/BUILD - same effect (docs is separated from dev_dependencies) but less code moved.

Both solutions should do the job - up to you @antonkri

@antonkri
antonkri merged commit 866479f into main Sep 17, 2026
23 checks passed
@antonkri
antonkri deleted the move-score-tooling-to-tools branch September 17, 2026 11:47
@github-project-automation github-project-automation Bot moved this from In Progress to Done in TIM - Time FT Sep 17, 2026
antonkri added a commit that referenced this pull request Sep 18, 2026
score/time_slave/tests/reference_integration/ is built specifically for
consumption by reference_integration's per-module unit-test sweep
(@score_time//score/...). Its BUILD files load() score_itf, rules_pkg,
score_rules_imagefs and nlohmann_json, but all four were only declared as
dev_dependency = True in this module's own MODULE.bazel. Once score_time
is used as a non-root module (e.g. by reference_integration), those repos
become invisible and package loading fails before target selection even
starts - identical failure mode to the score_tooling issue fixed for the
root BUILD in #222.

Drop dev_dependency = True from the four bazel_deps (plus the standalone
flag on the json_schema_validator http_archive, which needs nlohmann_json
to load its own BUILD file). The imagefs/oci module extensions themselves
stay dev_dependency - only the repos need to be visible for load().
PiotrKorkus pushed a commit that referenced this pull request Sep 18, 2026
score/time_slave/tests/reference_integration/ is built specifically for
consumption by reference_integration's per-module unit-test sweep
(@score_time//score/...). Its BUILD files load() score_itf, rules_pkg,
score_rules_imagefs and nlohmann_json, but all four were only declared as
dev_dependency = True in this module's own MODULE.bazel. Once score_time
is used as a non-root module (e.g. by reference_integration), those repos
become invisible and package loading fails before target selection even
starts - identical failure mode to the score_tooling issue fixed for the
root BUILD in #222.

Drop dev_dependency = True from the four bazel_deps (plus the standalone
flag on the json_schema_validator http_archive, which needs nlohmann_json
to load its own BUILD file). The imagefs/oci module extensions themselves
stay dev_dependency - only the repos need to be visible for load().

Co-authored-by: antonkri <antonkri@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants