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
fix: change step name to avoid duplicate heading and add testing docs
- Change step name from 'Summary' to 'Output' to prevent duplication with job name
- Add comprehensive Testing section to README with local and CI/CD instructions
- Document architecture limitations for local testing
Copy file name to clipboardExpand all lines: README.md
+51Lines changed: 51 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,3 +112,54 @@ volumes:
112
112
- Mutable tags also exist for:
113
113
- The latest image for a given Postgres major.minor + spock major version, `pg<postgres major.minor>-spock<major>-<flavor>` , e.g. `17.6-spock5-standard`
114
114
- The latest image for a given Postgres major + spock major version, `pg<postgres major>-spock<major>-<flavor>`, e.g. `17-spock5-standard`
115
+
116
+
## Testing
117
+
118
+
This repository includes a comprehensive test suite to validate Postgres images. The tests verify:
make test-image IMAGE=<image> FLAVOR=<minimal|standard>
136
+
```
137
+
138
+
Example:
139
+
140
+
```bash
141
+
make test-image IMAGE=ghcr.io/pgedge/pgedge-postgres:17-spock5-standard FLAVOR=standard
142
+
```
143
+
144
+
Or run directly with Go:
145
+
146
+
```bash
147
+
cd tests && go run main.go -image <image> -flavor <minimal|standard>
148
+
```
149
+
150
+
### Local Testing Limitations
151
+
152
+
**Architecture Limitations:** When running tests locally, you can only test images that match your local machine's architecture. For example:
153
+
- On an x86_64/amd64 machine, you can only test amd64 images
154
+
- On an ARM64 machine, you can only test arm64 images
155
+
156
+
To test images for multiple architectures (x86 and ARM), use the GitHub Actions workflow which runs tests on both `ubuntu-latest` (x86) and `ubuntu-24.04-arm` (ARM) runners.
157
+
158
+
### CI/CD Testing
159
+
160
+
The GitHub Actions workflow (`.github/workflows/test_images.yaml`) can be triggered manually to test images across multiple architectures. The workflow accepts:
161
+
- **Package Repository**: The container registry repository name
162
+
- **Tags**: Comma-separated list of image tags to test
163
+
- **Architectures**: Comma-separated list of architectures (`x86,arm`)
164
+
165
+
The workflow will automatically test each tag on each specified architecture.
0 commit comments