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
Copy file name to clipboardExpand all lines: docs/ci-cd.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,17 @@ The following secrets should be kept in the repository:
13
13
| KUBECONFIG | Kubeconfig of the cluster, where E2E tests should run | E2E tests- resources are deployed to the namespace $SHORT_COMMIT_HASH in this cluster |
14
14
| VAULT_PASSWORD | Password to the Ansible Vault stored in the repository | E2E tests- password is needed to decrypt the secrets and thus- recreate the resources |
15
15
16
+
## Run order
17
+
18
+
- Validation- run always.
19
+
- Build and Push Image/ ppc64le Image- run always. That is intended
20
+
to help for the developers to test the image in case of changes.
21
+
- E2E-CI- runs only on the merge to main (or on manual trigger)
22
+
- Deployment- run only after successful E2E-CI running on main.
23
+
16
24
## E2E tests
17
25
18
-
### When they run?
26
+
### When do they run?
19
27
20
28
E2E tests are stage of the CI/CD that runs only in two cases:
21
29
- On merge to main and before deployment
@@ -28,7 +36,13 @@ There are future plans to run them in cronjob as a part of the QA workflow.
28
36
- prepare the environment- script [ansible/init-custom-env.sh](../ansible/init-custom-env.sh):
29
37
- prepare the custom project in OpenShift preprod cluster
30
38
- install all of the pipelines dependencies in this project
31
-
- run the pipelines with `tkn`
39
+
- prepare the test data by copying operator from branch `e2e-test-operator`-
40
+
with custom version
41
+
- run the CI pipeline with `tkn` against the prepared branch.
42
+
On success, it creates the PR on this branch.
43
+
- run the Hosted pipeline with `tkn` against PR created by CI pipeline. On success,
44
+
this PR is merged.
45
+
- TODO: Release pipeline.
32
46
- check if pipelines passed- using `oc`
33
47
- remove the project, and thus- clean up all associated resources
34
48
@@ -51,4 +65,3 @@ in the test data (see point 2.).
51
65
This Cert Project should:
52
66
- be accessible to the test partner account (credentials stored in ansbile vault),
0 commit comments