Skip to content

[Chore]: Refactor the existing E2E tests on Barman Cloud for a generic plugin use case #7614

Closed

Description

@gbartolini

Is there an existing issue already for this feature request/idea?

  • I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.

What problem is this feature going to solve? Why should it be added?

The existing end-to-end tests are functioning with the in-tree Barman Cloud implementation. However, we lack a method to test a generic plugin for backup, restore, and, when necessary, WAL archiving.

Describe the solution you'd like

The existing Barman Cloud backup should be refactored to run independently and exclusively use the CNPG-I plugin interface. Eventually, these components can be relocated to a separate repository, such as CNPG-I, to allow the community to test the Barman Cloud Plugin and for third-party organisations to evaluate their own plugins. This same strategy will also be applied when we transition the volume snapshot plugin out of the in-tree setup.

This initial step aims to establish a vendor-neutral and transparent method for listing all backup and recovery solutions, including both community-driven and commercial options.

Describe alternatives you've considered

We considered writing dedicated plugin tests within the operator codebase. However, this approach does not scale and introduces unnecessary technical debt in CloudNativePG, which contradicts our backup-agnostic strategy.

Additional context

No response

Backport?

No

Are you willing to actively contribute to this feature?

Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added this to the 1.27.0 milestone on May 22, 2025
  2. self-assigned this
    on May 22, 2025
  3. added theissue type on May 22, 2025
  4. added
    chore
    do not backport
    size:XXL
    on May 22, 2025
  5. modified the milestones: 1.27.0, 1.28.0 on May 22, 2025
  6. moved this to Todo in Roadmapon May 22, 2025
  7. Agalin commented on Jun 3, 2025

    @Agalin
    Contributor

    Is there any plan of supporting something like Cue's Unity project in the future? They have a framework (and just a code repo in the past) that tests new releases against real user-provided scenarios looking for regressions, in this case it would be a way to ensure changes in CNPG/CNPG-I don't break existing plugins (or at least breakage is known before a release).

  8. dosubot commented on Sep 2, 2025

    @dosubot

    Hi, @gbartolini. I'm Dosu (https://dosu.dev), and I'm helping the cloudnative-pg team manage their backlog and am marking this issue as stale.

    Issue Summary:

    • You proposed refactoring Barman Cloud end-to-end tests to support a generic plugin interface for vendor-neutral, community-driven testing.
    • The goal is to decouple tests from the in-tree implementation and potentially move them to a separate repository.
    • This would facilitate third-party plugin evaluation and reduce technical debt.
    • A team member asked about integrating a framework like Cue's Unity project to test new releases against real user scenarios and ensure compatibility.
    • The issue remains unresolved with no recent updates.

    Next Steps:

    • Please let me know if this issue is still relevant to the latest version of cloudnative-pg by commenting here.
    • If I don’t hear back within 7 days, the issue will be automatically closed.

    Thanks for your understanding and contribution!

  9. 7 remaining items

  10. armru commented on Mar 4, 2026

    @armru
    Member

    I vote for the second option. I prefer releasing the 1.29 sooner to bring fixes to the end users

  11. leonardoce commented on Mar 4, 2026

    @leonardoce
    Contributor

    Yes second option for me too

  12. mnencia commented on Mar 4, 2026

    @mnencia
    Member

    I agree with the others. Move it to 1.30

  13. gbartolini commented on Mar 4, 2026

    @gbartolini
    ContributorAuthor

    Majority has voted for moving to 1.30.

  14. modified the milestones: 1.29.0, 1.30.0 on Mar 4, 2026
  15. modified the milestones: 1.30.0, 1.31.0 on May 29, 2026
  16. gbartolini commented on May 29, 2026

    @gbartolini
    ContributorAuthor

    Coming to the end of May, it is unrealistic to complete this activity by the end of June. Moving this to 1.31.0, which forces us to maintain Barman Cloud in core for another release.

  17. litaocdl commented on Aug 13, 2026

    @litaocdl
    Collaborator

    I guess those two PRs covered this task
    #10850
    #11264

  18. gbartolini commented on Sep 21, 2026

    @gbartolini
    ContributorAuthor

    Thanks @litaocdl. @mnencia @NiccoloFei can you please confirm that those two tickets are closing this? Is #11191 possibly related to this?

  19. gbartolini commented on Oct 23, 2026

    @gbartolini
    ContributorAuthor

    We should rescope this ticket. The initial goal was to enable us to refactor the tests for backup and recovery to use the plugin so that we could finally remove the native support of Barman Cloud from the core. This goal has been achieved, per #11671 as well.

    As a result, we will consider this ticket to be completed. The second part (making it generic) will be re-evaluated as part of a future conformance program that, as an Incubation project, we could aspire to.

  20. moved this from Todo to Done in Roadmapon Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

choredo not backportno-stalesize:XXL

Type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions