Skip to content

[CI/Build] Anchor Chart.yaml version grep to start of line#944

Merged
ruizhang0101 merged 2 commits intovllm-project:mainfrom
ruizhang0101:fix/chart-version-grep-anchor
May 7, 2026
Merged

[CI/Build] Anchor Chart.yaml version grep to start of line#944
ruizhang0101 merged 2 commits intovllm-project:mainfrom
ruizhang0101:fix/chart-version-grep-anchor

Conversation

@ruizhang0101
Copy link
Copy Markdown
Collaborator

Summary

The release-docker job was failing with Invalid format '82.4.3' when writing to \$GITHUB_OUTPUT. Example failure: https://github.com/vllm-project/production-stack/actions/runs/25514259997/job/74881416401

Root cause

helm/Chart.yaml contains three version: keys: the chart's own version plus two dependencies (kube-prometheus-stack: 82.4.3, prometheus-adapter: 5.3.0). The current grep matches all three, producing a multi-line value. When written as version=0.1.11\n82.4.3\n5.3.0 to \$GITHUB_OUTPUT, GHA parses subsequent lines as fresh key=value pairs, hence the Invalid format '82.4.3' error.

Fix

Anchor the regex to the start of line (^version:). The chart's top-level version: key is at column 0; dependency versions are indented under list items, so the anchor narrows the match to the chart's own version.

Same fix applied to scheduled-release.yml which has the identical pattern.

Test plan

  • Confirm release workflow no longer errors on \$GITHUB_OUTPUT parsing.
  • Local: grep -oP '^version: ...' helm/Chart.yaml returns only the chart version.

🤖 Generated with Claude Code

The grep for the chart's own version was matching dependency versions
too (kube-prometheus-stack, prometheus-adapter), producing a multi-line
value that broke `$GITHUB_OUTPUT` parsing with "Invalid format".

Anchor the regex to the start of the line — the chart's top-level
version key is the only one at column 0; dependency versions are
indented under list items.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Rui Zhang <zrfishnoodles@gmail.com>
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@ruizhang0101 ruizhang0101 merged commit 7b9c025 into vllm-project:main May 7, 2026
15 of 17 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