Skip to content

merge origin/rel-golden-wattle into main - #17632

Merged
kevinushey merged 9 commits into
mainfrom
feature/merge-golden-wattle
May 14, 2026
Merged

kevinushey merged 9 commits into
mainfrom
feature/merge-golden-wattle

Conversation

@kevinushey

@kevinushey kevinushey commented May 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Merges origin/rel-golden-wattle into main, bringing over the three bug fixes that landed on the rel branch after the NEWS rotation:

Skips the release-only changes (BUILDTYPE -> "Release", NEWS rename, Golden Wattle What's New trim) by selectively resolving conflicts.

Adds scripts/merge-release-branch.sh so future rel-branch merges don't need this archaeology.

The -X no-renames finding

The merge was performed with git merge --no-ff -X no-renames origin/rel-golden-wattle. Without -X no-renames, git's rename detection conflates the rel branch's NEWS.md rename (NEWS.md -> version/news/os/NEWS-2026.05.0-golden-wattle.md) with main's own NEWS rotation. The visible symptom is that git checkout --theirs -- version/news/os/NEWS-2026.05.0-golden-wattle.md returns git's three-way merged version of the renamed file, not the rel branch's actual content -- silently substituting main's Blue Plumbago header into the archived Golden Wattle release notes.

With -X no-renames the conflicts are explicit:

  • NEWS.md -- "deleted by them"; keep main's via git add NEWS.md.
  • version/news/os/NEWS-2026.05.0-golden-wattle.md -- "both added"; take theirs via git checkout --theirs && git add.

Why not .gitattributes + merge=ours

The first version of this PR added version/BUILDTYPE merge=ours to .gitattributes with a one-time setup script to define the driver. It does not work for our scenario. Git's merge engine only consults merge drivers for true three-way merges (where both sides modified the file). For version/BUILDTYPE, main hasn't touched it since the merge base, so git takes the "trivial merge" fast path that bypasses drivers entirely -- and silently takes the rel branch's "Release" value.

Verified with a minimal repro outside this repo (see PR conversation).

scripts/merge-release-branch.sh therefore handles version/BUILDTYPE (and version/RELEASE, version/CALENDAR_VERSION for safety) with an explicit git checkout HEAD -- <path> reset after the merge. No .gitattributes magic.

Using the script next release

After this PR lands:

scripts/merge-release-branch.sh origin/rel-<codename>
git diff --staged    # inspect
git commit

The script is also idempotent across repeated merges from the same rel branch as new bug fixes land on it -- the auto-resolutions degrade to no-ops on the cases that don't apply, and the BUILDTYPE reset keeps firing on each merge.

Test plan

  • After merge: cat version/BUILDTYPE returns Daily
  • After merge: head -1 NEWS.md returns the Blue Plumbago header
  • After merge: archived NEWS file hash matches origin/rel-golden-wattle's version exactly (d394ab1...)
  • After merge: the three bug fix code changes are present in SessionHelp.cpp and DataViewer.js
  • End-to-end dry run in a fresh worktree: scripts/merge-release-branch.sh origin/rel-golden-wattle reproduces the merge result with no further manual intervention needed

skyeturriff and others added 7 commits May 13, 2026 09:54
* limit data viewer horizontal overscroll

Reserve room for the rightmost column when computing the table's
horizontal overscroll padding so it stays visible at maximum scroll;
previously the user could scroll every unpinned column off-screen.
Also sync paddingRight and the custom scrollbar thumb at the end of a
column resize drag (applyResizeDelta intentionally skips these on every
mousemove to avoid jank).

Addresses #17612.

* always allow horizontal overscroll in data viewer

Drop the totalTableWidth > viewport.clientWidth gate so the overscroll
padding is computed even when all columns fit in the viewport. This
keeps horizontal scrolling consistently available regardless of how
wide the table is relative to the viewport.

* skip data viewer overscroll padding when no unpinned columns

When every column is pinned (or no columns exist) there is no column
to scroll into view, so the overscroll formula would add
viewport.clientWidth - pinned.totalWidth of right padding for nothing,
producing a phantom horizontal scrollbar and shrinking the body.

getColumnOrder() places pinned columns before unpinned, so the last
columnOrder entry being unpinned is sufficient to confirm an unpinned
column exists. Gate the overscroll computation on that check; otherwise
leave overscroll = 0.

* add NEWS entry
* data viewer: restore column count in status bar

Addresses #17613.

The vanilla-JS data viewer rewrite dropped the column count from the
info bar. Reword the info text to include it, and use "rows" instead
of "entries" so it pairs cleanly with "columns".

* data viewer: keep 'entries' wording in info bar

* data viewer: restore 'total' qualifier in info bar text

Reverts an unintended wording change that dropped 'total' from the
column count, which broke the Playwright assertions in
pagination-sorting.test.ts. Also adds 'entries' to the filtered
suffix for clarity.

* add NEWS entry
Broaden the <h3>Arguments</h3> match so it also handles the id attribute
emitted by R >= 4.6.0 when the dynamic help server includes a table of
contents (the default in r-devel). Without this, the r-arguments-title
class is never added and the CSS rule that top-aligns argument names
never applies.

Addresses #17621.
Performed with `git merge --no-ff -X no-renames origin/rel-golden-wattle`
to avoid git's rename detection conflating the NEWS.md rename on the rel
branch with main's own NEWS rotation. Without `-X no-renames`, git would
silently apply main's Blue Plumbago header edits to the renamed-to file
version/news/os/NEWS-2026.05.0-golden-wattle.md, corrupting the archived
Golden Wattle release notes.

Brings over the three bug fixes from the rel-golden-wattle branch:
- preserve top alignment of help argument names with r-devel (#17622)
- data viewer: restore column count in status bar (#17617)
- limit data viewer horizontal overscroll (#17616)

Skips release-only changes by keeping main's state for:
- NEWS.md (modify/delete conflict; kept main's Blue Plumbago placeholder)
- version/BUILDTYPE (silently flipped to "Release"; reverted to "Daily")

Resolved version/news/os/NEWS-2026.05.0-golden-wattle.md (add/add
conflict) by taking rel-golden-wattle's version, which includes the
three bug fix entries above.

Also accepts the trim of src/node/desktop/src/assets/whats-new/golden-wattle/index.html
since main is no longer on Golden Wattle and the trimmed version matches
what shipped in the release.
@kevinushey kevinushey added this to the Blue Plumbago milestone May 14, 2026
@posit-snyk-bot

posit-snyk-bot commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@adamhigerd

adamhigerd commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

Not fond of this approach, to be honest. If the merge is going to require that many command-line flags AND require every dev to remember to run this script at least once, we should create a script for the task of merging a release branch back into main and then update the docs (https://github.com/rstudio/rstudio-pro/wiki/Merging-Dev-Branches-and-Patch-Branches#3-howto-merge-patch-branches) to use that script instead of a lengthy git merge command.

Such a script can set the git config setting appropriately so you don't have to remember whether or not you've set it up in advance.

@adamhigerd

Copy link
Copy Markdown
Contributor

To be clear: I'm not fond of the approach of using a one-time setup script and a merge command with lots of flags. I have no complaints about using a targeted ours strategy for the individual files. That sounds like the right plan.

<title>What's New in RStudio</title>
</head>
<body>
<div class="feature-section">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm assuming these removals/changes are just overwriting what was there for the 2026.04 release?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm, not sure about that because of the lines that were preserved. Might be in error...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, it wasn't clear to me what version of this file is the expected or correct one. 😓

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this what Gary is using to display What's New in the RStudio IDE?

@cm421 cm421 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assuming the index.html changes are indeed what you wanted, LGTM!

@cm421

cm421 commented May 14, 2026

Copy link
Copy Markdown
Contributor

I do think that moving to a script that will handle the exact merge calls in the correct order like Adam is suggesting is definitely the direction we want to ultimately go. Using .gitattributes to stop these merges from flipping build types and patch numbers is a wonderful improvement we should have added ages ago

Wraps `git merge --no-ff -X no-renames <branch>` plus the post-merge
fixups needed for a rel-* -> main merge:

- Auto-resolve NEWS.md modify/delete by keeping main's version.
- Auto-resolve version/news/os/NEWS-<ver>-<codename>.md add/add by taking
  the rel branch's content (which has any bug-fix entries added after the
  rotation).
- Reset version/BUILDTYPE, version/RELEASE, version/CALENDAR_VERSION to
  HEAD's values to undo git's trivial-merge fast-take in cases where main
  has not modified the file (most notably BUILDTYPE, which silently flips
  Daily -> Release without intervention).

Stages the merge but does not commit it -- the user reviews with
`git diff --staged` and then runs `git commit`.

The earlier attempt to handle BUILDTYPE via a `merge=ours` driver in
.gitattributes does not work for this scenario: git only consults merge
drivers for true three-way merges (where both sides modified the file),
not for the one-sided trivial merge that BUILDTYPE actually hits.
@kevinushey
kevinushey force-pushed the feature/merge-golden-wattle branch from 710997c to 4fb267b Compare May 14, 2026 18:23
The merge of rel-golden-wattle into main applied the trim from #17629,
which curated the What's New content for the release announcement.
Revert that on main so main retains the full pre-trim content; the
trimmed version remains on the rel branch where it ships.
@kevinushey
kevinushey merged commit 49712c1 into main May 14, 2026
8 checks passed
@kevinushey
kevinushey deleted the feature/merge-golden-wattle branch May 14, 2026 21:11
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.

6 participants