Skip to content

Check the Merge Scan Status and Mask Only Before a Dotted Sibling - #4344

Merged
ptr727 merged 5 commits into
developfrom
fix/promo-4342-merge-check-and-dotted-sibling
Nov 22, 2026
Merged

ptr727 merged 5 commits into
developfrom
fix/promo-4342-merge-check-and-dotted-sibling

Conversation

@ptr727

@ptr727 ptr727 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Two Copilot findings on promotion PR #4342's new head, both verified against the code.

  • The upstream-contribution-workflow rebase chain counted a failed git rev-list --merges as no merges, in the sh chain and the PowerShell snippet. Both now check the scan's exit status first, and the conflict-path guidance covers a hand-run scan and a failed one. Its generated copies are rebuilt.
  • The install-tools profile mask treated a sibling named <profile>..backup as inside the profile, since its lookahead allowed only one dot before a name character. It now allows a run of dots, with a test case.

Closes on promotion: none

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation

    • Updated contribution workflow guidance to treat failed merge scans as errors and require rerunning them, reviewing reported merges, and reapplying them before pushing.
  • Bug Fixes

    • Improved Windows installer failure logs so paths containing multiple dots after the home-directory prefix are displayed accurately, without being shortened incorrectly.

ptr727 and others added 5 commits November 22, 2026 10:59
The rebase chain's merge scan counted a failed git rev-list as no merges.
The profile mask let through a sibling named with two dots, so it now
treats any run of dots before a name character as part of the name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 22, 2026 19:09
@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 0ee1144ac2e522a968854ccf1ef62a8a2ff75dcc, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The rebase guidance now treats merge-scan failures as errors and specifies follow-up for failed scans or reported merges. The Windows installer avoids masking a profile-path prefix when the following text begins with multiple dots, with a regression test for ..backup.

Changes: Upstream Merge-Scan Guidance

Layer / File(s) Summary
Merge scan and follow-up
.agents/skills/upstream-contribution-workflow/SKILL.md
The shell and PowerShell examples stop if git rev-list fails or reports merges. The instructions require rerunning failed scans and reading and reapplying reported merges before pushing.

Windows Profile-Path Masking

Layer / File(s) Summary
Profile-path boundary and regression test
host-setup/windows/install-tools.ps1, tests/test_install_agents.py
The boundary check avoids masking a profile prefix when the following text begins with multiple dots followed by a word or hyphen character. The test checks that ${h}..backup\x remains unchanged.

Estimated code review effort: 2 (Simple) | ~8 minutes

Possibly related issues

  • ptr727/ProjectTemplate#4113 — The PR changes the profile-path boundary check for the same class of sibling-path lookalike described in the issue.
Merge Risk: Minimal · up to 0ee11

This change makes the rebase guidance treat a failed merge scan as an error and stops the Windows installer from shortening a profile-lookalike path such as ..backup. The risk is low and localized, and a regression test covers the path fix.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the two changes in this PR: the merge scan status check in the upstream-contribution-workflow rebase guidance, and the install-tools profile mask fix so that a dotted sibling such as a…
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: Title check

Explanation

The title names the two changes in this PR: the merge scan status check in the upstream-contribution-workflow rebase guidance, and the install-tools profile mask fix so that a dotted sibling such as a '..backup' name is no longer masked. The raw summary and objectives confirm both changes, so the title matches the main changeset. It is specific, but it uses a term ('Dotted Sibling') that a reader may need context to interpret.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4581d0d and 0ee1144.

Files ignored due to path filters: 3

  • .claude-plugin/fleet-skills/.source-digests/upstream-contribution-workflow is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/upstream-contribution-workflow/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/upstream-contribution-workflow/SKILL.md is excluded by !.github/skills/**
Files selected for processing: 3

  • .agents/skills/upstream-contribution-workflow/SKILL.md
  • host-setup/windows/install-tools.ps1
  • tests/test_install_agents.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Copilot AI 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.

🟢 Approval recommended

No active review issues remain, including the merge-scan guidance, Windows path masking fix, regenerated skill copies, and regression coverage.

No open issues 🎉

What changed in this PR

This PR hardens upstream rebase guidance against failed merge scans and corrects Windows installer masking for profile siblings with multiple dots.

Changes:

  • Check git rev-list --merges exit status before interpreting scan results.
  • Clarify recovery guidance for failed scans and rebase conflicts.
  • Preserve dotted sibling paths in installer logs and add regression coverage.
  • Regenerate the distributed workflow skill copies and source digest.
File Description
tests/​test_install_agents.py Adds regression coverage for profile paths followed by multiple dots.
host-setup/​windows/​install-tools.ps1 Updates profile masking to preserve dotted sibling paths.
.github/​skills/​upstream-contribution-workflow/​SKILL.md Regenerates the GitHub workflow skill guidance with merge-scan status handling and recovery instructions.
.claude-plugin/​fleet-skills/​skills/​upstream-contribution-workflow/​SKILL.md Regenerates the Claude workflow skill guidance with merge-scan status handling and recovery instructions.
.claude-plugin/​fleet-skills/​.source-digests/​upstream-contribution-workflow Updates the generated source digest for the workflow skill.
.agents/​skills/​upstream-contribution-workflow/​SKILL.md Updates the canonical workflow guidance for failed merge scans and rebase recovery.

Review effort: Lite

@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.55%. Comparing base (4581d0d) to head (0ee1144).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4344   +/-   ##
========================================
  Coverage    79.55%   79.55%           
========================================
  Files           45       45           
  Lines        15923    15923           
========================================
  Hits         12667    12667           
  Misses        3256     3256           
Flag Coverage Δ
python-3.13 79.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@ptr727

ptr727 commented Nov 22, 2026

Copy link
Copy Markdown
Owner Author

/review

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ptr727
ptr727 merged commit 01d88d6 into develop Nov 22, 2026
15 checks passed
@ptr727
ptr727 deleted the fix/promo-4342-merge-check-and-dotted-sibling branch November 22, 2026 19:52
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