Skip to content

fix(ci): use SVG logo in OLM bundle and generate icon at build time#132

Merged
SebTardif merged 1 commit into
mainfrom
ci/olm-svg-icon
May 29, 2026
Merged

fix(ci): use SVG logo in OLM bundle and generate icon at build time#132
SebTardif merged 1 commit into
mainfrom
ci/olm-svg-icon

Conversation

@SebTardif

Copy link
Copy Markdown
Contributor

Replace hardcoded PNG base64 (19 KB) with SVG (1.7 KB) read from docs/logo.svg at bundle generation time. The icon now stays in sync with any logo updates automatically.

Before: Icon was baked into the CSV template as a 19 KB PNG base64 string. Logo changes required manually re-encoding and updating the template.

After: make generate-olm-bundle reads docs/logo.svg, base64-encodes it, and substitutes the __ICON_BASE64__ placeholder. 225x smaller, always current.

@github-actions github-actions Bot added area/ci CI/CD workflows size/xs < 10 lines changed labels May 29, 2026
@SebTardif SebTardif enabled auto-merge May 29, 2026 04:30
SebTardif added a commit that referenced this pull request May 29, 2026
The 'Wait for lint and unit gate' step polls the GitHub API to check
job status before running E2E tests. If the API returns truncated JSON,
jq parse fails and set -Eeuo pipefail kills the step immediately.

Add retry-on-failure: validate the API response with jq empty before
parsing, and continue the poll loop on transient failures instead of
aborting the entire E2E job.

Fixes a flaky E2E failure seen on PR #132 (run 26617885011).

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif SebTardif force-pushed the ci/olm-svg-icon branch 3 times, most recently from bb67a78 to e280e34 Compare May 29, 2026 11:28
Replace hardcoded PNG base64 (19 KB) with SVG (1.7 KB) read from
docs/logo.svg at bundle generation time. The icon now stays in sync
with any logo updates automatically.

Substitution points: __VERSION__, __DATE__, __ICON_BASE64__.

Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
@SebTardif SebTardif added this pull request to the merge queue May 29, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 29, 2026
@SebTardif SebTardif merged commit e47df9a into main May 29, 2026
33 checks passed
@SebTardif SebTardif deleted the ci/olm-svg-icon branch May 29, 2026 12:26
This was referenced May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI/CD workflows size/xs < 10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant