Repository navigation
feat(crs): validate target compatibility against CRS supported_target (fixes #457) - #485
Open
vatsaljain568 wants to merge 1 commit into
Open
vatsaljain568 wants to merge 1 commit into
vatsaljain568 wants to merge 1 commit into
Conversation
…fixes ossf#457) Signed-off-by: Vatsal Jain <jain.vatsal2006@gmail.com>
vatsaljain568
force-pushed
the
target-compatibility-validation
branch
from
November 16, 2026 10:49
1ea1b68 to
4674fd2
Compare
This branch has not been deployed
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.
Summary
This PR implements target compatibility validation in
CRS.__is_supported_targetas outlined in #457 and tracked under the "Near-Term" roadmap inPLAN.md.Previously,
__is_supported_targetwas a stub unconditionally returningTrue. When running campaigns with multiple CRSs, an incompatible CRS (such as a JVM-only CRS paired with a C project) proceeded to the target build phase and failed with build errors.This change:
language,sanitizer,architecture,engine) againstCRS.config.supported_target.Falseon any mismatch, which triggers the existing graceful skip path inbuild_targetandis_target_built(TaskResult(success=True)with a clear skip message).is_supported_targetmethod onCRS.oss_crs/tests/unit/test_crs_supported_target.py.Fixes #457
User Impact
When running ensemble campaigns with targets that a specific CRS does not support, OSS-CRS now logs a skip message during target-build and allows other compatible CRSs to continue running, rather than aborting the build phase with compiler errors. No config changes or migrations required.
Release Note / Changelog
CHANGELOG.md([Unreleased]) for user-facing changesValidation
All checks passed locally via
uv run verify:ruff check oss_crs oss-crs-infra libCRS: PASSruff format --check oss_crs oss-crs-infra libCRS: PASS (127 files formatted)pyright oss_crs/src libCRS/libCRS oss-crs-infra: PASS (0 errors, 0 warnings)pytest -m "not integration" -v oss_crs: PASS (816 passed, 29 deselected)pytest -m "not integration" -o pythonpath=libCRS -v libCRS/tests: PASS (24 passed)Checklist