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

Extend manifest labels test case with manifest_lists #16878

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vsedmik
Copy link
Contributor

@vsedmik vsedmik commented Nov 6, 2024

Problem Statement

  1. Manifest labels, annotations and other flags were added to manifest lists too (previously they were added to manifests only). After container-type repo sync they should be indexed and returned by API.
  2. Also the labels and flags should be indexed during upgrade from 6.16 to 6.17.
  3. We are going to have a new-style approach to the upgrade scenarios.

Solution

  1. We already have a test case to check the fields in manifests. This PR extends the test case to check the same in manifest lists too.
  2. We already have similar test case in upgrade scenarios. This PR extends the test case, and
  3. makes it a new-styler using the share_resource approach.
  4. Here we also update the CODEOWNERS file with the new upgrade files.

Related Issues

https://issues.redhat.com/browse/SAT-27490

PRT test Cases example

Requires
Katello/katello#11172
SatelliteQE/nailgun#1240 (merged)

trigger: test-robottelo
pytest: tests/foreman/api/test_repository.py -k synchronize_docker_repo_with_manifest_labels
Katello:
  katello: 11172

For the new-style upgrade scenario we need to wait for the 11172 being packed in next snap.

trigger: test-robottelo
pytest: tests/new_upgrades/test_repository.py -k test_container_repo_sync
env:
  BROKER_SSH_BACKEND: hussh

@vsedmik vsedmik added No-CherryPick PR doesnt need CherryPick to previous branches Stream Introduced in or relating directly to Satellite Stream/Master labels Nov 6, 2024
@vsedmik vsedmik self-assigned this Nov 6, 2024
@vsedmik
Copy link
Contributor Author

vsedmik commented Nov 6, 2024

trigger: test-robottelo
pytest: tests/foreman/api/test_repository.py -k synchronize_docker_repo_with_manifest_labels
nailgun: 1240
Katello:
katello: 11172

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9299
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_repository.py -k synchronize_docker_repo_with_manifest_labels --external-logging
Test Result : ========= 167 deselected, 180 warnings, 2 errors in 4768.37s (1:19:28) =========

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Nov 6, 2024
@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 9300
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_repository.py -k synchronize_docker_repo_with_manifest_labels --external-logging
Test Result : ========= 167 deselected, 180 warnings, 2 errors in 5364.90s (1:29:24) =========

@vsedmik vsedmik requested a review from synkd November 11, 2024 11:17
@vsedmik vsedmik marked this pull request as ready for review November 11, 2024 11:17
@vsedmik vsedmik requested review from a team as code owners November 11, 2024 11:17
Copy link
Contributor

@synkd synkd left a comment

Choose a reason for hiding this comment

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

Reviewing specifically for the change to the new upgrade format, everything looks good there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No-CherryPick PR doesnt need 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