Skip to content

tests: use runfiles.CreateOrRaise in release_test_helper - #4052

Merged
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix_broken_head_tests
Aug 15, 2026
Merged

tests: use runfiles.CreateOrRaise in release_test_helper#4052
rickeylev merged 1 commit into
bazel-contrib:mainfrom
rickeylev:fix_broken_head_tests

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Using runfiles.Create() returns an optional Runfiles object, which
can lead to typing issues and runtime attribute errors if runfiles
cannot be created or located.

Switch to runfiles.CreateOrRaise() in _find_real_template_path to
ensure a non-None Runfiles instance is returned and fail fast if
runfiles are unavailable.

Use runfiles.CreateOrRaise() in _find_real_template_path to ensure a
non-None Runfiles instance and satisfy static type checking.
@rickeylev
rickeylev requested a review from aignas as a code owner August 15, 2026 05:39
@rickeylev
rickeylev enabled auto-merge August 15, 2026 05:39
@rickeylev
rickeylev merged commit e293867 into bazel-contrib:main Aug 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant