Fix test failures from removed image references#44932
Fix test failures from removed image references#44932Crow-Control merged 2 commits intocommon2026from
Conversation
… image schemas Co-authored-by: PrivatePuffin <7613738+PrivatePuffin@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Fixes unit test failures caused by stale/removed image selectors and schema references after deprecated images were removed from values.yaml.
Changes:
- Switch ClickHouse/Solr wait containers from
wgetImagetoubuntuImagein_dbWait.tpl. - Remove schema references for deprecated/orphaned image selectors from
values.schema.json. - Delete orphaned per-image schema files for removed image selectors.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| charts/library/common/values.schema.json | Removes properties/$refs for deleted image schemas so schema validation matches current values/templates. |
| charts/library/common/templates/lib/dependencies/_dbWait.tpl | Updates wait container imageSelector to an existing image key to avoid missing-image references. |
| charts/library/common/schemas/images/yqImage.json | Deletes orphaned image schema file. |
| charts/library/common/schemas/images/wireguardImage.json | Deletes orphaned image schema file. |
| charts/library/common/schemas/images/wgetImage.json | Deletes orphaned image schema file. |
| charts/library/common/schemas/images/scratchImage.json | Deletes orphaned image schema file. |
| charts/library/common/schemas/images/redisClientImage.json | Deletes orphaned image schema file. |
| charts/library/common/schemas/images/openvpnImage.json | Deletes orphaned image schema file. |
| charts/library/common/schemas/images/alpineImage.json | Deletes orphaned image schema file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "$ref": "file:///home/runner/work/truecharts/truecharts/charts/library/common/schemas/images/codeserverImage.json", | ||
| "description": "Configuration for `codeserverImage`." | ||
| }, | ||
| "alpineImage": { | ||
| "$ref": "file:///home/runner/work/truecharts/truecharts/charts/library/common/schemas/images/alpineImage.json", | ||
| "description": "Configuration for `alpineImage`." | ||
| }, | ||
| "ubuntuImage": { | ||
| "$ref": "file:///home/runner/work/truecharts/truecharts/charts/library/common/schemas/images/ubuntuImage.json", | ||
| "description": "Configuration for `ubuntuImage`." |
There was a problem hiding this comment.
These $ref values use an absolute CI-runner filesystem path (file:///home/runner/...), which makes schema validation non-portable outside that exact environment. Prefer repository-relative refs (or a consistent project-root relative URI) so editors/validators and local tooling can resolve schemas reliably.
| {{- define "tc.v1.common.lib.deps.wait.clickhouse" -}} | ||
| enabled: true | ||
| type: system | ||
| imageSelector: wgetImage | ||
| imageSelector: ubuntuImage | ||
| securityContext: | ||
| runAsUser: 568 | ||
| runAsGroup: 568 |
There was a problem hiding this comment.
These wait containers previously used a dedicated wgetImage selector; switching to ubuntuImage can couple the wait logic to whatever tooling happens to be present in the Ubuntu image. To avoid future drift (e.g., if the base image changes), consider documenting the required binaries for these wait containers (wget/curl/nc/etc.) or using an image selector whose name/contract explicitly guarantees those tools.
| enabled: true | ||
| type: system | ||
| imageSelector: wgetImage | ||
| imageSelector: ubuntuImage |
There was a problem hiding this comment.
These wait containers previously used a dedicated wgetImage selector; switching to ubuntuImage can couple the wait logic to whatever tooling happens to be present in the Ubuntu image. To avoid future drift (e.g., if the base image changes), consider documenting the required binaries for these wait containers (wget/curl/nc/etc.) or using an image selector whose name/contract explicitly guarantees those tools.
| imageSelector: ubuntuImage | |
| imageSelector: wgetImage |
Tests were failing because `wgetImage` and other deprecated images were
removed from `values.yaml` but their references remained in templates
and schemas.
**Changes:**
- Replace `wgetImage` → `ubuntuImage` in clickhouse/solr wait containers
(`_dbWait.tpl`)
- Remove orphaned schema files: `wgetImage`, `alpineImage`,
`scratchImage`, `yqImage`, `openvpnImage`, `wireguardImage`,
`redisClientImage`
- Clean schema references in `values.schema.json`
**Before:**
```yaml
{{- define "tc.v1.common.lib.deps.wait.clickhouse" -}}
imageSelector: wgetImage # Image no longer exists
```
**After:**
```yaml
{{- define "tc.v1.common.lib.deps.wait.clickhouse" -}}
imageSelector: ubuntuImage # Uses existing ubuntu image with wget
```
All 1346 unit tests now pass.
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: PrivatePuffin <7613738+PrivatePuffin@users.noreply.github.com>
Tests were failing because `wgetImage` and other deprecated images were
removed from `values.yaml` but their references remained in templates
and schemas.
**Changes:**
- Replace `wgetImage` → `ubuntuImage` in clickhouse/solr wait containers
(`_dbWait.tpl`)
- Remove orphaned schema files: `wgetImage`, `alpineImage`,
`scratchImage`, `yqImage`, `openvpnImage`, `wireguardImage`,
`redisClientImage`
- Clean schema references in `values.schema.json`
**Before:**
```yaml
{{- define "tc.v1.common.lib.deps.wait.clickhouse" -}}
imageSelector: wgetImage # Image no longer exists
```
**After:**
```yaml
{{- define "tc.v1.common.lib.deps.wait.clickhouse" -}}
imageSelector: ubuntuImage # Uses existing ubuntu image with wget
```
All 1346 unit tests now pass.
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: PrivatePuffin <7613738+PrivatePuffin@users.noreply.github.com>
|
This PR is locked to prevent necro-posting on closed PRs. Please create a issue or contact staff on discord if you want to further discuss this |
Tests were failing because
wgetImageand other deprecated images were removed fromvalues.yamlbut their references remained in templates and schemas.Changes:
wgetImage→ubuntuImagein clickhouse/solr wait containers (_dbWait.tpl)wgetImage,alpineImage,scratchImage,yqImage,openvpnImage,wireguardImage,redisClientImagevalues.schema.jsonBefore:
After:
All 1346 unit tests now pass.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.