variables: allow env var to set case visible variables#4354
Merged
Conversation
6f082dc to
152b7cb
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends LISA’s environment-variable-based variable loading to support marking variables as case-visible (i.e., surfaced to test cases) via a dedicated CV_LISA_ prefix, similar to existing secret variable support.
Changes:
- Add
CV_LISA_environment variable prefix support. - Propagate
is_case_visible=Truewhen loading variables from the environment using the new prefix.
152b7cb to
f7b059e
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Enables setting case-visible variables via environment variables, aligning env-based variable configuration with existing secret (S_LISA_) support so values can be surfaced to test cases through case_variables.
Changes:
- Add a new environment variable prefix
CV_LISA_for variables that should be exposed to test cases (is_case_visible=True). - Extend
_load_from_env()to plumb the newis_case_visibleflag into_add_variable().
Contributor
LiliDeng
approved these changes
Mar 19, 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.
Allows setting a case visible variable from the environment. This adds the ability to set the is_case_visible flag (similar to the default and is_secret flags).