Repository navigation
tests: use devcontainer buildifier in pre-commit - #919
Conversation
|
@1cbyc thanks for your contribution. Unfortunately you'll need to sign the Eclipse Contributor Agreement in order to contribute anything to the S-CORE project. I was just looking for proper documentation, and it doesnt seem we have any. But this is a reasonable reference: https://eclipse-score.github.io/score/main/contribute/general/contribution_attribution.html |
Could you create a separate bug ticket for this |
|
Filed #920 with the reproduction and the host-layout assumption isolated. Thanks for pointing it out. |
72dcf0d to
b5f8bb0
Compare
|
Documentation preview for this pull request is available at: |
|
@1cbyc does this account have the ECA singed? I see that the other account mentioned in the first commit does not have it. |
b3b732b to
6c20a22
Compare
1844adc to
6cd330f
Compare
|
Hi @1cbyc I have had contact with the eclipse customer desk. Scine you have a no reply email you need to manually link your github username as it can't do it automatically. |
6cd330f to
bdf5a05
Compare
Signed-off-by: Isaac Emmanuel <[email protected]>
bdf5a05 to
658f873
Compare
|
@MaximilianSoerenPollak but i have confirmed ECA. kindly check. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the switch to the devcontainer-provided Buildifier.
No open issues 🎉
What changed in this PR
Addresses #917 by moving Bazel and Starlark formatting to the devcontainer-provided Buildifier, aligning pre-commit with the repository’s shared tooling.
Changes:
- Replaces the
bazel mod tidyformatting hook with.devcontainer/run-tool buildifier. - Removes the direct
buildifier_prebuiltdependency and refreshes the Bazel lockfile. - Applies formatting across BUILD files, module fixtures, and Starlark rules without changing their logic.
| File | Description |
|---|---|
tools/tests/BUILD |
Reorders test attributes and dependencies. |
src/tests/docs_bzl/scenarios/subdirectory_bundle/producer/BUILD |
Reorders producer fixture attributes. |
src/tests/docs_bzl/scenarios/subdirectory_bundle/consumer/BUILD |
Reorders consumer fixture attributes. |
src/tests/docs_bzl/scenarios/root_docs_config/BUILD |
Reorders documentation fixture attributes. |
src/tests/docs_bzl/scenarios/reference_integration/modern_module/docs/components/unlinked_component/BUILD |
Normalizes bundle and library attribute order. |
src/tests/docs_bzl/scenarios/reference_integration/modern_module/docs/components/component/BUILD |
Reorders bundle attributes. |
src/tests/docs_bzl/scenarios/reference_integration/modern_module/BUILD |
Formats bundle declarations and attribute order. |
src/tests/docs_bzl/scenarios/reference_integration/legacy_module/docs/components/component/BUILD |
Reorders bundle attributes. |
src/tests/docs_bzl/scenarios/reference_integration/legacy_module/BUILD |
Reorders documentation attributes. |
src/tests/docs_bzl/scenarios/nested_bundles/BUILD |
Normalizes loads, attributes, and bundle formatting. |
src/tests/docs_bzl/scenarios/invalid_bundle_placements/BUILD |
Expands bundle dictionaries and reorders attributes. |
src/tests/docs_bzl/scenarios/external_needs_inputs/BUILD |
Reorders documentation attributes. |
src/tests/docs_bzl/scenarios/external_bundle/BUILD |
Reorders external-bundle fixture attributes. |
src/tests/docs_bzl/scenarios/deprecated_needs_data/BUILD |
Reorders documentation attributes. |
src/tests/docs_bzl/scenarios/data_files_runfiles/BUILD |
Formats and repositions bundle declarations. |
src/tests/docs_bzl/scenarios/coverage_summary/BUILD |
Expands compact rule and bundle declarations. |
src/tests/docs_bzl/scenarios/basic_docs/BUILD |
Reorders basic fixture attributes. |
src/tests/docs_bzl/cross_module_fixture/MODULE.bazel |
Formats the module declaration across multiple lines. |
src/tests/docs_bzl/cross_module_fixture/BUILD |
Reorders compatibility fixture attributes. |
src/helper_lib/BUILD |
Reorders test attributes. |
src/extensions/score_sync_toml/BUILD |
Normalizes load and test attribute order. |
src/extensions/score_sphinx_bundle/BUILD |
Sorts extension dependencies. |
src/extensions/score_source_code_linker/BUILD |
Sorts sources and reorders test attributes. |
src/extensions/score_mounts/BUILD |
Reorders test attributes. |
src/extensions/score_metrics/BUILD |
Sorts dependencies. |
src/extensions/score_metamodel/docs/BUILD |
Normalizes loads, attributes, and comment spacing. |
src/extensions/score_metamodel/BUILD |
Sorts dependencies. |
src/docs_cli/BUILD |
Formats source lists and reorders test attributes. |
src/BUILD |
Sorts source labels and reorders requirement-rule attributes. |
scripts_bazel/tests/BUILD |
Reorders test attributes. |
scripts_bazel/BUILD |
Normalizes dependency spacing and attribute order. |
MODULE.bazel.lock |
Refreshes resolution data, retaining transitive Buildifier records. |
MODULE.bazel |
Removes the direct buildifier_prebuilt dependency. |
docs.bzl |
Normalizes indentation, spacing, and trailing commas. |
bzl/tests/basics_test.bzl |
Adds formatter-required spacing. |
bzl/needs_rules.bzl |
Normalizes spacing around comments. |
bzl/mount_rules.bzl |
Adds spacing before a comment block. |
bzl/code_file_lists.bzl |
Adds spacing before a comment block. |
bzl/bundle_rules.bzl |
Normalizes whitespace and continuation indentation. |
bzl/basics.bzl |
Expands the documentation extension list. |
BUILD |
Reorders root documentation attributes and normalizes spacing. |
.pre-commit-config.yaml |
Runs devcontainer Buildifier on matching filenames. |
Review effort: Balanced
📌 Description
Fixes #917.
.devcontainer/run-toolbuildifier_prebuiltdependency🚨 Impact Analysis
✅ Checklist
Validation
pre-commit run --files .pre-commit-config.yaml MODULE.bazel MODULE.bazel.lockbazel mod deps --lockfile_mode=errorbazel test --lockfile_mode=error //... --build_tests_only(24/25 targets passed; the unrelated//src/helper_lib:helper_lib_testssees the VPS-wide/tmp/.gitand takes the runfiles fallback branch instead of its expected no-git-root branch)