Skip to content

fix(config): honor ARTEMIS_VIDEO_RECORDING_ENABLED=false when the alias is unset - #215

Open
dbisina wants to merge 1 commit into
google:mainfrom
dbisina:fix/video-recording-env-false
Open

dbisina wants to merge 1 commit into
google:mainfrom
dbisina:fix/video-recording-env-false

Conversation

@dbisina

@dbisina dbisina commented Oct 26, 2026

Copy link
Copy Markdown

ARTEMIS_VIDEO_RECORDING_ENABLED and ARTEMIS_WITH_VIDEO_RECORDING_TOOLS were combined with _parse_bool(A) or _parse_bool(B). When A is explicitly false and B is unset, False or None is None, so the override was dropped: video stayed on if scrcpy/FFmpeg were detected, and an explicit video_analyzer.enabled=true in the config file was not overridden.

This now takes the values that are set, and uses any() of them. A lone false is applied to both video_analyzer and pro.video_analyzer. The conflicting-alias cases keep their previous result (an explicit true wins), and nothing changes when neither variable is set.

Added a parametrized test in tests/unit/test_config_package.py covering false/unset, unset/false, false/false, true/unset, unset/true and both conflicting orders. The false/unset row fails without the fix. tests/unit/test_config_package.py: 40 passed.

Fixes #202

…as is unset

The override was resolved with `_parse_bool(A) or _parse_bool(B)`. With A
explicitly false and B unset that evaluates to None, so the override was
dropped and automatic tool detection kept recording enabled.

Collect the values that are set and apply them; for conflicting aliases
an explicit true still wins, as before.

Fixes google#202
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.

fix(config): honor ARTEMIS_VIDEO_RECORDING_ENABLED=false when the alias is unset

1 participant