Skip to content

ci: get lib-ci running again (empty expression, PyYAML pin) - #23

Merged
gpmayorga merged 3 commits into
mainfrom
ci/fix-lib-ci-empty-expression
Nov 8, 2026
Merged

gpmayorga merged 3 commits into
mainfrom
ci/fix-lib-ci-empty-expression

Conversation

@gpmayorga

@gpmayorga gpmayorga commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

lib-ci.yml has not run since #20 merged. Two fixes get it running and green again.

1. Empty expression (parse error). A comment inside the first-party pin check's Python heredoc contains a literal ${{ }}:

# Static check only: a ref or repository set through a ${{ }} expression

GitHub evaluates ${{ }} anywhere in a workflow file, including inside run: scripts and their comments, and an empty expression is a parse error. The whole workflow is rejected at startup, so every run since then shows as failed with zero jobs and never triggers on pull_request: run 68 on main (#20's merge commit), run 69 on Dependabot's #21, run 70 on #22. The comment now says "set through a GitHub expression".

2. PyYAML pin. With the file parsing again, the first run on this PR showed the next problem: the first-party pin check installs PyYAML with --only-binary=:all: and hash pins, and 6.0.2 has no wheel for the Python on the current ubuntu-latest image (No matching distribution found for pyyaml==6.0.2 (from versions: 6.0.3)). The pin moves to 6.0.3 with the hashes of its manylinux x86_64 wheels for CPython 3.10 to 3.14, so the next runner Python upgrade does not break it again.

As a result of the first issue, actionlint, pinact and yamllint have not checked any change since 2026-11-04.

Checks

  • First run on this PR: actionlint and yamllint passed; pinned-actions-check failed only at the PyYAML install, which the second commit fixes.
  • pip download --require-hashes --only-binary=:all: with the new requirement resolves locally.
  • The first-party pin check script passes locally on this branch.
  • No other empty ${{ }} remains under .github/ or actions/; every workflow and action file parses as YAML.

Once merged, #21 and #22 need their branches updated from main to get a lib-ci run.

🤖 Generated with Claude Code

https://claude.ai/code/session_015QijPQWNepDG9tJ3aYZ9LC

A comment inside the first-party pin check's Python heredoc contained a
literal ${{ }}. GitHub evaluates expressions anywhere in a workflow file,
including inside run scripts, and an empty one is a parse error. Every
lib-ci run since #20 has failed at startup with no jobs, on main and on
every PR, so neither actionlint, pinact nor yamllint has run since.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QijPQWNepDG9tJ3aYZ9LC
@gpmayorga gpmayorga added the github_actions Pull requests that update GitHub Actions code label Nov 8, 2026 — with Claude
The check installs PyYAML with --only-binary and hash pins. 6.0.2 has no
wheel for the Python on the current ubuntu-latest image, so pip fails
before the check runs. 6.0.3 carries the hashes of its manylinux x86_64
wheels for CPython 3.10 to 3.14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QijPQWNepDG9tJ3aYZ9LC
@gpmayorga gpmayorga changed the title ci: remove the empty expression that invalidates lib-ci ci: get lib-ci running again (empty expression, PyYAML pin) Nov 8, 2026
@gpmayorga
gpmayorga marked this pull request as ready for review November 8, 2026 12:33
@gpmayorga
gpmayorga requested a review from hieronx as a code owner November 8, 2026 12:33
@gpmayorga
gpmayorga merged commit 135232b into main Nov 8, 2026
3 checks passed
@gpmayorga
gpmayorga deleted the ci/fix-lib-ci-empty-expression branch November 8, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants