[rules_score]: refactor requirements provider#179
Merged
Conversation
Add Python converter (rst_to_trlc.py) that transforms RST requirement directives to TRLC format for the S-CORE requirements model. Includes: - Bazel rule (rst_to_trlc) and helper macro (rst_srcs_to_trlc) in private/rst_to_trlc.bzl for build integration - Support for all S-CORE requirement types: AssumedSystemReq, FeatReq, CompReq, and AoU Co-authored-by: ssingh2099
Extend the requirements rule to support assumed system requirements: - Add AssumedSystemRequirementsInfo provider in providers.bzl - Add 'assumed_system' to req_kind values in _requirements rule - Add elif/else branch in _requirements_impl to return the new provider - Add lobster config (lobster_assumed_system_req.yaml) and BUILD target for assumed system requirement traceability extraction
f60bdc1 to
d5de491
Compare
Wire RST-to-TRLC conversion into all requirement macros so users can pass .rst files directly instead of pre-built trlc_requirements targets: - Add assumed_system_requirements() public macro with stable _trlc alias generation for downstream cross-package references - Add _score_requirements() shared helper to deduplicate feature/component macro logic - Extend feature_requirements() and component_requirements() with deps and ref_package parameters for RST source support - Update assumptions_of_use() to accept RST sources and change srcs attribute to require TrlcProviderInfo providers - Export assumed_system_requirements from rules_score.bzl - Add comprehensive Bazel analysis tests (requirements_rst_test.bzl) for all RST-based requirement macros with provider and SphinxSourcesInfo verification
d5de491 to
3973279
Compare
castler
approved these changes
Apr 28, 2026
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.