Skip to content

fix(nightly): push to GHCR from artifacts dir so layer titles are bare filenames#301

Merged
BYK merged 1 commit intomainfrom
fix/nightly-oras-layer-titles
Feb 26, 2026
Merged

fix(nightly): push to GHCR from artifacts dir so layer titles are bare filenames#301
BYK merged 1 commit intomainfrom
fix/nightly-oras-layer-titles

Conversation

@BYK
Copy link
Member

@BYK BYK commented Feb 26, 2026

Summary

  • Fixes Error: No nightly build found for sentry-linux-x64.gz when running sentry cli upgrade nightly
  • Root cause: ORAS records file paths as OCI layer title annotations verbatim. Pushing artifacts/*.gz stored titles as artifacts/sentry-linux-x64.gz, but findLayerByFilename() in src/lib/ghcr.ts searches for sentry-linux-x64.gz (no directory prefix).
  • Fix: add working-directory: artifacts to the Push to GHCR step so the glob *.gz expands to bare filenames.

Before (from the live GHCR manifest):

{"title": "artifacts/sentry-linux-x64.gz"}

After:

{"title": "sentry-linux-x64.gz"}

…e filenames

ORAS records file paths as layer title annotations verbatim. Pushing
'artifacts/*.gz' stored titles as 'artifacts/sentry-linux-x64.gz', but
findLayerByFilename() searches for 'sentry-linux-x64.gz' (no prefix).

Fix: use working-directory: artifacts so the glob expands to bare
filenames like 'sentry-linux-x64.gz'.
@github-actions
Copy link
Contributor

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

  • (nightly) Push to GHCR from artifacts dir so layer titles are bare filenames by BYK in #301

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 3607 uncovered lines.
✅ Project coverage is 76.42%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    76.42%    76.42%        —%
==========================================
  Files          117       117         —
  Lines        15298     15298         —
  Branches         0         0         —
==========================================
+ Hits         11691     11691         —
- Misses        3607      3607         —
- Partials         0         0         —

Generated by Codecov Action

@BYK BYK merged commit 0b8c9a8 into main Feb 26, 2026
19 checks passed
@BYK BYK deleted the fix/nightly-oras-layer-titles branch February 26, 2026 15:45
betegon pushed a commit that referenced this pull request Feb 26, 2026
…e filenames (#301)

## Summary

- Fixes `Error: No nightly build found for sentry-linux-x64.gz` when
running `sentry cli upgrade nightly`
- Root cause: ORAS records file paths as OCI layer title annotations
verbatim. Pushing `artifacts/*.gz` stored titles as
`artifacts/sentry-linux-x64.gz`, but `findLayerByFilename()` in
`src/lib/ghcr.ts` searches for `sentry-linux-x64.gz` (no directory
prefix).
- Fix: add `working-directory: artifacts` to the Push to GHCR step so
the glob `*.gz` expands to bare filenames.

**Before** (from the live GHCR manifest):
```json
{"title": "artifacts/sentry-linux-x64.gz"}
```

**After**:
```json
{"title": "sentry-linux-x64.gz"}
```
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