Skip to content

Fix retention, failure tracking, notifications, and DX hygiene - #21

Open
fishygeek91 wants to merge 4 commits into
masterfrom
fix/review-remediation
Open

Fix retention, failure tracking, notifications, and DX hygiene#21
fishygeek91 wants to merge 4 commits into
masterfrom
fix/review-remediation

Conversation

@fishygeek91

Copy link
Copy Markdown
Contributor

Summary

Remediation from the full package review. Deployed and tested only on mooserd (Org Id 00DgK00000RiIT7UAN).

Closes #17 #18 #20 #19

Test plan

  • sf project deploy start --source-dir force-app --target-org mooserd
  • sf project deploy start --source-dir notifications/workflow-email --target-org mooserd
  • Apex tests on mooserd: 13/13 passing (TestRunSchedulerTest, TestRunProcessorTest, TestRunCleanupTest, TestRunEmailControllerTest)
  • Assign Test_Runner perm set and confirm tabs / Unprocessed Runs / Failed Methods
  • Configure email alert recipients + org-wide from address, then activate Flow Test Run Failure Notification in a sandbox before any production use
  • Set repo secret DEVHUB_AUTH_URL so CI can create a scratch org

Notes

  • Do not deploy this branch to production orgs. Package version create was not cut.
  • Long Text Parent_Job_Ids__c cannot be unique, required, or filtered in SOQL.
  • Flow ships inactive. Email alert recipient defaults to the Test Run owner (no replace@me.com).

Made with Cursor

fishygeek91 and others added 4 commits August 13, 2026 12:32
Prune now uses a Datetime bind and runs in a Queueable so cascade
deletes cannot roll back test enqueue. Failures key on class+method,
Skip is not counted, and tests assert the real product behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
Exclude namespaced classes from SOSL, store parent job IDs as long
text, and surface Queued/Processed/Failed/Abandoned on Test_Run__c.
Tabs, list views, layouts, and permission-set FLS make the package
usable after install.

Co-authored-by: Cursor <cursoragent@cursor.com>
Ship a Draft record-triggered Flow with a PRIORVALUE guard and an
owner-based email alert. The VF template is UTF-8, caps rows at 200,
and uses org-domain URLs. Deploy with sf project deploy start.

Co-authored-by: Cursor <cursoragent@cursor.com>
Align metadata to API 59, document sf CLI and perm-set setup, ignore
.sf/, turn off deploy-on-save, and add a scratch-org GitHub Action.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fishygeek91 fishygeek91 mentioned this pull request Aug 13, 2026
9 tasks
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.

Fix test-run retention, first-failure tracking, and Apex tests

1 participant