Summary
When the reusable Node/Java/Python workflows are dispatched in a fork with a
precompiled run ID from that fork, scripts/download-liblbug.sh still defaults
artifact lookup to LadybugDB/ladybug. The run ID is repository-scoped, so the
download returns HTTP 404 and the matrix fails before build or test.
Reproduction
- Dispatch
.github/workflows/precompiled-bin-workflow.yml in a fork.
- Dispatch
.github/workflows/nodejs-workflow.yml in the same fork with that
successful run ID.
- Observe
gh run download "$RUN_ID" --repo LadybugDB/ladybug.
Observed failure:
HTTP 404: Not Found (.../repos/LadybugDB/ladybug/actions/runs/<fork-run-id>/artifacts)
Artifact liblbug-static-osx-arm64 does not contain liblbug-static-osx-arm64.tar.gz
The first error is the root cause; the missing-archive message is secondary.
Expected behavior
When LBUG_PRECOMPILED_RUN_ID is set in GitHub Actions, artifact lookup should
default to the current github.repository, while preserving
LBUG_GITHUB_REPOSITORY as an explicit override and preserving the canonical
upstream repository for release downloads.
Evidence
A one-line workflow-only override:
LBUG_GITHUB_REPOSITORY: ${{ github.repository }}
allows the existing script to download the exact fork artifact successfully.
This was validated locally before rerunning the fork matrix.
No publication or deployment is involved.
Summary
When the reusable Node/Java/Python workflows are dispatched in a fork with a
precompiled run ID from that fork,
scripts/download-liblbug.shstill defaultsartifact lookup to
LadybugDB/ladybug. The run ID is repository-scoped, so thedownload returns HTTP 404 and the matrix fails before build or test.
Reproduction
.github/workflows/precompiled-bin-workflow.ymlin a fork..github/workflows/nodejs-workflow.ymlin the same fork with thatsuccessful run ID.
gh run download "$RUN_ID" --repo LadybugDB/ladybug.Observed failure:
The first error is the root cause; the missing-archive message is secondary.
Expected behavior
When
LBUG_PRECOMPILED_RUN_IDis set in GitHub Actions, artifact lookup shoulddefault to the current
github.repository, while preservingLBUG_GITHUB_REPOSITORYas an explicit override and preserving the canonicalupstream repository for release downloads.
Evidence
A one-line workflow-only override:
allows the existing script to download the exact fork artifact successfully.
This was validated locally before rerunning the fork matrix.
No publication or deployment is involved.