You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Docs]: Rewrite E2E tests documentation towards validation #9220
Is there an existing issue already for your request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new documentation enhancement to be evaluated.
What problem in the existing documentation this issue aims to solve?
Right now the E2E tests page contains a lot of information, but it is not helping users who want to run tests on their existing environment to validate if CNPG can work.
This will be critical if we target the conformance program following the incubation.
Describe what additions need to be done to the documentation
We should consider about adding some public information in the official documentation, or refactoring the current one (by splitting it in multiple pages or reordering the content).
Describe what pages need to change in the documentation, if any
The current End-to-End (E2E) tests documentation explains what CloudNativePG tests internally, but it does not help normal users who want to check whether CloudNativePG will work on their own Kubernetes cluster.
Most users and platform teams mainly want to know:
Will CloudNativePG work on my cluster?
What features are expected and guaranteed to work?
This problem will become more important as CloudNativePG moves toward incubation and future conformance programs.
Solution
Change the E2E documentation so that it focuses on validation instead of internal CI testing.
The documentation should clearly explain:
What CloudNativePG guarantees to work
How users can check or validate those guarantees on their own clusters
Instead of mainly describing how tests run in CI pipelines.
Suggested Improvements
Clearly mention which environments are supported and tested, such as:
Kubernetes versions
PostgreSQL versions
Organize the existing E2E tests in a simpler way that users can understand, for example:
Basic cluster setup and deletion
High availability and failover behavior
Connectivity and security checks
Clearly separate:
Information meant for users (what should work and how to verify it)
Information meant for contributors (GitHub Actions, kind, internal test setup)
Describe what additions need to be done to the documentation
Add more user-friendly and public information in the official documentation, or refactor the current content by splitting it into multiple pages or changing the order so that validation information comes first.
Scope of Changes
Update and reorganize content in contribute/e2e_testing_environment/README.md
No tests will be removed
No change in CI behavior
Describe what pages need to change in the documentation
contribute/e2e_testing_environment/README.md
Describe what pages need to be removed from the documentation
N/A
Additional context
N/A
Backport?
Yes
@gbartolini if you liked my approach , it would be great if you assign me this issue and if you have any further question , I would be happy to answer them.
It might also be useful to separate the test cases between those suiteable for running in a production environment (typically non destructive and without side effects) from the ones that are designed to be running by cnpg contributors.
As an inspiration, the cloudfoundry community has packaged tests for deployment within system, with user-facing flags to select which test cases to run, configure some test cases data, and facilities to assert test outcome and debug failures.
Smoke tests are a suite of basic core functionality tests for Cloud Foundry. They are suitable as an initial test against a new or updated deployment to reveal fundamental problems with the system.
These tests are not intended for use against production systems. They're meant for acceptance environments used by people developing Cloud Foundry's releases. While these tests attempt to clean up after themselves, there's no guarantee that they won't change the state of your system in an undesirable way. For lightweight system tests that are safe to run against a production environment, please use the CF Smoke Tests.
For cnpg, this might imply packaging E2E tests within the current cnpg installation methods (manifests, helm, cnpg plugin), and offering standard ways to for users to launch E2E tests, such as
For cnpg, this might imply packaging E2E tests within the current cnpg installation methods (manifests, helm, cnpg plugin), and offering standard ways to for users to launch E2E tests, such as
Hi, @gbartolini. I'm Dosu, and I'm helping the cloudnative-pg team manage their backlog and am marking this issue as stale.
Issue Summary:
You proposed rewriting the E2E tests documentation to better assist users in validating CloudNativePG in their Kubernetes environments, which is important for conformance.
AmanKumar1411 suggested shifting the focus of the docs towards user validation rather than internal CI testing, separating user-facing validation from contributor details.
You and gberche-orange provided positive feedback on this approach.
gberche-orange recommended distinguishing tests safe for production from contributor-only tests and packaging E2E tests for easier user execution via Kubernetes jobs or Helm tests.
AmanKumar1411 plans to follow up with a documentation PR after modularization to reorganize the README accordingly.
Next Steps:
Please let us know if this issue is still relevant to the latest version of CloudNativePG by commenting here to keep the discussion open.
If we don’t hear back within 7 days, this issue will be automatically closed.
I took another look at this against the current E2E architecture and the recent work around #11189/#11191.
There already seems to be a useful foundation for validation against an existing environment: e2e-test-existing-cluster can run the suite against the current kubeconfig without provisioning kind/k3d or reinstalling the operator, and the suite already supports selecting subsets through labels such as smoke.
One remaining coupling I noticed is in SynchronizedBeforeSuite: tests/e2e/suite_test.go currently deploys the RustFS object store unconditionally, regardless of the selected test labels. So even an existing-cluster run containing no backup/restore tests still requires the object-store namespace, additional images and a usable StorageClass.
There is a similar distinction around smoke: the current label represents contributor smoke tests rather than necessarily non-destructive validation tests (some of those specs intentionally restart/delete PostgreSQL processes/pods).
This makes me wonder whether a useful intermediate step toward the validation direction discussed here would be to make suite-level dependencies conditional on the selected capabilities/profile, before deciding how the tests are ultimately distributed.
Would you expect the “skip object storage when the selected tests don't require it” behavior to fall under #11191, or should that be treated as a separate prerequisite for an existing-cluster validation profile?
Activity
chore(testing): modularise cluster management and simplify setup scripts
chore(testing): modularise cluster management and simplify setup scripts
AmanKumar1411 commentedon Dec 30, 2025
Problem
The current End-to-End (E2E) tests documentation explains what CloudNativePG tests internally, but it does not help normal users who want to check whether CloudNativePG will work on their own Kubernetes cluster.
Most users and platform teams mainly want to know:
Will CloudNativePG work on my cluster?
What features are expected and guaranteed to work?
This problem will become more important as CloudNativePG moves toward incubation and future conformance programs.
Solution
Change the E2E documentation so that it focuses on validation instead of internal CI testing.
The documentation should clearly explain:
Instead of mainly describing how tests run in CI pipelines.
Suggested Improvements
Clearly mention which environments are supported and tested, such as:
Organize the existing E2E tests in a simpler way that users can understand, for example:
Clearly separate:
Describe what additions need to be done to the documentation
Add more user-friendly and public information in the official documentation, or refactor the current content by splitting it into multiple pages or changing the order so that validation information comes first.
Scope of Changes
Update and reorganize content in contribute/e2e_testing_environment/README.md
No tests will be removed
No change in CI behavior
Describe what pages need to change in the documentation
contribute/e2e_testing_environment/README.md
Describe what pages need to be removed from the documentation
N/A
Additional context
N/A
Backport?
Yes
@gbartolini if you liked my approach , it would be great if you assign me this issue and if you have any further question , I would be happy to answer them.
gberche-orange commentedon Dec 31, 2025
It might also be useful to separate the test cases between those suiteable for running in a production environment (typically non destructive and without side effects) from the ones that are designed to be running by cnpg contributors.
As an inspiration, the cloudfoundry community has packaged tests for deployment within system, with user-facing flags to select which test cases to run, configure some test cases data, and facilities to assert test outcome and debug failures.
see https://github.com/cloudfoundry/cf-smoke-tests
and https://github.com/cloudfoundry/cf-acceptance-tests
For cnpg, this might imply packaging E2E tests within the current cnpg installation methods (manifests, helm, cnpg plugin), and offering standard ways to for users to launch E2E tests, such as
gbartolini commentedon Jan 15, 2026
I agree completely. That's the direction we would like to take, but we need to find a way to distribute them easily.
Thank you for the pointers.
8 remaining items
chore(testing): modularise cluster management and simplify setup scripts
ci(testing): modularise cluster management scripts (#9281)
ci(testing): modularise cluster management scripts (#9281)
ci(testing): modularise cluster management scripts (#9281)
ci(testing): modularise cluster management scripts (#9281)
dosubot commentedon Apr 21, 2026
Hi, @gbartolini. I'm Dosu, and I'm helping the cloudnative-pg team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thanks for your understanding and contribution!
github-actions commentedon Jun 27, 2026
This issue was closed because it has been inactive for 14 days since being marked as stale.
Utkarsh-sharma47 commentedon Aug 4, 2026
I took another look at this against the current E2E architecture and the recent work around #11189/#11191.
There already seems to be a useful foundation for validation against an existing environment: e2e-test-existing-cluster can run the suite against the current kubeconfig without provisioning kind/k3d or reinstalling the operator, and the suite already supports selecting subsets through labels such as smoke.
One remaining coupling I noticed is in SynchronizedBeforeSuite: tests/e2e/suite_test.go currently deploys the RustFS object store unconditionally, regardless of the selected test labels. So even an existing-cluster run containing no backup/restore tests still requires the object-store namespace, additional images and a usable StorageClass.
There is a similar distinction around smoke: the current label represents contributor smoke tests rather than necessarily non-destructive validation tests (some of those specs intentionally restart/delete PostgreSQL processes/pods).
This makes me wonder whether a useful intermediate step toward the validation direction discussed here would be to make suite-level dependencies conditional on the selected capabilities/profile, before deciding how the tests are ultimately distributed.
Would you expect the “skip object storage when the selected tests don't require it” behavior to fall under #11191, or should that be treated as a separate prerequisite for an existing-cluster validation profile?