Skip to content

fix(ci): repair corrupted Dockerfile and add missing release-drafter config#141

Merged
cryptoxdog merged 2 commits into
mainfrom
fix/ci-docker-release-drafter
Jul 23, 2026
Merged

fix(ci): repair corrupted Dockerfile and add missing release-drafter config#141
cryptoxdog merged 2 commits into
mainfrom
fix/ci-docker-release-drafter

Conversation

@cryptoxdog

@cryptoxdog cryptoxdog commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Repairs three CI failures that occur on every push/PR against main, unrelated to code changes.

1. Dockerfile corruption (Docker Build & Push red since f3db6fe)

The L9_META header injection in f3db6fe stripped the # comment markers from most of the Dockerfile: bare lines like --- L9_META ---, ── Stage 1: Dependencies ──, and Copy application code were left uncommented and parsed as Docker instructions, causing:

dockerfile parse error on line 11: unknown instruction: ---

This PR restores the comment markers with content unchanged (including the newer COPY chassis/ line). Verified locally with docker build --check — clean parse, no warnings.

2. Missing Release Drafter config (update-release-draft red on every run)

release-drafter/release-drafter@v7 failed with Config file not found with error 404 (Quantum-L9/.github:.github/release-drafter.yml). Added .github/release-drafter.yml with conventional-commit-style categories, autolabeler, and a patch-default version resolver.

3. Invalid Docker tag on pull_request events (Build & Push Container red on every PR) — fixed by repo owner

.github/workflows/docker-build.yml line 82 had a latent bug: type=sha,prefix={{branch}}- produces an invalid tag on pull_request events, since {{branch}} resolves to an empty string when the ref is refs/pull/N/merge (not a real branch ref).

Confirmed from live CI logs on this PR and #142:

Docker tags: ghcr.io/cryptoxdog/graph-cognitive-engine:-bb7e3af
ERROR: failed to build: invalid tag "...:-bb7e3af": invalid reference format

Fixed with a static prefix: type=sha,prefix=sha-, which resolves identically on push and pull_request events. This required a direct push from the repo owner since modifying .github/workflows/** needs the workflows token scope the automation lacks.

…config

- Dockerfile: restore '#' comment markers stripped by the L9_META injection
  in f3db6fe (bare text lines like '--- L9_META ---' and 'Copy application
  code' were parsed as Docker instructions -> 'dockerfile parse error on
  line 11: unknown instruction: ---'). Content unchanged, chassis COPY
  preserved; docker build --check passes.
- .github/release-drafter.yml: add the missing config (release-drafter@v7
  404'd falling back to Quantum-L9/.github which has no config).
@cursor

cursor Bot commented Jul 23, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@github-actions

Copy link
Copy Markdown

PR reviewable size is within recommended limits

type=sha,prefix={{branch}}- resolved {{branch}} to an empty string on
pull_request events (ref is refs/pull/N/merge, not a branch ref),
producing the invalid tag ":-<sha>" and failing "Build & Push
Container" on every PR (confirmed on #141 and #142 build logs:
"invalid tag ...:-bb7e3af: invalid reference format"). A static
sha- prefix works identically on push and pull_request events.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cryptoxdog

Copy link
Copy Markdown
Collaborator Author

Update: docker-build.yml line 82 bug fixed

The "not included" item from the PR description — type=sha,prefix={{branch}}- producing an invalid tag on pull_request events — is now fixed in this PR (commit 35d9f14).

Root cause confirmed from live CI logs (this PR's and #142's "Build & Push Container" runs):

  • {{branch}} resolves to refs/pull/N/merge on pull_request events, which isn't a branch ref, so the template evaluates to an empty string
  • That produced the tag ghcr.io/cryptoxdog/graph-cognitive-engine:-<sha>
  • docker buildx build rejected it: ERROR: failed to build: invalid tag "...:-bb7e3af": invalid reference format

Fix: type=sha,prefix=sha- — a static prefix that resolves identically on push and pull_request events.

This was pushed directly (not by the bot) since modifying .github/workflows/** requires the workflows token scope the automation lacks. All three fixes (Dockerfile corruption, missing release-drafter config, and this tag bug) are now in this PR.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@cryptoxdog
cryptoxdog merged commit c306ff7 into main Jul 23, 2026
32 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant