Repository navigation
test(crs): add unit tests for build_target, output checks, and entry init - #566
Open
ChandanKT-git wants to merge 1 commit into
Open
ChandanKT-git wants to merge 1 commit into
ChandanKT-git wants to merge 1 commit into
Conversation
…init Signed-off-by: Chandan K T <cktofficial24@gmail.com>
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
Add unit tests in
oss_crs/tests/unit/test_crs_build_target.pycoveringCRS.from_yaml_file,CRS.from_crs_compose_entry,CRS.is_target_built,CRS.build_target(cache hit, stale-cache rebuild when outputs are missing, image-hash/tag failure paths, andtarget_dependentrun image builds), andget_image_content_hashinoss_crs/src/crs.py.This complements the
prepare-phase andinit_crs_repotests intest_crs_prepare.py(added in #312) andtest_offline_flag.py, raisingoss_crs/src/crs.pyunit coverage from 52% to 87% without modifying production code.User Impact
Release Note / Changelog
CHANGELOG.md([Unreleased]) for user-facing changesValidation
Ran
uv run verify:ruff check oss_crs oss-crs-infra libCRS: passedruff format --check oss_crs oss-crs-infra libCRS: 129 files already formattedpyright oss_crs/src libCRS/libCRS oss-crs-infra: 0 errors, 0 warningspytest -m "not integration" -v oss_crs: 835 passed, 29 deselectedpytest -m "not integration" -o pythonpath=libCRS -v libCRS/tests: 31 passedChecklist