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

added wait for tasks for repo creation #17171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vijaysawant
Copy link
Contributor

Problem Statement

Few tests from tests/foreman/api/test_docker.py are failing due to pending tasks issue in repositories of cv.
Error:
"errors":["Pending tasks detected in repositories of this content view. Please wait for the tasks: - https://satellite-ip.redhat.com/foreman_tasks/tasks/207e977b-d3df-4daa-94ba-27a7b7cbdc69 before publishing."

Affected test cases:

TestDockerActivationKey::test_positive_add_docker_repo_cv
TestDockerActivationKey::test_positive_remove_docker_repo_cv
TestDockerActivationKey::test_positive_add_docker_repo_ccv
TestDockerActivationKey::test_positive_remove_docker_repo_ccv

Solution

add wait_for_tasks to wait for resource type Katello::Repository while repo creating.

Related Issues

N/A

PRT test Cases example

trigger: test-robottelo
pytest: tests/foreman/api/test_docker.py::TestDockerActivationKey

@vijaysawant vijaysawant added CherryPick PR needs CherryPick to previous branches AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing Stream Introduced in or relating directly to Satellite Stream/Master 6.16.z Introduced in or relating directly to Satellite 6.16 labels Dec 13, 2024
@vijaysawant vijaysawant requested a review from a team as a code owner December 13, 2024 12:16
@vijaysawant
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/api/test_docker.py::TestDockerActivationKey

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9616
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_docker.py::TestDockerActivationKey --external-logging
Test Result : ============ 2 failed, 2 passed, 108 warnings in 728.83s (0:12:08) =============

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Dec 13, 2024
Copy link
Contributor

@vsedmik vsedmik left a comment

Choose a reason for hiding this comment

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

The wait for metadata generate looks good. 👍

We may need to update both, CV and LCE, together to fix the PRT to pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.16.z Introduced in or relating directly to Satellite 6.16 AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing CherryPick PR needs CherryPick to previous branches PRT-Failed Indicates that latest PRT run is failed for the PR Stream Introduced in or relating directly to Satellite Stream/Master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants