Skip to content

fix: omit source_sha in retry mode - #764

Merged
jbachorik merged 1 commit into
mainfrom
fix/release-retry-source-sha
Aug 28, 2026
Merged

jbachorik merged 1 commit into
mainfrom
fix/release-retry-source-sha

Conversation

@jbachorik

Copy link
Copy Markdown
Collaborator

Fixes retry mode: the original run's source_sha is stale after merging fix PRs, causing the workflow to reject the dispatch. Don't pass source_sha in retry mode; drop the head_sha filter from run correlation.

In retry mode the branch HEAD may have moved since the original run
(e.g. from merging the fix PR), so passing the stale source_sha causes
the workflow to reject it with 'Dispatched SHA differs from requested
SHA'. Don't pass source_sha in retry mode, and drop the head_sha filter
from the run correlation so it matches by request_id+actor+branch only.
@jbachorik jbachorik added the AI label Aug 28, 2026
@jbachorik
jbachorik marked this pull request as ready for review August 28, 2026 17:36
@jbachorik
jbachorik requested a review from a team as a code owner August 28, 2026 17:36
@jbachorik
jbachorik merged commit b566263 into main Aug 28, 2026
13 of 29 checks passed
@jbachorik
jbachorik deleted the fix/release-retry-source-sha branch August 28, 2026 17:36
@github-actions github-actions Bot added this to the 1.50.0 milestone Aug 28, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a2dff00673

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread utils/release.sh
Comment on lines +651 to +654
if [ -n "$RETRY_RUN_ID" ]; then
SOURCE_SHA_FIELD=""
else
SOURCE_SHA_FIELD="--field source_sha=$COMMIT_SHA"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pin retries to the current branch SHA

When retrying after the branch has moved, the confirmation still displays the original run's .headSha, but omitting this field makes GitHub resolve --ref to whatever the branch HEAD is at dispatch time. An unrelated push before dispatch can therefore cause a real retry to publish code the operator was never shown or asked to confirm. Resolve the current remote HEAD for retry mode, display it, and pass that value as source_sha so the workflow retains its mismatch guard.

Useful? React with 👍 / 👎.

@dd-octo-sts

dd-octo-sts Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Scan-Build Report

User:runner@runnervmgx7h7
Working Directory:/home/runner/work/java-profiler/java-profiler/ddprof-lib/src/test/make
Command Line:make -j4 all
Clang Version:Ubuntu clang version 18.1.3 (1ubuntu1)
Date:Fri Aug 28 17:38:02 2026

Bug Summary

Bug TypeQuantityDisplay?
All Bugs1
Logic error
Dereference of null pointer1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Logic errorDereference of null pointerfaultInjection.cppcrashNow242

@dd-octo-sts

dd-octo-sts Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

CI Test Results

Run: #36587155523 | Commit: b566263 | Duration: 15m 8s (longest job)

✅ All 32 test jobs passed

Status Overview

JDK glibc-aarch64/debug glibc-amd64/debug musl-aarch64/debug musl-amd64/debug
8 - ✅ - -
8-ibm - ✅ - -
8-j9 ✅ ✅ - -
8-librca - - ✅ ✅
8-orcl - ✅ - -
11 - ✅ - -
11-j9 ✅ ✅ - -
11-librca - - ✅ ✅
17 ✅ ✅ - -
17-graal ✅ ✅ - -
17-j9 ✅ ✅ - -
17-librca - - ✅ ✅
21 ✅ ✅ - -
21-graal ✅ ✅ - -
21-librca - - ✅ ✅
25 ✅ ✅ - -
25-graal ✅ ✅ - -
25-librca - - ✅ ✅

Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled

Summary: Total: 32 | Passed: 32 | Failed: 0


Updated: 2026-09-29 16:03:05 UTC

@zhengyu123 zhengyu123 added the fixed_version: v_1.51.0 Version this PR's fix shipped in label Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI fixed_version: v_1.51.0 Version this PR's fix shipped in

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants