Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.13.z] Add support for overriding jira issues to comment on. #15460

Merged

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #15427

Problem Statement

  • We have a --jira-comments pytest option that we use to add comments to Jira issues for tests marked with Verifies or BlockedBy doc fields. Atm, this can't be overridden, and one has to mark each test with these fields.
  • The JPL team has requested this enhancement so that we can use it in standalone PRT runs.

Solution

  • Update logic for --jira-comments to override issues to comment test results on.

Usage

  • pytest tests/foreman/api/test_ping.py --jira-comments Comment test results on issues mentioned in Verifies and BlockedBy doc fields(No change, this is primary use case).
  • pytest tests/foreman/api/test_ping.py --jira-comments 'SAT-24796,SAT-25230' Comment test results on SAT-24796 and SAT-25230.

Related Issues

@Satellite-QE Satellite-QE added 6.13.z Introduced in or relating directly to Satellite 6.13 Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Jun 19, 2024
@Satellite-QE
Copy link
Collaborator Author

trigger: test-robottelo
pytest: tests/foreman/api/test_ping.py --jira-comments 'SAT-24796,SAT-25230'
env:
    ROBOTTELO_jira__enable_comment: true

@Satellite-QE
Copy link
Collaborator Author

PRT Result

Build Number: 7451
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_ping.py --jira-comments SAT-24796,SAT-25230 --external-logging
Test Result : ================== 1 passed, 9 warnings in 1058.45s (0:17:38) ==================

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Jun 19, 2024
@jyejare jyejare merged commit d6fd228 into 6.13.z Jun 21, 2024
16 checks passed
@jyejare jyejare deleted the cherry-pick-6.13.z-91f875b16be7fba71bb1f80ee2563724f2aca808 branch June 21, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.13.z Introduced in or relating directly to Satellite 6.13 Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants