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
- Introduce a "thermometer" both for the GH summary, and as an
output that can be used in chatops
- Stop overcounting kubernetes versions and failure rates in them
- Cap the number of alerts shown in chatops (max 2 per metric)
- Update the GH actions dependencies
Closes#9
Signed-off-by: Jaime Silvela <[email protected]>
Signed-off-by: Niccolò Fei <[email protected]>
Signed-off-by: John Long <[email protected]>
Co-authored-by: Niccolò Fei <[email protected]>
Co-authored-by: John Long <[email protected]>
Copy file name to clipboardExpand all lines: DEVELOPERS_DEVELOPERS_DEVELOPERS.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,25 @@
1
-
# Building and testing locally
1
+
# Building, testing, releasing
2
2
3
3
The `ciclops` GitHub Action runs using a Docker container that encapsulates the
4
4
Python script that does the CI test analysis.
5
5
6
+
## Releasing
7
+
8
+
We recommend that users of Ciclops use released versions rather than `main`.
9
+
For testing, it may be convenient to [use a full SHA](#testing-within-a-calling-github-workflow).
10
+
11
+
The procedure for cutting a release:
12
+
13
+
1. Decide on the version number (following semVer)
14
+
1. Update the [Release notes file](ReleaseNotes.md), following the convention
15
+
in the file, i.e. the version number included in the section, and the release
16
+
date in the first line
17
+
1. Review and merge the release notes, and create and push a new tag with the
18
+
desired version number
19
+
1. Cut a new release in [GitHub](https://github.com/cloudnative-pg/ciclops/releases/new),
20
+
choosing the recent tag, and pasting the relevant content from the
21
+
Release Notes file (no need for the release date line).
22
+
6
23
## Developing and testing
7
24
8
25
You can test directly with the Python code on the `example-artifacts` directory,
@@ -72,6 +89,22 @@ CIclops has the beginning of a unit test suite. You can run it with:
72
89
python3 -m unittest
73
90
```
74
91
92
+
## Testing within a calling GitHub workflow
93
+
94
+
Even with unit tests and local tests, it's good to try Ciclops code out from a
95
+
client workflow. We can use a full length commit SHA to test out changes,
96
+
before cutting out a new release.
97
+
See the [GitHub document on using third party actions](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions).
98
+
99
+
Example:
100
+
```yaml
101
+
- name: Compute the E2E test summary
102
+
id: generate-summary
103
+
uses: cloudnative-pg/ciclops@<FULL_LENGTH_SHA>
104
+
with:
105
+
artifact_directory: test-artifacts/da
106
+
```
107
+
75
108
## How it works
76
109
77
110
The files in this repository are needed for the Dockerfile to build and run, of
0 commit comments