Skip to content

[6.18.z] CCV auto-publish on child CV minor version publish - #20898

Closed
vijaysawant wants to merge 1 commit into
SatelliteQE:6.18.zfrom
vijaysawant:6.18.z-CP-of-SAT-34620
Closed

[6.18.z] CCV auto-publish on child CV minor version publish#20898
vijaysawant wants to merge 1 commit into
SatelliteQE:6.18.zfrom
vijaysawant:6.18.z-CP-of-SAT-34620

Conversation

@vijaysawant

@vijaysawant vijaysawant commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Manual CP of #20814

Summary by Sourcery

Tests:

  • Add an API test ensuring composite content views only auto-publish once on incremental child content view updates while still auto-publishing on new major versions.

rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
@vijaysawant vijaysawant added No-CherryPick PR doesnt need CherryPick to previous branches 6.18.z Introduced in or relating directly to Satellite 6.18 labels Feb 26, 2026
@sourcery-ai

sourcery-ai Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Adds a regression test ensuring that composite content views with auto-publish and components set to "Always update to latest" are only updated once (minor 1.1) during incremental updates with propagate_all_composites, and still auto-publish correctly on subsequent major child content view versions (2.0).

File-Level Changes

Change Details Files
Add regression test covering CCV auto-publish behavior with incremental updates using propagate_all_composites and subsequent major CV publish.
  • Create product repository with missing errata and sync it to simulate incremental content changes.
  • Create and publish an initial content view version 1.0, then create an auto-published composite content view using this CV with the component set to always track the latest version.
  • Trigger an incremental update of the content view with propagate_all_composites enabled and assert that both the CV and CCV have only versions 1.0 and 1.1 (no 2.0).
  • Add an additional repository to the content view, publish a new major version 2.0, wait for background publish tasks, and assert that the composite content view auto-publishes to 2.0.
tests/foreman/api/test_contentview.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@vijaysawant

Copy link
Copy Markdown
Contributor Author
trigger: test-robottelo
pytest: tests/foreman/api/test_contentview.py -k 'test_ccv_no_double_update_on_incremental_with_propagate_all_composites'

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14512
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_contentview.py -k test_ccv_no_double_update_on_incremental_with_propagate_all_composites --external-logging
Test Result : ========== 1 failed, 97 deselected, 6 warnings in 1194.75s (0:19:54) ===========

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Feb 26, 2026
@vijaysawant

Copy link
Copy Markdown
Contributor Author
trigger: test-robottelo
pytest: tests/foreman/api/test_contentview.py -k 'test_ccv_no_double_update_on_incremental_with_propagate_all_composites'

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14534
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_contentview.py -k test_ccv_no_double_update_on_incremental_with_propagate_all_composites --external-logging
Test Result : ========== 1 failed, 97 deselected, 6 warnings in 1350.80s (0:22:30) ===========

@sambible

sambible commented Mar 9, 2026

Copy link
Copy Markdown
Contributor
trigger: test-robottelo
pytest: tests/foreman/api/test_contentview.py -k 'test_ccv_no_double_update_on_incremental_with_propagate_all_composites'

@sambible sambible left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK pending PRT, rekicking it.

@Satellite-QE

Copy link
Copy Markdown
Collaborator

PRT Result

Build Number: 14652
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_contentview.py -k test_ccv_no_double_update_on_incremental_with_propagate_all_composites --external-logging
Test Result : =========== 1 failed, 97 deselected, 6 warnings in 836.82s (0:13:56) ===========

@github-actions

Copy link
Copy Markdown

This pull request has not been updated in the past 45 days.

@github-actions github-actions Bot added the Stale Stale issue or Pull Request label Apr 23, 2026
@github-actions

Copy link
Copy Markdown

This pull request is now being closed after stale warnings.

@github-actions github-actions Bot closed this Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.18.z Introduced in or relating directly to Satellite 6.18 No-CherryPick PR doesnt need CherryPick to previous branches PRT-Failed Indicates that latest PRT run is failed for the PR Stale Stale issue or Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants