Skip to content

Build nightly PRs on the open release umbrella - #14967

Open
ArmandPhilippot wants to merge 1 commit into
mainfrom
armand/skip-nightly-prs-in-umbrella
Open

ArmandPhilippot wants to merge 1 commit into
mainfrom
armand/skip-nightly-prs-in-umbrella

Conversation

@ArmandPhilippot

@ArmandPhilippot ArmandPhilippot commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Description (required)

There is one scenario I hadn’t considered when implementing the release assistant: nightly PRs.

Today, if we merge a CI PR into an umbrella (e.g. #14957), and there is no release before the next day, the nightly workflow creates a new CI PR with the same changes (e.g. #14966). This happens because the workflow compares the generated pages with main.

This behavior is annoying for several reasons:

  • assuming there are no further changes, we still need to keep a long standing CI PR in the PRs list so it doesn't get recreated.
  • if there are more changes, we either review the same changes twice, or skip what looks familiar (and we could miss a small change) to only review what is new.
  • I suppose we could have a Git conflict on error-reference.mdx, and so the umbrella wouldn't take it automatically
  • since Add a default release label to nightly PRs #14962, these duplicates also show up in the "Possible matches" of the changeset PRs.

With these changes, when an umbrella is open for its target branch, the nightly now builds on the umbrella branch and opens its PR against it. This means the PR only holds what the umbrella doesn't have yet:

  • scripts/nightly-base.ts finds the base, and retargets the open nightly PR when the base changes. Otherwise, create-pull-request opens a second PR for the new base.
  • delete-branch: true closes a nightly PR once its base has its changes. The first run should close ci: update error reference docs #14966 that way.

I'm not sure if this helpful, but I also added a note to CONTRIBUTING.md:
Opening a PR targeting the umbrella branch directly bypasses the "settled" mechanism. So, theoretically, the CI PR could be for the next version if the docs umbrella hasn't been merged before the nightly workflow runs. I expect most maintainers would do that anyway, but the note says to double check that the changes belong to that release before adding accepted.

Tested on my fork (the logs are under "Find the base of the PR"):

On `main`, the nightly PR repeated changes already in the umbrella until
it was merged, and could conflict with them.
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Preview deployment

✅ Deployment complete!

@ArmandPhilippot
ArmandPhilippot marked this pull request as ready for review November 25, 2026 17:43

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant