Skip to content

Fix the OSL tracker workflow failing on every pull request - #272

Merged
Mistium merged 1 commit into
mainfrom
fix/osl-tracker-pathspec
Sep 20, 2026
Merged

Mistium merged 1 commit into
mainfrom
fix/osl-tracker-pathspec

Conversation

@Mistium

@Mistium Mistium commented Sep 20, 2026

Copy link
Copy Markdown
Owner

The Track OSL Script Changes workflow has failed on every run since it was added. It is the only check on #271, so that pull request shows red for a reason that has nothing to do with its contents.

The bug

fatal: pathspec ':path/osl-tracker.json' did not match any files
Process completed with exit code 128

:path/ is a real directory — it holds the 108 OSL shell commands. But git add :path/... makes Git read the leading colon as a pathspec magic prefix rather than a path, so it matches nothing and exits 128. A ./ prefix makes it a plain path again.

The on: paths: filters are unaffected — GitHub's path filters are not Git pathspecs, which is why the workflow triggers correctly in the first place.

Also

The step tried to git push on pull_request events. That cannot work for a pull request from a fork, so it would have failed at the next line even once the git add succeeded. It is now limited to push events. The tracker script still runs on pull requests, it just no longer tries to commit what it produced.

Verified

Ran the real workflow steps locally against this branch:

  • node .github/scripts/track-osl-changes.js — succeeds, "Tracking complete"
  • git add ./:path/osl-tracker.json — succeeds, where the old form still fails with the error above
  • git diff --staged --quiet — correctly reports a staged change

Merging this should turn #271 green without the contributor touching anything.

The commit step ran `git add :path/osl-tracker.json`. Git reads a
leading colon as pathspec magic, so it never matched the file and the
job died with "pathspec ':path/osl-tracker.json' did not match any
files" — exit 128 on every run since the workflow was added. A ./
prefix makes it a plain path.

The step also tried to push on pull_request events, which cannot work
for a fork and would fail once the add succeeded, so it is now limited
to push events. The tracker still runs on pull requests, it just does
not try to commit the result.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 20, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-20T23:35:42.029474Z bdf32d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying originos with  Cloudflare Pages  Cloudflare Pages

Latest commit: bdf32d4
Status: ✅  Deploy successful!
Preview URL: https://2a175cea.originos.pages.dev
Branch Preview URL: https://fix-osl-tracker-pathspec.originos.pages.dev

View logs

@Mistium
Mistium merged commit 1eada18 into main Sep 20, 2026
1 check 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