Skip to content

[rules_score]: refactor requirements provider#179

Merged
castler merged 3 commits into
mainfrom
joho_adapt_aous_bazel_provider
Apr 28, 2026
Merged

[rules_score]: refactor requirements provider#179
castler merged 3 commits into
mainfrom
joho_adapt_aous_bazel_provider

Conversation

@hoe-jo

@hoe-jo hoe-jo commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

No description provided.

hoe-jo added 2 commits April 28, 2026 10:45
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
@hoe-jo hoe-jo force-pushed the joho_adapt_aous_bazel_provider branch from f60bdc1 to d5de491 Compare April 28, 2026 09:06
@hoe-jo hoe-jo changed the title [rules_score]: assumption_of_use take TRLCInfoProvider as src [rules_score]: refactor requirements provider Apr 28, 2026
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
@hoe-jo hoe-jo force-pushed the joho_adapt_aous_bazel_provider branch from d5de491 to 3973279 Compare April 28, 2026 09:22
@castler castler merged commit 41d3bf2 into main Apr 28, 2026
5 checks passed
@castler castler deleted the joho_adapt_aous_bazel_provider branch April 28, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants