Skip to content

chore(perps-controller): remove TAT ticket refs from comments - #9320

Merged
abretonc7s merged 1 commit into
mainfrom
chore/perps-remove-tat-comment-refs
Aug 3, 2026
Merged

abretonc7s merged 1 commit into
mainfrom
chore/perps-remove-tat-comment-refs

Conversation

@abretonc7s

@abretonc7s abretonc7s commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #9311 — the cleanup commit that was left off the merged branch.

Test plan

  • yarn eslint on the 8 changed files — clean
  • Comment-only diff; no logic changes

Made with Cursor

@abretonc7s
abretonc7s requested a review from a team as a code owner June 30, 2026 17:41
@abretonc7s
abretonc7s force-pushed the chore/perps-remove-tat-comment-refs branch from bb12205 to 009f1cd Compare July 10, 2026 11:02
@abretonc7s

Copy link
Copy Markdown
Contributor Author

Automated pr-complete run — #9320

Metric Value
Run 2d6de5b9
Duration ?
Model claude/sonnet
Nudges 1
Session 135 turns · in=61,307 · out=42,507 · cache-read=11,824,173 · cache-write=340,778
Worker report

PR 9320 — Comments Report

Comment fetch (step 4)

  • Inline review comments (pulls/9320/comments): 0
  • General PR-conversation comments (issues/9320/comments): 0
  • Reviews: 0 (reviewDecision: REVIEW_REQUIRED)
  • Unresolved review threads (GraphQL): 0

No human or bot review comments exist on this PR. Nothing to triage or reply to.

CI status check (informational, not a review comment)

  • Check changelog (workflow Check Changelog) reports FAILURE.
  • This PR is a non-consumer-facing chore (removes internal TAT ticket references from code comments only); no CHANGELOG.md entries were touched by the original commit, matching the "omit non-consumer-facing changes" changelog guideline.
  • Out of scope for this run: task scope is review-comment remediation, not general CI triage. Documented here for visibility only.

Work performed

  • Rebased branch onto latest origin/main (see integration-status.txt = rebased). One conflict in packages/perps-controller/tests/src/constants/eventNames.test.ts resolved by keeping main's new Auto Close TP/SL RoE sign analytics keys describe block and applying this PR's TAT-ref removal to the adjacent consolidated analytics contract property keys block.
  • No comment-driven code fixes needed (zero comments fetched).

Downstream compatibility assessment (step 8)

The commit touches packages/perps-controller/src/** and test files, but only removes internal Jira ticket refs (TAT-XXXX) from comments/JSDoc text. No exported symbol, type signature, messenger action/event, or runtime behavior changed. Verified via git diff main...HEAD that only comment/string-literal-in-comment lines differ (plus unrelated CHANGELOG/package.json version bumps introduced by the origin/main rebase, not by this PR). No Mobile/Extension breaking-change risk.

Validation (step 9)

NODE_OPTIONS=--experimental-vm-modules yarn workspace @metamask/perps-controller run jest \
  tests/src/constants/eventNames.test.ts tests/src/PerpsController.state.test.ts \
  tests/src/services/TradingService.test.ts --no-coverage

Result: PASS — 3 suites, 209 tests passed. (Root yarn jest failed with a babel parse error on import type syntax; the package-scoped yarn workspace ... run jest invocation — per AGENTS.md guidance — succeeded.)

No package manifest/lockfile changes in this commit's diff vs bb12205ce (manifest/lockfile deltas seen in main...HEAD come from the origin/main rebase, unrelated packages) — yarn install --immutable not required.

Build not run: no exported types/build wiring changed (comment/JSDoc-only diff).

Recipe / headless validation (step 10)

  • RECIPE_SOURCE: pr-body-llm-no-recipe-detected — no inherited recipe; temp/tasks/fix/9320-0710-112728/artifacts/recipe.json does not exist. Recipe re-validation: SKIPPED (no inherited recipe artifact).
  • packages/perps-controller is touched by this commit → ran the perps post-merge smoke gate:
    mm-harness run perps.read-markets --adapter core --project-root /Users/deeeed/dev/metamask/core-4 \
      --artifacts-dir temp/tasks/fix/9320-0710-112728/artifacts/perps-smoke --json
    
    Result: PASS (status: pass, exitCode: 0). Report: artifacts/perps-smoke/report.md.

See remaining sections appended after push step.

Push (step 11) — DONE

git push --force-with-lease origin chore/perps-remove-tat-comment-refs was initially denied twice by the session's Bash permission system; user ran it manually. Result: forced update bb12205ce...009f1cde7 chore/perps-remove-tat-comment-refs -> chore/perps-remove-tat-comment-refs. Remote branch now matches local HEAD (009f1cde7).

No new review-fix commit was needed — zero PR comments/threads/reviews existed (confirmed in step 4), so the only change published is the origin/main rebase.

Replies / thread resolution (steps 12-13)

No inline review comments, no unresolved review threads (confirmed empty in step 4) — nothing to reply to or resolve. No-op by design, not skipped.

Summary

  • Commit pushed: 009f1cde7 (chore(perps-controller): remove TAT ticket refs from comments, rebased onto origin/main).
  • Files changed vs pre-rebase: only the rebase itself (1 conflict resolved in eventNames.test.ts); no comment-driven code changes since none were requested.
  • Downstream compatibility: no breaking-change risk (comment/JSDoc-only diff, see step 8 section above).
  • Validation: targeted Jest 209/209 pass; perps.read-markets smoke recipe pass.
  • Recipe re-validation: skipped (no inherited recipe).

Keep analytics comments and test names descriptive without internal ticket IDs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@abretonc7s
abretonc7s force-pushed the chore/perps-remove-tat-comment-refs branch from 009f1cd to ccc3c48 Compare August 3, 2026 11:55
@abretonc7s

Copy link
Copy Markdown
Contributor Author

Automated pr-complete run — #9320

Metric Value
Run b9c7ab98
Duration ?
Model cursor/composer-2.5
Nudges 0
Worker report

PR 9320 — Comments Report

Comment fetch (step 4)

  • Inline review comments (pulls/9320/comments): 0
  • General PR-conversation comments (issues/9320/comments): 1 (automated pr-complete worker report from abretonc7s — not actionable review feedback)
  • Unresolved review threads (GraphQL): 0

No human or bot inline review comments exist on this PR.

Triage (step 5)

Source ID Author Triage Action
conversation 4934945776 abretonc7s OUT OF SCOPE Automated orchestrator worker report from prior pr-complete run; not a review comment requiring code changes

Work performed

  • Rebased branch onto latest origin/main (integration-status.txt = rebased).
  • Resolved rebase conflicts in TradingService.ts and TradingService.test.ts by preserving origin/main effective-leverage and partial-fill test behavior while applying this PR's TAT-ref removal in describe titles.
  • No comment-driven code fixes needed (zero inline review comments).

Push (step 11)

git push --force-with-lease origin chore/perps-remove-tat-comment-refs

Result: forced update 009f1cde7...ccc3c488b. Commit SHA: ccc3c48 (chore(perps-controller): remove TAT ticket refs from comments, rebased onto origin/main).

No additional review-fix commit — rebase conflict resolution is included in the rebased commit.

Replies / thread resolution (steps 12–13)

No inline review comments and no unresolved review threads — nothing to reply to or resolve. No-op by design.

Files changed (vs origin/main)

8 files in packages/perps-controller — comment/JSDoc/test-title edits removing TAT-XXXX refs only:

  • src/PerpsController-method-action-types.ts
  • src/PerpsController.ts
  • src/constants/eventNames.ts
  • src/services/TradingService.ts
  • src/types/index.ts
  • tests/src/PerpsController.state.test.ts
  • tests/src/constants/eventNames.test.ts
  • tests/src/services/TradingService.test.ts

Downstream compatibility assessment (step 8)

Comment/JSDoc-only diff removes internal Jira ticket refs (TAT-XXXX) from perps-controller. No exported symbol, type signature, messenger action/event, or runtime behavior changed. No Mobile/Extension breaking-change risk.

Validation (step 9)

NODE_OPTIONS=--experimental-vm-modules ./node_modules/.bin/jest \
  packages/perps-controller/tests/src/constants/eventNames.test.ts \
  packages/perps-controller/tests/src/PerpsController.state.test.ts \
  packages/perps-controller/tests/src/services/TradingService.test.ts \
  --no-coverage --config packages/perps-controller/jest.config.js

Result: PASS — 3 suites, 225 tests passed.

Build not run: no exported types/build wiring changed.

yarn install --immutable not required: no package manifest/lockfile changes in this PR's diff.

Recipe / headless validation (step 10)

  • Inherited recipe: SKIPPED (temp/tasks/fix/9320-0803-194912/artifacts/recipe.json does not exist; RECIPE_SOURCE: pr-body-llm-no-recipe-detected).
  • Perps post-merge smoke (packages/perps-controller touched):
mm-harness run perps.read-markets --adapter core \
  --target /Users/deeeed/dev/metamask/core-4 \
  --artifacts-dir temp/tasks/fix/9320-0803-194912/artifacts/perps-smoke --json

Result: PASS (status: pass, exitCode: 0). Report: artifacts/perps-smoke/report.md.

Learnings (step 15)

Skipped — no REAL triaged comments with fixes.

@abretonc7s
abretonc7s added this pull request to the merge queue Aug 3, 2026
Merged via the queue into main with commit b3de048 Aug 3, 2026
46 checks passed
@abretonc7s
abretonc7s deleted the chore/perps-remove-tat-comment-refs branch August 3, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants