Skip to content

fix(cloud): run the rehome control job under pipefail - #18537

Merged
Jinwoo-H merged 1 commit into
mainfrom
fix/rehome-job-pipefail
Sep 3, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
fix/rehome-job-pipefail

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

The five node ... | tee steps in cloud-operate-relay-production-rehome-job.yml reported tee's exit code, so a thrown inspect or apply passed green. The Aug 28 21:25Z and Aug 29 inspect runs and today's first inspect (33810752689) all printed director returned an invalid regional rehome control and still succeeded; the durable control had moved to generation 12 when the Aug 28 rehome aborted.

shell: bash on the job defaults adds -o pipefail. relay-regional-rehome-workflow.test.mjs pins the default and the tee count (mutation-checked: dropping the shell line fails the test).

No behavior change for successful runs.

The five `node ... | tee` steps in cloud-operate-relay-production-rehome-job.yml
reported tee's exit code, so a thrown inspect or apply passed green. The Aug 28
21:25Z and Aug 29 inspects and today's first inspect all printed
"director returned an invalid regional rehome control" (the durable control had
moved to generation 12 when the Aug 28 rehome aborted) and still succeeded.
`shell: bash` adds `-o pipefail`. A test pins the default and the tee count.
@pullfrog

pullfrog Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

This run was cancelled 🛑

The workflow was cancelled before completion. Please check the link below for details.

Pullfrog  | View workflow run | via Pullfrog | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: ff087de5-882a-4e7a-9895-8bbe57a4090c

📥 Commits

Reviewing files that changed from the base of the PR and between 98e77ef and 0a28448.

📒 Files selected for processing (2)
  • .github/workflows/cloud-operate-relay-production-rehome-job.yml
  • cloud/dev/scripts/relay-regional-rehome-workflow.test.mjs

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


📝 Walkthrough

Walkthrough

The relay rehome workflow now uses Bash as its default shell with pipefail behavior. A workflow test verifies the Bash shell configuration and checks that at least five control-result steps pipe output through tee "${RUNNER_TEMP}.

Merge Risk: ⚪ Minimal · up to 0a284

The workflow now reports failures from piped Node commands instead of masking them through tee, with successful behavior unchanged. No current merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem, implementation, affected workflow, test coverage, and expected behavior. However, it does not follow the required template and omits the required Linked Issue, Vi… Update the description to include the template sections. Add the required issue reference after "Fixes #". Add N/A with a brief reason for Visual Proof. Document testing and checklist status, and complete or mark the remaining applicable …
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the cloud rehome control job change and the use of Bash pipefail. It matches the primary change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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 problem, implementation, affected workflow, test coverage, and expected behavior. However, it does not follow the required template and omits the required Linked Issue, Visual Proof or N/A statement, Testing section, checklist confirmations, and other required sections.

Resolution

Update the description to include the template sections. Add the required issue reference after "Fixes #". Add N/A with a brief reason for Visual Proof. Document testing and checklist status, and complete or mark the remaining applicable sections.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 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.

@Jinwoo-H
Jinwoo-H merged commit 7d27c84 into main Sep 3, 2026
28 of 30 checks passed
@Jinwoo-H
Jinwoo-H deleted the fix/rehome-job-pipefail branch September 3, 2026 22:38
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
The five `node ... | tee` steps in cloud-operate-relay-production-rehome-job.yml
reported tee's exit code, so a thrown inspect or apply passed green. The Aug 28
21:25Z and Aug 29 inspects and today's first inspect all printed
"director returned an invalid regional rehome control" (the durable control had
moved to generation 12 when the Aug 28 rehome aborted) and still succeeded.
`shell: bash` adds `-o pipefail`. A test pins the default and the tee count.
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