Skip to content

fix(nightly): push signed tag directly instead of broken refs API#478

Merged
BenJule merged 1 commit into
masterfrom
fix-nightly-tag
Jun 5, 2026
Merged

fix(nightly): push signed tag directly instead of broken refs API#478
BenJule merged 1 commit into
masterfrom
fix-nightly-tag

Conversation

@BenJule

@BenJule BenJule commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Closes #477

Nightly #25 built all platform artifacts fine but the publish job failed with HTTP 422 'Object does not exist': the Create signed nightly tag step created a local signed tag object, then called git/refs with its SHA — which only works for objects already on the server.

Fix: push the signed tag directly (preserves the GPG signature; a tag push adds no commits, so workflow push-protection does not apply), with a correct two-step API fallback (create tag object → then ref).

Affects the upcoming 2.7.1 release too (same code path).

The 'Create signed nightly tag' step created a local signed tag object,
then called the git/refs API with that object's SHA — but the object was
never uploaded to the server, so the API returned HTTP 422 'Object does
not exist' and the whole publish job failed (Nightly #25, all artifacts
built fine).

Push the signed tag directly: it preserves the GPG signature and a tag
push adds no commits (HEAD is already on the remote), so the workflow-file
push protection does not apply. Two-step API fallback (create tag object,
then ref) only if the direct push is rejected.
@github-actions github-actions Bot added the area: ci GitHub Actions, CI/CD label Jun 5, 2026
@github-actions github-actions Bot added this to the v02.07.00-dev milestone Jun 5, 2026
@BenJule BenJule merged commit 7eb0971 into master Jun 5, 2026
4 of 5 checks passed
@BenJule BenJule deleted the fix-nightly-tag branch June 5, 2026 17:47
BenJule added a commit that referenced this pull request Jun 6, 2026
The 2.7.1 update (#476) used pure-2.7.1 versions for shared-feature files,
dropping fork-only patches 2.7.1 does not provide. Nightly #27 surfaced the
build regressions. Restore them and harden the CD publish path:

- wxMediaCtrl3.cpp: restore #ifndef BAMBUSTUDIO_NO_AVVIDEODECODER guard
  (Win-ARM64 LNK2001: AVVideoDecoder excluded there, 2.7.1 uses it).
- deps/ZLIB 1.2.13 -> 1.3.1 (1.2.13 K&R decls break the macOS 26 SDK).
- MainFrame.cpp: restore __WXGTK__ deferred-geometry (Wayland startup assertion).
- Preset.cpp: restore parent-preset fallback (no silent user-preset deletion).
- cd-nightly.yml + cd-release-candidate.yml: drop BambuStudio_dep_* from the
  release (~800 MB; cd-release already did).
- cd-release-candidate.yml: apply the same signed-tag publish fix as #478
  (the local 'git tag -s' + git/refs API returned HTTP 422 'Object does not
  exist' — push the signed tag directly with a two-step API fallback).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci GitHub Actions, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nightly publish fails: signed tag push uses broken refs API (HTTP 422)

1 participant