Skip to content

Commit f17b783

Browse files
fix: improve deployment reliability and error handling (#32)
1 parent 4970d00 commit f17b783

File tree

15 files changed

+147
-37
lines changed

15 files changed

+147
-37
lines changed

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default defineConfig({
3333
{ text: "Examples", link: "/examples/" },
3434
{ text: "Overlay Testing", link: "/overlay/" },
3535
{
36-
text: "v1.1.6",
36+
text: "v1.1.8",
3737
items: [{ text: "Changelog", link: "/changelog" }],
3838
},
3939
],

docs/api/deployment/rhdh-deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ Wait for RHDH deployment to be ready.
9494

9595
| Parameter | Type | Default | Description |
9696
|-----------|------|---------|-------------|
97-
| `timeout` | `number` | `300000` | Timeout in milliseconds |
97+
| `timeout` | `number` | `500` | Timeout in seconds |
9898

9999
```typescript
100-
await rhdh.waitUntilReady(600000); // 10 minutes
100+
await rhdh.waitUntilReady(600); // 10 minutes
101101
```
102102

103103
### `rolloutRestart()`

docs/api/playwright/base-config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Raw base configuration object. Use for advanced customization.
5757
},
5858
fullyParallel: true,
5959
forbidOnly: !!process.env.CI,
60-
retries: process.env.CI ? 2 : 0,
60+
retries: process.env.CI ? 1 : 0,
6161
workers: "50%",
6262
reporter: [["list"], ["html"]],
6363
use: {
@@ -91,7 +91,7 @@ export default playwrightDefineConfig({
9191
| `timeout` | `90000` |
9292
| `expect.timeout` | `30000` |
9393
| `fullyParallel` | `true` |
94-
| `retries` | `2` (CI), `0` (local) |
94+
| `retries` | `1` (CI), `0` (local) |
9595
| `workers` | `"50%"` |
9696
| `viewport` | `1920x1080` |
9797
| `video` | `"on"` |

docs/changelog.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## [1.1.7] - Current
5+
## [1.1.8] - Current
6+
7+
### Fixed
8+
- Fixed namespace deletion race condition during test retries
9+
- Improved 404 error detection for different Kubernetes client versions
10+
11+
### Changed
12+
- Increased default timeouts (300s → 500s) and test timeout (600s)
13+
- Reduced CI retries from 2 to 1
14+
- Added pod diagnostics logging on timeout and periodic status updates
15+
16+
## [1.1.7]
617

718
### Fixed
819
- **Secrets with control characters**: Fixed `SyntaxError: Bad control character in string literal` when secrets contain newlines or special characters (e.g., GitHub App private keys)
9-
- Replaced `JSON.parse(envsubst(JSON.stringify(obj)))` approach with `lodash.clonedeepwith` for safe environment variable substitution
10-
- Now correctly handles private keys, tabs, carriage returns, and other control characters in secret values
1120

1221
### Dependencies
13-
- Added `lodash.clonedeepwith@^4.5.0` for safe deep object traversal with custom value substitution
22+
- Added `lodash.clonedeepwith@^4.5.0` for safe environment variable substitution
1423

1524
## [1.1.6]
1625

docs/guide/core-concepts/playwright-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The `defineConfig` function extends your configuration with sensible defaults fo
2626
| `testDir` | `./tests` | Test files location |
2727
| `timeout` | 90,000ms | Test timeout |
2828
| `expect.timeout` | 10,000ms | Assertion timeout |
29-
| `retries` | 2 (CI), 0 (local) | Test retries |
29+
| `retries` | 1 (CI), 0 (local) | Test retries |
3030
| `workers` | 50% of CPUs | Parallel workers |
3131
| `outputDir` | `node_modules/.cache/e2e-test-results` | Playwright artifacts |
3232

docs/guide/deployment/keycloak-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ await keycloak.teardown();
210210
Wait for Keycloak to be ready:
211211

212212
```typescript
213-
await keycloak.waitUntilReady(300000); // 5 minutes
213+
await keycloak.waitUntilReady(500); // default: 500 seconds (~8 minutes)
214214
```
215215

216216
## Properties

docs/guide/deployment/rhdh-deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ Any other value will throw an error during deployment.
127127
Wait for the RHDH deployment to be ready:
128128

129129
```typescript
130-
// Default timeout: 300000ms (5 minutes)
130+
// Default timeout: 500 seconds (~8 minutes)
131131
await deployment.waitUntilReady();
132132

133133
// Custom timeout
134-
await deployment.waitUntilReady(600000); // 10 minutes
134+
await deployment.waitUntilReady(600); // 10 minutes
135135
```
136136

137137
### `rolloutRestart()`

docs/guide/utilities/kubernetes-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Wait for pods to be ready with early failure detection. Unlike `oc rollout statu
105105
await k8sClient.waitForPodsWithFailureDetection(
106106
"my-namespace",
107107
"app.kubernetes.io/instance=my-app",
108-
300, // timeout in seconds (default: 300)
108+
500, // timeout in seconds (default: 500)
109109
5000 // poll interval in ms (default: 5000)
110110
);
111111
```

docs/overlay/reference/patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ test.beforeAll(async ({ rhdh }) => {
248248
});
249249
```
250250

251-
Note: `rhdh.deploy()` already increases the test timeout (500s). If your setup does more work before deploy, set a higher timeout in `beforeAll`.
251+
Note: `rhdh.deploy()` already increases the test timeout (600s / 10 minutes). If your setup does more work before deploy, set a higher timeout in `beforeAll`.
252252

253253
## Error Handling Patterns
254254

docs/tutorials/ci-cd-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ oc create token e2e-tests -n default --duration=8760h
9696
The `CI` environment variable enables:
9797

9898
- Auto-cleanup of namespaces
99-
- Increased retries (2 instead of 0)
99+
- Increased retries (1 instead of 0)
100100
- Non-interactive mode
101101

102102
## Parallel Jobs

0 commit comments

Comments
 (0)