Skip to content

PR : gh56 : Extracting version info and displaying it using RAFT#57

Merged
kanjoe24 merged 4 commits intodevelopfrom
feature/gh56-display-version-info
Dec 5, 2025
Merged

PR : gh56 : Extracting version info and displaying it using RAFT#57
kanjoe24 merged 4 commits intodevelopfrom
feature/gh56-display-version-info

Conversation

@kanjoe24
Copy link
Contributor

@kanjoe24 kanjoe24 commented Sep 2, 2025

Extracting HALIF Test Version and ut-core version and displaying the same.

@kanjoe24
Copy link
Contributor Author

kanjoe24 commented Sep 2, 2025

Logs:

(python_venv) jpn323@janus ~/workspace/rdk-halif-device_settings/ut/host (develop)$  cd /home/jpn323/workspace/rdk-halif-device_settings/ut/host ; /usr/bin/env /home/jpn323/workspace/rdk-halif-device_settings/ut/host/python_venv/bin/python /home/jpn323/.vscode-server/extensions/ms-python.debugpy-2025.10.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 51599 -- /home/jpn323/workspace/rdk-halif-device_settings/ut/host/tests/L3_TestCases/dsDisplay/dsDisplay_test01_VerifyDisplayConnectCallBackTest.py --config /home/jpn323/workspace/rdk-halif-device_settings/ut/host/tests/configs/example_rack_config.yml --deviceConfig /home/jpn323/workspace/rdk-halif-device_settings/ut/host/tests/configs/deviceConfig.yml 
2025-09-02 14:35:14, dsDisplay_test01_VerifyDisplayConnectCallBackTest_summery, INFO        : Log File: [./logs/rack1/slot1/20250902-14-35-14/test_summary.log]
2025-09-02 14:35:14, test01_VerifyDisplayConnectCallBackTest, STEP        : [0]: Initializing OCR Engine. This may take upto 60secs..,
[ WARN:0@0.301] global cap_v4l.cpp:997 open VIDEOIO(V4L2:/dev/video0): can't open camera by index
[ERROR:0@0.301] global obsensor_uvc_stream_channel.cpp:159 getStreamChannelGroup Camera index out of range
2025-09-02 14:35:14, test01_VerifyDisplayConnectCallBackTest, WARNING     : screenRegions not setup
2025-09-02 14:35:14, test01_VerifyDisplayConnectCallBackTest, WARNING     : webpageController not setup
2025-09-02 14:35:14, test01_VerifyDisplayConnectCallBackTest, STEP        : [0]: waitForBoot(): Target is Booting, logging time
2025-09-02 14:35:14, dsDisplay_test01_VerifyDisplayConnectCallBackTest_summery, TEST_START  :  ---- Run Test [test01_VerifyDisplayConnectCallBackTest], qcId:[1] Duration:[2592000]:[1800 days, 0:00:00], LoopCount:[1] ---- 
2025-09-02 14:35:14, dsDisplay_test01_VerifyDisplayConnectCallBackTest_summery, INFO        :  ---- Start Time: [2025-09-02 14:35:14], Max Run End Time: [2030-08-07 14:35:14] ---- 
2025-09-02 14:35:14, test01_VerifyDisplayConnectCallBackTest, TEST_START  :  ---- Run Test [test01_VerifyDisplayConnectCallBackTest], qcId:[1] Duration:[2592000]:[1800 days, 0:00:00], LoopCount:[1] ---- 
2025-09-02 14:35:14, UTSuiteNavigatorClass, INFO        : C Framework Selected
2025-09-02 14:35:14, utBaseUtils, ERROR       : Target doesn't support rsync, using scp copy to copy the folder
2025-09-02 14:35:14, utBaseUtils, ERROR       : Target doesn't support rsync, using scp copy to copy the folder
2025-09-02 14:35:19, utCFramework, INFO        : HALIF Test Version: 6.0.0
2025-09-02 14:35:19, utCFramework, INFO        : UT CORE Version: 4.7.3
2025-09-02 14:35:19, utCFramework, DEBUG       : x


***************** CUNIT CONSOLE - MAIN MENU ******************************
(R)un  (S)elect  (L)ist  (A)ctivate  (F)ailures  (O)ptions  (H)elp  (Q)uit
Enter command: u

@kanjoe24 kanjoe24 self-assigned this Sep 2, 2025
@kanjoe24 kanjoe24 changed the title Adding : gh56 : Extracting version info and displaying it using RAFT PR : gh56 : Extracting version info and displaying it using RAFT Sep 2, 2025
Copilot AI review requested due to automatic review settings December 4, 2025 09:56
Copy link

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 adds functionality to extract and display version information for HALIF Test and UT CORE from command output in the test framework. The changes enhance observability by parsing version strings (with support for ANSI escape codes) from the test suite startup output and logging them for diagnostic purposes.

Key Changes:

  • Added regex pattern matching to extract HALIF Test Version and UT CORE Version from command output
  • Implemented version logging using the existing logging infrastructure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@bhanucbp bhanucbp left a comment

Choose a reason for hiding this comment

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

address review comments

@kanjoe24
Copy link
Contributor Author

kanjoe24 commented Dec 4, 2025

logs:

python vts_boot_L1_L2_tests.py --deviceConfig ../configs/vts_device_configuration.yml -config ../configs/vts_rack_configuration.yml
2025-12-04 14:32:18, vts_boot_L1_L2_tests_summery, INFO        : Log File: [./logs/rack1/slot1/20251204-14-32-18/test_summary.log]
2025-12-04 14:32:18, boot_L1_L2, WARNING     : capture Engine not setup
2025-12-04 14:32:18, boot_L1_L2, WARNING     : screenRegions not setup
2025-12-04 14:32:18, boot_L1_L2, WARNING     : webpageController not setup
2025-12-04 14:32:18, UTSuiteNavigatorClass, INFO        : C Framework Selected
2025-12-04 14:32:19, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:19, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:24, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
2025-12-04 14:32:24, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
2025-12-04 14:32:26, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:26, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:32, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
2025-12-04 14:32:32, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
2025-12-04 14:32:39, utBaseUtils, INFO        : tar -xzf vts-Boot.tar.gz -C /tmp/Boot
root@vdevicex86-64:/tmp/Boot#
2025-12-04 14:32:39, utBaseUtils, INFO        : tar -xzf vts-Boot.tar.gz -C /tmp/Boot
root@vdevicex86-64:/tmp/Boot#
2025-12-04 14:32:39, utBaseUtils, INFO        : Successfully untarred vts-Boot.tar.gz on remote to /tmp/Boot
2025-12-04 14:32:39, utBaseUtils, INFO        : Successfully untarred vts-Boot.tar.gz on remote to /tmp/Boot
2025-12-04 14:32:39, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:39, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:45, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
2025-12-04 14:32:45, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
2025-12-04 14:32:47, vts_boot_L1_L2_tests_summery, STEP        : [0]: waitForBoot(): Target is Booting, logging time
2025-12-04 14:32:47, vts_boot_L1_L2_tests_summery, TEST_START  :  ---- Run Test [boot_L1_L2], qcId:[1] Duration:[2592000]:[1800 days, 0:00:00], LoopCount:[1] ----
2025-12-04 14:32:47, vts_boot_L1_L2_tests_summery, INFO        :  ---- Start Time: [2025-12-04 14:32:47], Max Run End Time: [2030-11-08 14:32:47] ----
2025-12-04 14:32:47, vts_boot_L1_L2_tests_summery, TEST_START  :  ---- Run Test [boot_L1_L2], qcId:[1] Duration:[2592000]:[1800 days, 0:00:00], LoopCount:[1] ----
2025-12-04 14:32:47, vts_boot_L1_L2_tests_summery, INFO        :  ---- Start Time: [2025-12-04 14:32:47], Max Run End Time: [2030-11-08 14:32:47] ----
2025-12-04 14:32:47, vts_boot_L1_L2_tests_summery, INFO        :  ---- testPrepareFunction() ----
2025-12-04 14:32:47, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:47, utBaseUtils, INFO        : Changing directory on remote to: /tmp/Boot
2025-12-04 14:32:52, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
2025-12-04 14:32:52, utBaseUtils, INFO        : Successfully changed to directory: /tmp/Boot
.yaml12-04 14:32:53, utCFramework, INFO        : ./run.sh -p /tmp/Boot/profiles/hfp-boot-vcomponent.
Vendor-Boot is already running
Executing [vts_boot_hal_test]

UT CORE Version: 4.7.3
Listing Filename: [/tmp/ut-log_2025-12-04_143253-report.xml]
Results Filename: [/tmp/ut-log_2025-12-04_143253.log]
Using Profile[/tmp/Boot/profiles/hfp-boot-vcomponent.yaml]

2025-12-04-14:32:53, INFO  , main.cpp,    74 : ==========================================================================
2025-12-04-14:32:53, INFO  , main.cpp,    75 : 	 BUILD_TIMESTAMP: 2025-11-27_15:07:39
2025-12-04-14:32:53, INFO  , main.cpp,    76 : 	 UNIFIED VTS Version: unknown
2025-12-04-14:32:53, INFO  , main.cpp,    77 : 	 AIDL HALIF Version: develop
2025-12-04-14:32:53, INFO  , main.cpp,    78 : 	 VTS UNIFIED BOOT HALIF Test Version: 7e82f55
2025-12-04-14:32:53, INFO  , main.cpp,    79 : ==========================================================================
2025-12-04-14:32:53, INFO  , vts_boot_init.cpp,    94 : Successfully obtained Boot service

***************** UT CORE CONSOLE - MAIN MENU ******************************
(R)un  (S)elect  (L)ist  (A)ctivate  (F)ailures  (H)elp  (O)ptions (Q)uit
Enter command:
2025-12-04 14:32:53, vts_boot_L1_L2_tests_summery, STEP        : ====================Step Start====================
2025-12-04 14:32:53, vts_boot_L1_L2_tests_summery, STEP_START  : [1]: DESCRIPTION : Test Suit: VTS_L1_BOOT Test Case: getCapabilities_pos
2025-12-04 14:32:53, vts_boot_L1_L2_tests_summery, STEP        : ==================================================
2025-12-04 14:32:53, utCFramework, DEBUG       : m


***************** UT CORE CONSOLE - MAIN MENU ******************************
(R)un  (S)elect  (L)ist  (A)ctivate  (F)ailures  (H)elp  (O)ptions (Q)uit
Enter command: u


***************** UT CORE CONSOLE - MAIN MENU ******************************
(R)un  (S)elect  (L)ist  (A)ctivate  (F)ailures  (H)elp  (O)ptions (Q)uit
Enter command:
2025-12-04 14:32:53, utCFramework, DEBUG       : s

----------------------------- Registered Suites -------------------------------
#  Suite Name                                                      #Tests  Active?

1. VTS_L1_BOOT                                                     3       Yes
2. VTS_L3_BOOT                                                     2       Yes
-------------------------------------------------------------------------------

Total Number of Suites : 2

@kanjoe24 kanjoe24 requested a review from bhanucbp December 4, 2025 14:38
Copy link
Contributor

@bhanucbp bhanucbp left a comment

Choose a reason for hiding this comment

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

ship it

Copy link

@srinivasgtl srinivasgtl left a comment

Choose a reason for hiding this comment

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

approved

Copilot AI review requested due to automatic review settings December 5, 2025 15:15
@kanjoe24 kanjoe24 merged commit d6e07f1 into develop Dec 5, 2025
7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2025
@kanjoe24 kanjoe24 deleted the feature/gh56-display-version-info branch December 5, 2025 15:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VTS Version information is missing in serial logs, when running with Raft

3 participants