Skip to content

ci(release): Bump craft to 3.9.0 and update config - #1400

Merged
BYK merged 2 commits into
masterfrom
ci/bump-craft-3.9.0
Nov 25, 2026
Merged

BYK merged 2 commits into
masterfrom
ci/bump-craft-3.9.0

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the pinned getsentry/craft action from 2.33.3 (4e164274) to 3.9.0 (2e29b081).

Craft's "Check release blockers" step used to call the async run-cancel API and then exit 0, so the job kept going and could still open a getsentry/publish issue while release-blocker issues were open (example in getsentry/symbolic). getsentry/craft#956 fixed that, and the fix shipped in craft 3.9.0. This is the same change as getsentry/symbolic#1134.

minVersion is 0.23.1, so craft keeps using scripts/bump-version.sh and the 3.0 automatic version bumping change doesn't apply. There's no top-level changelog.includePaths/unownedPaths and no nuget target. I ran craft 3.9.0's craft prepare 99.0.0 --dry-run --no-input --no-push on the default branch before this change. It passed and bumped the crate Cargo.toml versions as expected.

There are no open release-blocker issues here, so nothing stops the next release. From now on, any open release-blocker issue will stop the release.

Config changes: minVersion 0.23.1 → 3.9.0. To keep releases the same, this adds preReleaseCommand: bash scripts/bump-version.sh, which was craft's default below 2.21.0, and versioning.policy: manual, which was the default below 2.14.0. The deprecated changelogPolicy: auto is now changelog.policy: auto. craft 3.9.0's prepare 99.0.0 --dry-run gave the same result before and after this change: the same 18 files were bumped (the crate Cargo.toml files, Cargo.lock and CHANGELOG.md). The deprecation warning is gone.

via @BYK.

--

View Session in Sentry

@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 3, 2026 21:00
@sentry-junior sentry-junior Bot changed the title ci(release): Bump getsentry/craft to 3.9.0 ci(release): Bump craft to 3.9.0 and update config Nov 3, 2026
BYK added a commit to getsentry/junior that referenced this pull request Nov 25, 2026
…4304)

A Junior PR in a repo that requires no review never gets a "Ready to
merge" Inbox item, because the merge action needs an approval. Such PRs
(for example getsentry/skillet#45 and getsentry/platformicons#251) are
clean and mergeable but never show in Code · Mine's "Waiting on you".

The merge action now follows GitHub's merge state: the PR is open, not a
draft, auto-merge is off, the state is `clean`, no reviewer still
requests changes, and GitHub requests no review. A repo that requires a
review reports `blocked` until someone approves, so it keeps today's
behavior. Junior still never approves or merges.

`GitHubPullRequestMergeState.approved` becomes `reviewOutcome`
(`approved`, `changesRequested`, or unset), because the action now has
to tell "no approval" apart from "a reviewer requests changes".

### A pending review request comes first

When GitHub still requests a review from a person or a team, the action
is never `merge`, even when the state is `clean`:

- A request for the requester gives the existing `review` action
("Review requested").
- A request for only someone else, or a team, gives no item. The PR
waits on that reviewer.

The new `reviewPending` flag counts every node of `reviewRequests`, not
only `requestedReviewers`, because a team that the App cannot read comes
back with no login. This also applies where GitHub requires a review: an
approved PR that still has a pending request asks for that review, not
the merge.

### Wording

With no approval, the item keeps the `Ready to merge · #N` title and its
text says:

> GitHub says that #N can merge with no review. Review it, then merge
it.

The dashboard keys the kind, icon, and Code · Mine head off the title
(`askKind.tsx`, `inboxAsks.tsx`, `inboxModel.ts`, `codeChangeHead.ts`).
The Inbox hides item text only when it repeats the head
(`textRepeatsHead`), so this text shows on the row and makes clear that
nobody reviewed the PR. The text stays true after a later approval,
which matters because the item changes only when the action changes.

### Dismissed items

The action stays `merge`, so an item that a person dismissed, such as
getsentry/sentry-rust#1400's, does not come back. Existing PRs get the
new action on their next webhook.

### `design/github.md`

The rule takes the approved text. @BYK, the last sentence is new and
mirrors your answer about pending reviews; tweak it as you like:

> When a review is requested and still pending, the PR asks for that
review instead, even where the repo allows merging without one.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A8f9e8b3ac538972e39c68bd58906fb80 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A8f9e8b3ac538972e39c68bd58906fb80)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A8f9e8b3ac538972e39c68bd58906fb80/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>
@BYK
BYK merged commit dbd14e1 into master Nov 25, 2026
31 checks passed
@BYK
BYK deleted the ci/bump-craft-3.9.0 branch November 25, 2026 22:35
BYK added a commit to getsentry/junior that referenced this pull request Nov 25, 2026
… in limbo (#4310)

The next action of a Junior pull request ("Review requested", "Ready to
merge", or the held-draft ask from #4306) is derived
only when a webhook that can change it arrives. Two groups of open PRs
have no item:

- Quiet PRs that went silent before a rule shipped. Example:
#2382, where GitHub asked for the requester's review on
11-12, before #3395, and no webhook has come since.
About 14 of BYK's PRs are `clean` and not approved. With
#4304 they derive `merge`, but no webhook will come to
derive it.
- **PRs in limbo:** ready PRs that ask nothing of their requester,
because no one ever asked for the requester's review. They were opened
ready, or became ready, before #3250, or the requester
linked GitHub later.

**This is a one-off run with a done key, not a recurring poll.** A new
started task, `backfillPullRequestActions`, does the run. It follows the
`repository-name-repair` one-off (#4192):

- After deploy, the GitHub heartbeat starts one page per tick: 50 open
Junior PRs, in GitHub id order. Each page has its own task key.
- Each page goes through the webhook sync path,
`syncGitHubPullRequestActions`, with the same claim and the same
concurrency limit of 5. A PR that no person asked for returns before any
GitHub read.
- After the last page, the task sets
`pull-request-action-backfill:v1:done` in plugin state, and the
heartbeat never starts it again. To run it again after a later rule
ships, bump `VERSION` in `pull-request-action-backfill.ts`.

## Limbo

`inLimbo` in `pull-request-action.ts` uses only what `nextAction`
already reads, plus the head commit time. An open Junior PR is in limbo
when all of these are true:

- The derived action is none.
- It is not a draft, and auto-merge is off.
- It has a stored requester with a linked GitHub login.
- GitHub has no pending user review request for the requester. A pending
request for another person or a team does not count, because it asks the
requester for nothing.
- The requester has not reviewed or commented since the last push (the
head commit's `committedDate`).
- No reviewer approved it. Such a PR waits only on others.
- No reviewer, the requester included, requests changes. On such a PR,
Junior acts next.

For each PR in limbo, the backfill asks for the requester's review on
GitHub. It uses `requestPullRequestReviewers`, the same call that
#3250 makes on `ready_for_review`. It asks only the
requester, and never code owners or teams. The next read then derives
the normal "Review requested" item. To show approval on a PR that is not
`clean`, the merge-state read now computes `reviewOutcome` for every
open PR. `nextAction` still reads it only for `clean` PRs.

**Side effect:** after deploy, the backfill sends one GitHub review
request to the requester on each PR in limbo, for all users. GitHub data
from 11-25: 98 open, ready Junior PRs, from 21 requesters, have an
assignee that GitHub does not ask for a review, are not approved, have
no change request, and have auto-merge off. This is an upper bound. PRs
that derive `merge`, PRs where the requester commented after the last
push, and PRs with no stored requester or linked login are not asked.
BYK has 34 of these PRs. About 14 of them derive "Ready to merge" under
#4304, so BYK gets about 20 review requests.

Dismissed items stay dismissed. The sync changes an item only when the
derived action is different from the saved one.
getsentry/sentry-rust#1400 has `merge` saved, so its dismissed "Ready to
merge" item does not come back. A PR in limbo has no saved action, so
asking for its review cannot bring back a dismissed item.

Started plugin tasks now get `inboxItems` and `users.readIdentity`, as
plugin routes do. The task needs them to show items and to map the
requester's linked GitHub login.

PRs that go into limbo after this one-off are handled by the PR stacked
on this one.

## Proposed design/github.md rule (not edited here)

> A ready Junior PR always has an Inbox ask or a pending GitHub review
request for its requester. When it asks nothing of the requester, Junior
asks for the requester's review on GitHub once the required checks pass,
but not after a push when the requester has already reviewed or
commented.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A6eedb91e2d3dfa1fd070e65575e7799d -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A6eedb91e2d3dfa1fd070e65575e7799d)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A6eedb91e2d3dfa1fd070e65575e7799d/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>
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.

2 participants