Skip to content

feat(bazel): updated score_bazel_cpp_toolchains to 1.0.2; add score_cpp_policies 0.1.0 as dev_dependency; add injectable warning features for gcc warnings in all gcc toolchains and the llvm toolchain - #524

Open
ian-harmon-traton wants to merge 6 commits into
eclipse-score:mainfrom
ian-harmon-traton:feat/injectable_warning_features_gcc_toolchain

Conversation

@ian-harmon-traton

Copy link
Copy Markdown

Summary

Addresses the need for migrating to injectable warning features as mentioned in #519

What Changed

  • Updated score_bazel_cpp_toolchains bazel_dep to 1.0.2
  • Added score_cpp_policies bazel_dep as 0.1.0
  • Added extra_known_features for all gcc toolchains to include all score_cpp_policies warning features except for warnings_as_errors

Validation

Build passes.

All unit tests passed except:

//score/language/safecpp/aborts_upon_exception:abortsuponexception_toolchain_test FAILED

…cies 0.1.0 as dev_dependency; add injectable warning features for gcc warnings in all gcc toolchains and the llvm toolchain
@github-project-automation github-project-automation Bot moved this to In Progress in BAS - Baselibs FT Aug 26, 2026
@ian-harmon-traton ian-harmon-traton changed the title feat: updated score_bazel_cpp_toolchains to 1.0.2; add score_cpp_policies 0.1.0 as dev_dependency; add injectable warning features for gcc warnings in all gcc toolchains and the llvm toolchain feat(bazel): updated score_bazel_cpp_toolchains to 1.0.2; add score_cpp_policies 0.1.0 as dev_dependency; add injectable warning features for gcc warnings in all gcc toolchains and the llvm toolchain Aug 26, 2026
@4og
4og requested a balanced review from Copilot August 26, 2026 15:40

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@4og
4og requested a balanced review from Copilot August 28, 2026 08:03

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

Suppressed comments (4)

MODULE.bazel:55

  • The new multiline argument is missing the trailing comma used throughout this file, so the checked Starlark formatter will report a difference.
    extra_known_features = SCORE_GCC_WARNING_FEATURES_POLICY

MODULE.bazel:46

  • This added argument is not in the repository's formatted Starlark form, and the following whitespace-only line is also introduced here. Remove that line and add the trailing comma so format.check passes.
    extra_known_features = SCORE_GCC_WARNING_FEATURES_POLICY
    

MODULE.bazel:64

  • The new multiline argument is missing the trailing comma used throughout this file, so the checked Starlark formatter will report a difference.
    extra_known_features = SCORE_GCC_WARNING_FEATURES_POLICY

MODULE.bazel:153

  • The new multiline argument is missing the trailing comma used throughout this file, so the checked Starlark formatter will report a difference.
    extra_known_features = SCORE_GCC_WARNING_FEATURES_POLICY

Comment thread MODULE.bazel
Comment thread MODULE.bazel Outdated
Comment thread MODULE.bazel Outdated
Comment thread MODULE.bazel Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ian Harmon (Traton R&D US) <ian.harmon@us.traton.com>
@ian-harmon-traton
ian-harmon-traton deployed to workflow-approval August 28, 2026 19:18 — with GitHub Actions Active
@ian-harmon-traton
ian-harmon-traton deployed to workflow-approval August 28, 2026 19:18 — with GitHub Actions Active
@ian-harmon-traton
ian-harmon-traton deployed to workflow-approval August 28, 2026 19:18 — with GitHub Actions Active
@ian-harmon-traton
ian-harmon-traton deployed to workflow-approval August 28, 2026 19:18 — with GitHub Actions Active
@github-actions github-actions Bot added the bazel Bazel and Starlark build files label Aug 28, 2026

@4og 4og left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi @ian-harmon-traton, thank you for the contribution! I'll check this PR on Monday.

@4og
4og requested a balanced review from Copilot August 28, 2026 20:12

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-524: https://eclipse-score.github.io/baselibs/pr-524/

@4og 4og left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

See my comments.

To fix the formatting issues, simply run bazel run //:format.fix

Comment thread MODULE.bazel Outdated
target_os = "linux",
use_default_package = True,
version = "12.2.0",
extra_known_features = SCORE_GCC_WARNING_FEATURES_POLICY,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

An extra_enabled_features needs to be added additionally. And it should list minimal_warnings and warnings_as_errors.

And then this line can be removed:

build --features=minimal_warnings --features=-strict_warnings --features=warnings_as_errors

Comment thread MODULE.bazel Outdated
Comment thread MODULE.bazel
Comment thread MODULE.bazel Outdated
@ian-harmon-traton

ian-harmon-traton commented Sep 3, 2026

Copy link
Copy Markdown
Author

Been busy this week - I'll push the suggested changes ASAP, thank you for the review and comments!

@ian-harmon-traton

Copy link
Copy Markdown
Author

Added suggested changes and merged with latest Main branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bazel Bazel and Starlark build files

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants