Repository navigation
improvement(tools): dry-run placeholders echo what common write requests determine - #10410
Conversation
…sts determine Adds dryRunOutput hooks for Google Sheets append/write/update, Airtable record writes, HubSpot contact/company/deal/ticket create and update, Slack messages, knowledge upsert, Notion page create, Supabase insert/upsert, PostgreSQL/MySQL insert, Linear and GitHub issue create, Teams/Discord/Telegram messages, Google Docs create, Drive upload, Jira write, Confluence page create, Trello/Asana/ClickUp/Zendesk create, and Resend/SendGrid/ Gmail v2 send. Provider-assigned ids use the new dryRunId helper (also used by table rows). Request normalisation the hooks need moves into named helpers the request builders share (sheet rows, HubSpot properties, Supabase rows, Linear issue input, Discord content). Dry-run samples now give a declared file[] output an empty list.
…host runWorkflowForTest reports its WriteStubPolicy summary to the session when the run ends, after releasing its execution slot, with a throwing callback logged rather than masking the run's own error. The session keeps a payload-free summary per execution, repeats folded into counted entries (at most 20 per list and 50 runs per file, the rest counted), and the file runner stores it as report.sideEffects next to the sandbox's report; only runs finished when the sandbox returns are reported. The contract reads the stored schema, and the Mothership tests tool lists unmockedWrites per run.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryDry-run placeholders now echo request-known values for common write tools. Workflow tests also record which writes were stubbed.
Reviews (3) · Last reviewed commit: "fix(tools): report unknown write lists f..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 64 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…tial write lists - Mothership tests tool returns unmockedWrites as sites plus omittedCalls/omittedRuns - GitHub create_issue echoes labels/assignees from the same helper as the request body; no guessed state, closed_at or null body - Asana, Trello, ClickUp and HubSpot placeholders stop asserting completed/closed/archived defaults or empty notes/desc - Zendesk create_ticket echoes the assignee, group and requester ids it sets - Teams rewrite check shares the send path's mention parser, so blank mentions are not rewrites - Sheets placeholder trims the spreadsheet id, skips empty rows in counts and avoids a spread over every row - HubSpot update placeholders stringify a numeric record id before trimming
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
2 issues found across 64 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/tools/github/create_issue.ts">
<violation number="1" location="apps/sim/tools/github/create_issue.ts:178">
P3: The v2 dry run never echoes `milestone`, so it shows a fabricated milestone even when `milestone` is set. Echo `milestone: { number: params.milestone }` when set, and `null` when not, matching `issue.milestone ?? null` in the live transform.</violation>
</file>
<file name="apps/sim/lib/mothership/tools/server/tests.ts">
<violation number="1" location="apps/sim/lib/mothership/tools/server/tests.ts:186">
P2: `run.report` can be null for errored or abandoned runs, but this converts null into zero side effects and falsely claims that no writes were stubbed. Preserve an unknown/null value when no report exists, in both `get` and `run` responses.</violation>
</file>
…o the requested milestone
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
dry_run_<kind>_<n>placeholders from onedryRunIdhelper; hooks never guess stored state (upsert's new document id, a resolved Confluence space key, Teams text a mention rewrites)file[]output samples as[]in dry runsunmockedWritesType of Change
Testing
tools/request-builders.test.tspins the live request bodies of every refactored builder on edge inputs (passes unchanged against the pre-refactor builders)tools/dry-run.test.tsdrives the real stub path end to end: echoes, secret masking, guards against guessed fieldslib/workflows/application/dry-run.integration.ts(real Postgres/Redis) asserts the workflow-test side-effects summaryChecklist
test-auditauthoring gate)