Skip to content

refactor(msteams): remove duplicate quoted-table test - #147270

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-msteams-quoted-table-20260913
Sep 13, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-msteams-quoted-table-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

Related: #139428

What Problem This Solves

The Teams Markdown suite checks the same disabled-conversion blockquoted table twice.

User Impact

No user-visible change. Raw-table formatting, all three prefix variants, and UUID-collision coverage remain protected.

Why This Change Was Made

This maintainer-requested test audit removes one standalone case already covered byte-for-byte by the existing "> " matrix row. No production code, helpers, or remaining assertions change.

Evidence

  • The complete Teams formatting suite passed before and after: 60 to 59 cases, zero skips. The removed duplicate is the only missing case; remaining names and order match.
  • Targeted formatting and git diff --check passed.
  • All 19 selected changed checks passed, including extension test types and targeted lint.
  • Independent scoped review found no actionable issues.
  • Hosted CI for this head passed. Its source-bound merge checkout executed all 59 remaining formatter cases, and the required openclaw/ci-gate is green.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 18:33
@openclaw-barnacle openclaw-barnacle Bot added channel: msteams Channel integration: msteams size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:39 PM ET / 18:39 UTC.

ClawSweeper review

What this changes

Removes a redundant Microsoft Teams formatting test while retaining the identical blockquoted-table case in an existing parameterized test.

Merge readiness

✅ Ready for maintainer review

The cleanup remains useful: current main still contains the duplicate, and the retained matrix preserves identical coverage. No actionable defects were found.

Priority: P3
Reviewed head: 035a81dee656bb986854cb355365b76173bdd03f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused cleanup with directly verified equivalent coverage and proportionate reported validation.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR changes only duplicate formatter coverage; the production formatter is untouched, and no external-contributor runtime-proof gate applies.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR changes only duplicate formatter coverage; the production formatter is untouched, and no external-contributor runtime-proof gate applies.
Evidence reviewed 6 items Identical retained regression coverage: The retained matrix includes the prefix "> ", producing exactly the deleted three-line table and asserting the same formatter call with mode "off" returns the original bytes. The complete test file retains quote-boundary and UUID-collision cases.
Verified introduced scope: The pinned merge-base-to-head diff only deletes the standalone duplicate. The host-verified test merge also changes only this test file; unrelated endpoint drift is base-branch work.
Current-main necessity: Fetched main retains both tests, and its formatter and test file match the PR merge base. The cleanup has not already been applied there.
Findings None None.
Security None None.

How this fits together

The Microsoft Teams formatter converts outgoing Markdown into Teams-compatible text using the configured table mode. These tests protect raw-table preservation when conversion is disabled.

flowchart LR
 A[Outgoing Markdown] --> B[Teams formatter]
 C[Configured table mode] --> B
 B --> D[Preserve raw tables when disabled]
 D --> E[Teams message text]
 F[Retained prefix test matrix] --> D
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -5. Total -5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 0 5 -5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 0 5 -5

Review metrics

None.

Root-cause cluster

Relationship: partial_overlap
Canonical: #139428
Summary: This is one bounded contribution to the broader open test-audit campaign, not a complete fix for its targets.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the existing prefix matrix as the single test for these equivalent raw-table inputs, preserving the separate boundary and collision regressions.

Do we have a high-confidence way to reproduce the issue?

Not applicable to a product bug; source comparison establishes that the removed case duplicates the retained matrix row exactly.

Is this the best way to solve the issue?

Yes. Deleting the standalone duplicate is the smallest change and preserves the same input, assertion, and production entry point.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against eded8168d40d.

Labels

Label changes:

  • add P3: This is a narrow test-maintenance cleanup with no user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR changes only duplicate formatter coverage; the production formatter is untouched, and no external-contributor runtime-proof gate applies.

Label justifications:

  • P3: This is a narrow test-maintenance cleanup with no user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR changes only duplicate formatter coverage; the production formatter is untouched, and no external-contributor runtime-proof gate applies.

Evidence

What I checked:

  • Identical retained regression coverage: The retained matrix includes the prefix "> ", producing exactly the deleted three-line table and asserting the same formatter call with mode "off" returns the original bytes. The complete test file retains quote-boundary and UUID-collision cases. (extensions/msteams/src/format.test.ts:172, 035a81dee656)
  • Verified introduced scope: The pinned merge-base-to-head diff only deletes the standalone duplicate. The host-verified test merge also changes only this test file; unrelated endpoint drift is base-branch work. (extensions/msteams/src/format.test.ts:325, 035a81dee656)
  • Current-main necessity: Fetched main retains both tests, and its formatter and test file match the PR merge base. The cleanup has not already been applied there. (extensions/msteams/src/format.test.ts:325, eded8168d40d)
  • Retained matrix history: GitHub commit data confirms the earlier table-parsing refactor expanded the plain-table test into the three-prefix matrix. Current-main history also shows repeated recent formatter work by steipete. (extensions/msteams/src/format.test.ts:172, f5d9acfa706c)
  • Campaign context and reported validation: The supplied PR body links the active audit campaign at Test audit: reduce redundant test code and full-suite runtime #139428 and reports complete-suite passes before and after, with 60 versus 59 cases, zero skips, unchanged remaining order, and 19 selected checks passing. These are contributor-reported results; this read-only review did not execute tests. (035a81dee656)
  • Release inspection limitation: The latest-release test blob was unavailable locally and its retrieval failed with HTTP 403, so release contents were not verified. Current-main source is sufficient to establish that this cleanup remains outstanding. (extensions/msteams/src/format.test.ts, eded8168d40d)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit c560e81 into main Sep 13, 2026
166 of 167 checks passed
@vincentkoc
vincentkoc deleted the refactor/test-audit-msteams-quoted-table-20260913 branch September 13, 2026 18:52
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit 'cf45ff4d6a9c13164463db860285a02c1c4f2e8c':
  test(macos): observe readiness cancellation and deadline ownership (#145056)
  fix(ci): route QA Profile Evidence to its run-status owner test (#147293)
  fix(install): preserve runtime links when Node validation fails (#147221)
  test(auto-reply): reuse memory session fixtures (#147262)
  fix: hide subagent sessions from Activity (#147253)
  ci: record resources for slow runtime test commands (#147254)
  fix(update): recognize FreeBSD boot identities in triage leases (#147243)
  refactor(active-memory): share closing tag line scan (#147031)
  fix: resume Settings autosave after Reload Config (#147136)
  fix(cli): keep conversation context after cancellation (#147139)
  fix(channels): make system-agent approval cards actionable (#147152)
  refactor: retain shared database handles until their last worker closes (#147246)
  refactor(slack): share workspace-qualified target resolution (#147024)
  refactor(msteams): remove duplicate quoted-table test (#147270)
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit 'ac59d5e09eb468dc23cf95e447608b57e71b52af': (176 commits)
  improve(gateway): avoid redundant startup preflight work (#147285)
  test(macos): observe readiness cancellation and deadline ownership (#145056)
  fix(ci): route QA Profile Evidence to its run-status owner test (#147293)
  fix(install): preserve runtime links when Node validation fails (#147221)
  test(auto-reply): reuse memory session fixtures (#147262)
  fix: hide subagent sessions from Activity (#147253)
  ci: record resources for slow runtime test commands (#147254)
  fix(update): recognize FreeBSD boot identities in triage leases (#147243)
  refactor(active-memory): share closing tag line scan (#147031)
  fix: resume Settings autosave after Reload Config (#147136)
  fix(cli): keep conversation context after cancellation (#147139)
  fix(channels): make system-agent approval cards actionable (#147152)
  refactor: retain shared database handles until their last worker closes (#147246)
  refactor(slack): share workspace-qualified target resolution (#147024)
  refactor(msteams): remove duplicate quoted-table test (#147270)
  fix(qa): bind coverage IDs to producer assertions (#144000)
  fix(linux): explain FreeBSD desktop setup prerequisites (#147211)
  fix(memory): split embedding batches rejected for an input array item cap (#139541)
  test: isolate timing metadata persistence from inherited settings (#147112)
  refactor(status): retire test-only helper publication (#147071)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant