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

Reorder finalizers in CV upgrade test #15185

Merged
merged 1 commit into from
May 28, 2024

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented May 27, 2024

Problem Statement

It looks like the previous reorder done in #14036 on Mar 15 has broken the test teardown since we now attempt to destroy the repo before we destroy the CV where it is published in, so we get 500:

DEBUG    nailgun.client:client.py:105 Making HTTP DELETE request to https://satellite.redhat.com/katello/api/v2/repositories/1118 with options {'auth': None, 'verify': None, 'headers': {'content-type': 'application/json'}}, no params and no data.
WARNING  nailgun.client:client.py:126 Received HTTP 500 response: {"displayMessage":"Repository cannot be deleted since it has already been included in a published Content View. Please delete all Content View versions containing this repository before attempting to delete it.","errors":["Repository cannot be deleted since it has already been included in a published Content View. Please delete all Content View versions containing this repository before attempting to delete it."]}

Solution

Make the order opposite again.

Localrun results

Pre

(venv) [vsedmik@fedora robottelo]$ pytest -m pre_upgrade tests/upgrades/test_contentview.py
tests/upgrades/test_contentview.py .                 [100%]
======= 1 passed, 1 deselected, 7 warnings in 39.59s =======

Post

(venv) [vsedmik@fedora robottelo]$ pytest -m post_upgrade tests/upgrades/test_contentview.py
tests/upgrades/test_contentview.py .                 [100%]
======= 1 passed, 1 deselected, 7 warnings in 53.35s =======

@vsedmik vsedmik added CherryPick PR needs CherryPick to previous branches 6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 labels May 27, 2024
@vsedmik vsedmik requested review from pondrejk and a team May 27, 2024 14:35
@vsedmik vsedmik self-assigned this May 27, 2024
@vsedmik vsedmik requested a review from a team as a code owner May 27, 2024 14:35
Copy link
Contributor

@Griffin-Sullivan Griffin-Sullivan left a comment

Choose a reason for hiding this comment

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

Maybe we could add to the comment that addfinalizer works like a stack (first in last out). LGTM!

@vsedmik vsedmik force-pushed the fix-upg-cv-finalizer branch from 19d9929 to 68981ee Compare May 28, 2024 12:28
@vsedmik
Copy link
Contributor Author

vsedmik commented May 28, 2024

Maybe we could add to the comment that addfinalizer works like a stack (first in last out). LGTM!

added @Griffin-Sullivan

@pondrejk pondrejk merged commit 85b43ff into SatelliteQE:master May 28, 2024
8 checks passed
github-actions bot pushed a commit that referenced this pull request May 28, 2024
github-actions bot pushed a commit that referenced this pull request May 28, 2024
github-actions bot pushed a commit that referenced this pull request May 28, 2024
github-actions bot pushed a commit that referenced this pull request May 28, 2024
vsedmik added a commit that referenced this pull request May 28, 2024
Reorder finalizers in CV upgrade test (#15185)

(cherry picked from commit 85b43ff)

Co-authored-by: vsedmik <[email protected]>
vsedmik added a commit that referenced this pull request May 28, 2024
Reorder finalizers in CV upgrade test (#15185)

(cherry picked from commit 85b43ff)

Co-authored-by: vsedmik <[email protected]>
vsedmik added a commit that referenced this pull request May 28, 2024
Reorder finalizers in CV upgrade test (#15185)

(cherry picked from commit 85b43ff)

Co-authored-by: vsedmik <[email protected]>
vsedmik added a commit that referenced this pull request May 28, 2024
Reorder finalizers in CV upgrade test (#15185)

(cherry picked from commit 85b43ff)

Co-authored-by: vsedmik <[email protected]>
jyejare pushed a commit to jyejare/robottelo that referenced this pull request Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.12.z Introduced in or relating directly to Satellite 6.12 6.13.z Introduced in or relating directly to Satellite 6.13 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants