Skip to content

Conversation

viki435
Copy link
Contributor

@viki435 viki435 commented Aug 12, 2025

Primary JIRA: VLCLJ-2513
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for
power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
@vishnu-khanth
Copy link
Contributor

build seems to be failing

Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
@vishnu-khanth vishnu-khanth requested a review from Copilot August 19, 2025 09:14
Copilot

This comment was marked as outdated.

@vishnu-khanth vishnu-khanth requested a review from Copilot August 20, 2025 06:04
Copilot

This comment was marked as outdated.

@vishnu-khanth
Copy link
Contributor

Conflicts have to be resolved in this PR!

viki435 and others added 7 commits August 21, 2025 00:35
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power, performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
@vishnu-khanth vishnu-khanth requested a review from Copilot August 21, 2025 05:50
Copilot

This comment was marked as outdated.

@vishnu-khanth vishnu-khanth requested a review from Copilot August 22, 2025 07:03
Copilot

This comment was marked as outdated.

Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power,
performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
@vishnu-khanth vishnu-khanth requested a review from Copilot August 22, 2025 08:34
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577
Fix: Handling GTEST_FAIL logic for multi-device scenario for power,
performance and scheduler modules.

Signed-off-by: viki435 <[email protected]>
Copilot

This comment was marked as outdated.

@vishnu-khanth vishnu-khanth requested a review from Copilot August 22, 2025 08:42
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes GTEST_FAIL logic for multi-device scenarios across power, performance, and scheduler modules. The key changes ensure that tests fail only when all devices lack support, rather than failing immediately when a single device doesn't support the feature.

Key changes:

  • Added class-level boolean flags to track if any device supports the feature
  • Replaced immediate failure on unsupported features with logging and continued iteration
  • Added final check to fail only if no devices support the feature across all devices

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test_sysman_scheduler.cpp Added is_scheduler_supported flag and refactored failure logic to check all devices before failing
test_sysman_power.cpp Added is_power_supported flag and updated failure handling for multi-device power testing
test_sysman_performance.cpp Added is_performance_supported flag and modified failure logic for performance module testing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -266,27 +316,34 @@ class PerformanceModuleParamComputePerformanceFactorTest
LZT_TEST_P(
PERFORMANCE_COMPUTE_TEST,
GivenValidPerformanceHandleWhenSettingMultiplePerformanceFactorForComputeThenValidPerformanceFactorIsReturned) {
bool is_perf_supported = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it defined inside the test?
it should be added in class PerformanceModuleParamComputePerformanceFactorZesTest & PerformanceModuleParamComputePerformanceFactorTest

and can be renamed to is_performance_supported to maintain consistency in this entire file

power_sustained_set.limitValueLocked);
EXPECT_EQ(power_sustained_get.interval, power_sustained_set.interval);
EXPECT_EQ(power_sustained_get.limit, power_sustained_set.limit);
EXPECT_EQ(power_peak_get.limitValueLocked,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why power_sustained is changed to power_peak ?

@@ -607,298 +764,229 @@ LZT_TEST_F(
}
EXPECT_ZE_RESULT_SUCCESS(status);
} else {
LOG_INFO << "Set limit not supported due to sustained "
LOG_INFO << "Set limit not supported due to peak "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly here. why sustained is changed to peak ?

@@ -607,298 +764,229 @@ LZT_TEST_F(
}
EXPECT_ZE_RESULT_SUCCESS(status);
} else {
LOG_INFO << "Set limit not supported due to sustained "
LOG_INFO << "Set limit not supported due to peak "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make sure that in this file only gtest_fail logic is changed.
other functional test logic should not be changed

…erformance and scheduler modules.

Primary JIRA: VLCLJ-2513
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577

Signed-off-by: viki435 <[email protected]>
…erformance and scheduler modules.

Primary JIRA: VLCLJ-2513
Sub-tasks: VLCLJ-2570, VLCLJ-2568, VLCLJ-2577

Signed-off-by: viki435 <[email protected]>
@viki435 viki435 force-pushed the power_perf_scheduler_branch_v2 branch from f749ec5 to 58d06c2 Compare August 25, 2025 06:19
@vishnu-khanth
Copy link
Contributor

This PR can be closed since a new one is raised #284

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