Skip to content

Added a new function to generate polarion-specific log file#633

Merged
zhaohuijuan merged 3 commits intovirt-s1:masterfrom
zhaohuijuan:dev
Sep 23, 2025
Merged

Added a new function to generate polarion-specific log file#633
zhaohuijuan merged 3 commits intovirt-s1:masterfrom
zhaohuijuan:dev

Conversation

@zhaohuijuan
Copy link
Copy Markdown
Collaborator

@zhaohuijuan zhaohuijuan commented Sep 12, 2025

Generate a new polarion-specific log file sum_polarion.xml which could be uploaded to Polarion if there is --tc tc_file.json,
Will do nothing if there is no --tc option, so no impact for the current log system.

Usage examples:
1.Generate sum_polarion.xml when run os-tests
os-tests -p test_check_cloudinit_cfg_no_wheel,test_check_cloudinit_ds_identify_found --user cloud-user --keyfile ~/.ssh/id_rsa --platform_profile openstack.yaml --tc ~/os_tests/data/polarion_tc.json
2. Upload sum_polarion.xml to Polarion:
curl -k -u <polarion_user>:<polarion_password> -X POST -F file=@/tmp/os_tests_result/results/sum_polarion.xml https://polarion.engineering.redhat.com/polarion/import/xunit

Note:
The file polarion_tc.json could be generated with script polarion_tc.py in os_tests/utils/polarion_tc.py

Test results:
https://jenkins-csb-esxi-ci.dno.corp.redhat.com/job/openstack-debug-test-huzhao/5/console
https://polarion.engineering.redhat.com/polarion/import/xunit-log?jobId=5048893
https://polarion.engineering.redhat.com/polarion/#/project/RHELVIRT/testrun?id=20250912-0324_2

Created test run in Polarion with the os-tests log file sum_polarion.xml via CI:
https://polarion.engineering.redhat.com/polarion/#/project/RHELVIRT/testrun?id=20250912-0618

@zhaohuijuan zhaohuijuan merged commit dafb81e into virt-s1:master Sep 23, 2025
1 check passed
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.

1 participant