Skip to content

Conversation

@bnbhat
Copy link
Contributor

@bnbhat bnbhat commented Jan 27, 2026

Description

Thermal zone indices can change across reboots, making name-based identification unreliable. This change uses the zone type field instead, ensuring consistent test execution.

Additionally, thermal zone interfaces are sometimes repurposed for monitoring non-thermal parameters (e.g., voltages on Qualcomm RB3, RB8 platforms). These edge cases are excluded from test plans using regex patterns matched against the type field.

When both pre-suspend and after-suspend tests are generated from templates, a watchdog-triggered reboot can cause zone index changes, invalidating regex exclusions based on zone names and causing previously excluded tests to run unexpectedly.

This PR makes the test use type such as cpu5-thermal instead of index thermal_zone8

Resolved issues

https://warthogs.atlassian.net/browse/PECA-1263

@bnbhat bnbhat requested a review from weizhenwu January 27, 2026 12:40
@bnbhat bnbhat force-pushed the bnbhat/thermal-zone-fix-1 branch 2 times, most recently from 07d876c to a9e2ead Compare January 27, 2026 13:19
Thermal zone indices can change across reboots, making name-based
identification unreliable. This change uses the zone type field
instead, ensuring consistent test execution.

Additionally, thermal zone interfaces are sometimes repurposed for
monitoring non-thermal parameters (e.g., voltages on Qualcomm RB3,
RB8 platforms). These edge cases are excluded from test plans using
regex patterns matched against the type field.

When both pre-suspend and after-suspend tests are generated from
templates, a watchdog-triggered reboot can cause zone index changes,
invalidating regex exclusions based on zone names and causing
previously excluded tests to run unexpectedly.
@bnbhat bnbhat force-pushed the bnbhat/thermal-zone-fix-1 branch from a9e2ead to 17767ff Compare January 27, 2026 13:26
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.

2 participants