Skip to content

fix(release): recover immutable patch validation gates - #16984

Merged
Jinwoo-H merged 3 commits into
mainfrom
fix/release-linux-floor-unzip
Aug 28, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
fix/release-linux-floor-unzip

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​121 $\color{#cf222e}{\Huge{\mathbf{−}}}$​38 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​83
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​31 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​30

Summary

  • install unzip on the Ubuntu 20.04 skill-sharing release gate
  • make Windows skill-root assertions use platform-absolute fixtures and retry bounded temp cleanup
  • canonicalize Windows E2E file identities and keep terminal link probes short enough to avoid xterm wrapping
  • validate immutable release tags with the corrected workflow-ref test harness while leaving product code at the tag untouched

Why
Production release run 33150945871 exposed release-only CI harness failures after creating the immutable v1.4.191 tag and draft. The app artifacts are based on approved source 9a15f5090e610b4567ed3ca7d268751b9b3d5c53; this PR repairs only the gates needed to validate and publish that existing tag.

Validation

  • 50 focused unit/workflow contract tests passed
  • full pnpm tc passed
  • changed-code quality gate passed with zero findings
  • Playwright listed all three corrected golden specs successfully

Recovery safety

  • does not delete, recreate, or move v1.4.191
  • overlays only four test files from github.workflow_sha; release product/build sources remain at the immutable tag
  • failed production attempt was canceled and its release remains a draft

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3049b163-3d09-4b38-8889-a723039191ec

📥 Commits

Reviewing files that changed from the base of the PR and between fc39054 and 71a05a3.

📒 Files selected for processing (1)
  • tests/e2e/golden-terminal-file-link.spec.ts

📝 Walkthrough

Walkthrough

Release validation jobs restore selected golden and skill-sharing test files from the workflow commit after checking out release tags. The Ubuntu 20.04 skill-sharing job installs unzip. Contract tests verify these workflow steps. Skill tests add resilient cleanup and resolved path handling. Golden E2E tests normalize paths and worktree identities across operating systems.

Merge Risk: 🔵 Low · up to fc390

The PR repairs release validation without changing the tagged product code, but terminal-link checks may miscalculate clicks for some Unicode characters and release evidence spans the tag revision plus selected workflow tests. It is mergeable with explicit owner awareness and follow-up on coordinate mapping and revision provenance.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the changes, reason, validation results, and recovery safeguards, but it omits several required template sections, including Linked Issue, Visual Proof or N/A, Testing checkli… Complete the required template sections. Add the linked issue after “Fixes #”, provide visual proof or state “N/A” with a reason, document testing platforms and checklist status, complete the Agent skill upstream boundary section, address N…
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 6 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: repairing release validation gates for immutable patches.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the changes, reason, validation results, and recovery safeguards, but it omits several required template sections, including Linked Issue, Visual Proof or N/A, Testing checklist details, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist.

Resolution

Complete the required template sections. Add the linked issue after “Fixes #”, provide visual proof or state “N/A” with a reason, document testing platforms and checklist status, complete the Agent skill upstream boundary section, address Notes items, and mark the applicable Checklist items.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b5df8cf7-8f1a-4340-a146-21c60257b998

📥 Commits

Reviewing files that changed from the base of the PR and between cf7bc70 and fc39054.

📒 Files selected for processing (1)
  • tests/e2e/golden-terminal-file-link.spec.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Comment on lines +42 to +54
// Preserve fixed-width cells so paths split across xterm rows stay searchable.
const visibleCells = Array.from({ length: pane.terminal.rows }, (_, row) =>
(buffer.getLine(buffer.viewportY + row)?.translateToString(false) ?? '').padEnd(
pane.terminal.cols
)
).join('')
const start = visibleCells.indexOf(needle)
if (start !== -1) {
const center = start + Math.floor(needle.length / 2)
return {
col: center % pane.terminal.cols,
row: Math.floor(center / pane.terminal.cols),
tabId

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

#!/bin/bash
set -e
printf '%s\n' '--- repository guidance ---'
find /tmp/coderabbit-repo-knowledge/stablyai-orca-89dc44e4 -type f -name '*.md' -maxdepth 3 -print \
  -exec sh -c 'printf "\n### %s\n" "$1"; cat "$1"' _ {} \;
printf '%s\n' '--- target file ---'
sed -n '1,75p' tests/e2e/golden-terminal-file-link.spec.ts
printf '%s\n' '--- package/runtime references ---'
rg -n --glob 'package.json' --glob 'pnpm-lock.yaml' --glob 'yarn.lock' --glob 'package-lock.json' \
  '`@xterm/xterm`|xterm' .
printf '%s\n' '--- relevant symbols ---'
rg -n 'locateLink|visibleCells|translateToString|viewportY|buffer\.getLine' tests/e2e/golden-terminal-file-link.spec.ts

Repository: stablyai/orca

Length of output: 50369


🏁 Script executed:

#!/bin/bash
set -e
log=/tmp/coderabbit-shell-logs/shell-output-IYCpoE
printf '%s\n' '--- target-file output ---'
rg -n -A35 -B5 '^--- target file ---|^--- package/runtime references ---|^--- relevant symbols ---' "$log"
printf '%s\n' '--- package manifests containing xterm ---'
rg -l --glob 'package.json' --glob 'pnpm-lock.yaml' --glob 'yarn.lock' --glob 'package-lock.json' '`@xterm/xterm`|xterm' . \
  | head -40
printf '%s\n' '--- target file changed context ---'
sed -n '1,75p' tests/e2e/golden-terminal-file-link.spec.ts
sed -n '160,195p' tests/e2e/golden-terminal-file-link.spec.ts

Repository: stablyai/orca

Length of output: 11678


🏁 Script executed:

#!/bin/bash
set -e
printf '%s\n' '--- complete locateLink and call sites ---'
sed -n '20,165p' tests/e2e/golden-terminal-file-link.spec.ts
sed -n '235,305p' tests/e2e/golden-terminal-file-link.spec.ts
printf '%s\n' '--- xterm package patch ---'
sed -n '1,220p' 'config/patches/@[email protected]'
printf '%s\n' '--- installed package availability ---'
if [ -d node_modules/@xterm/xterm ]; then
  printf '%s\n' 'node_modules/@xterm/xterm exists'
  rg -n 'translateToString|wcwidth|width' node_modules/@xterm/xterm/lib node_modules/@xterm/xterm/out 2>/dev/null | head -80
else
  printf '%s\n' 'node_modules/@xterm/xterm is unavailable'
fi

Repository: stablyai/orca

Length of output: 50372


🏁 Script executed:

#!/bin/bash
set -e
log=/tmp/coderabbit-shell-logs/shell-output-2jTV4k
printf '%s\n' '--- target source from captured output ---'
awk '
  /^--- complete locateLink and call sites ---/ {show=1}
  /^--- xterm package patch ---/ {show=0}
  show {print}
' "$log" | sed -n '1,230p'
printf '%s\n' '--- xterm patch metadata only ---'
rg -n '^(diff --git|Subject:|@@)|translateToString|BufferLine|wcwidth|unicode' \
  config/patches/@[email protected] | head -100
printf '%s\n' '--- package manifest and lock entries ---'
sed -n '140,220p' package.json
sed -n '1,35p' pnpm-lock.yaml

Repository: stablyai/orca

Length of output: 50370


🌐 Web query:

xterm.js 6.1.0 BufferLine translateToString wide characters combining characters cell width source

💡 Result:

In xterm.js 6.1.0, the BufferLine.translateToString method is the internal mechanism used to serialize a buffer line into a string [1]. It handles wide and combining characters through the following logic: 1. Handling Wide Characters: The BufferLine stores character content, including width information, in its internal data structures [1][2]. During the translation loop, translateToString retrieves the width of a cell from the content data using (content >> Content.WIDTH_SHIFT) || 1 [1]. This ensures that the loop correctly advances the column index by 2 for wide characters (which have a width of 2), preventing the inclusion of the empty/null cell typically found immediately after a wide character in the buffer [1]. 2. Handling Combining Characters: Combining characters are managed via a dedicated _combined array [1][2]. If a cell's content flags indicate it is a combined cell (Content.IS_COMBINED_MASK), the method retrieves the string representation from this._combined[startCol] instead of the primary codepoint [1]. This allows xterm.js to correctly render grapheme clusters that consist of a base character and one or more combining marks as a single rendered unit in the resulting string [1]. 3. Source and Implementation: The implementation of translateToString iterates through the buffer line by column [1]. For each cell, it checks for the IS_COMBINED_MASK flag to decide whether to fetch from the _combined cache or convert the stored codepoint directly to a string [1]. Recent updates in version 6.1.0 and surrounding releases included performance optimizations, such as the use of a StringBuilder to improve the efficiency of the string concatenation process [3]. The outColumns parameter, if provided, tracks the mapping between the resulting string and the original column indices, which is useful when dealing with wide characters where multiple string indices may map back to the same terminal cell [1].

Citations:


🌐 Web query:

site:github.com/xtermjs/xterm.js BufferLine.ts "outColumns" "translateToString"

💡 Result:

The translateToString method in BufferLine.ts of the xterm.js library is used to convert the contents of a terminal buffer line into a string [1]. The optional outColumns parameter is an array used to map each character index in the resulting string back to its corresponding column index in the terminal buffer [1]. Key details regarding this method include: Mapping Logic: When outColumns is provided, the method populates it such that outColumns[i] stores the original buffer column index for the character at position i in the generated string [1]. If a single terminal cell results in multiple UTF-16 code units (e.g., surrogate pairs or combined characters), all corresponding positions in outColumns will share the same column index [1]. Trailing Entry: After processing the string, an additional value is pushed to outColumns. Specifically, outColumns[returnedString.length] indicates the column index where the character immediately following the returned string would be displayed [1]. Usage: - trimRight (boolean): If true, trailing whitespace is removed from the resulting string [1]. - startCol and endCol (numbers): Define the range of columns to include in the translation [1]. - outColumns (number[]): The array to be populated with column mappings [1]. This mechanism is particularly useful for features that require synchronizing UI elements—such as accessibility trees or selection highlighting—with the underlying terminal buffer data [2].

Citations:


🌐 Web query:

site:github.com/xtermjs/xterm.js "translateToString(trimRight" "outColumns"

💡 Result:

The translateToString method is a function defined in the xterm.js library, specifically within the BufferLine class, used to convert buffer line content into a string [1][2]. The parameters perform the following functions: - trimRight (boolean, optional): If set to true, trailing whitespace is removed from the resulting string [1]. - outColumns (number[], optional): An array that, if provided, will be populated with the original column indices corresponding to each character in the returned string [1]. This is useful for mapping characters back to their positions in the terminal buffer, particularly when a single cell translates into multiple UTF-16 code units (e.g., surrogate pairs), in which case the corresponding entries in the array will share the same column index [1]. In essence, this method allows the library to extract a human-readable string representation of a terminal line while maintaining metadata about the spatial mapping of those characters if needed [1].

Citations:


Map translated characters back to xterm cells. BufferLine.translateToString(false) returns UTF-16 text, while pane.terminal.cols uses cell columns. Combining sequences and wide BMP characters can therefore shift center, producing incorrect click coordinates. Use translateToString’s outColumns mapping when converting the match to col and row.

@Jinwoo-H
Jinwoo-H merged commit 59515be into main Aug 28, 2026
28 checks passed
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 30, 2026
* fix(release): recover immutable patch validation gates

* test(e2e): locate wrapped terminal file links

* test(e2e): keep sibling file links on one terminal row

(cherry picked from commit 59515be)
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* fix(release): recover immutable patch validation gates

* test(e2e): locate wrapped terminal file links

* test(e2e): keep sibling file links on one terminal row
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.

1 participant