codeflash-internal/.github/workflows
Kevin Turcios 566424e97f
feat: add server action timing and expand PostHog analytics (#2552)
## Summary

- Add `withTiming()` wrapper for server actions with Sentry span
reporting and slow action warnings (>1s)
- Add centralized `captureEvent()` helper for PostHog tracking
- Add 5 new PostHog tracking events: optimization_reviewed,
repository_connected, api_key_created, member_invited,
billing_page_viewed
- Instrument 4 server actions with `withTiming()`:
getOrganizationMembers, getRepositoryById,
getRepositoriesWithStagingEvents, getAllOptimizationEvents

## Proof of Correctness

See
[`js/cf-webapp/proof/08-server-action-timing.md`](js/cf-webapp/proof/08-server-action-timing.md)

## How to Verify

```bash
cd js/cf-webapp
bash proof/reproducers/08-server-action-timing.sh
```

21 checks verify: withTiming utility, 4 instrumented actions,
captureEvent helper, 5 tracking functions, and all tracking calls wired
into action files.

## Test Plan

- [ ] Run reproducer: `bash
proof/reproducers/08-server-action-timing.sh` (21/21 pass)
- [ ] Verify server actions still work correctly
- [ ] Check Sentry for `server.action` spans after deployment
2026-04-04 11:34:53 -05:00
..
cf-api-tests.yaml [fix] mobile sidebar fix (#1901) 2025-10-17 03:34:55 -07:00
claude.yml async: parallelize endpoint epilogue DB writes (#2490) 2026-04-01 06:15:16 -05:00
codeflash-aiservice.yaml fix codeflash optimizing python backend (#2483) 2026-03-22 03:50:30 -05:00
codeflash-benchmarks.yml feat: add server action timing and expand PostHog analytics (#2552) 2026-04-04 11:34:53 -05:00
codeflash-js.yaml chore: clean up codeflash JS workflow (#2499) 2026-04-01 04:23:57 -05:00
deploy_aiservice_to_azure.yml Fix aiservice deployment by including all files in zip artifact (#2272) 2026-01-23 01:18:39 -05:00
deploy_cfapi_to_azure.yml Fix: Add HTML templates to deployment zip for Azure App Service (#1717) 2025-07-24 22:57:42 +05:30
deploy_cfwebapp_to_azure.yml Add Missing Node Modules (#1573) 2025-04-30 10:54:11 -07:00
django-unit-tests.yaml Remove wait-for-prek dependencies from CI workflows 2026-01-30 20:20:51 -05:00
duplicate-code-detector.yml chore: switch CI Claude model to Sonnet 4.6 2026-03-03 06:47:20 +05:30
end-to-end-tests.yaml Remove wait-for-prek dependencies from CI workflows 2026-01-30 20:20:51 -05:00
fix-formatting.yml fix: install uv in fix-formatting workflow 2026-01-27 01:25:19 -05:00
mypy_aiservice.yml use AsyncAzureOpenAI (#2253) 2026-01-17 22:44:12 -05:00
nextjs-build.yaml [fix] mobile sidebar fix (#1901) 2025-10-17 03:34:55 -07:00
prek.yaml Update prek.yaml 2026-01-30 20:04:28 -05:00
publish-to-pypi.yml Update github action versions as these are going to be deprecated soon 2024-06-28 14:04:42 -07:00
vscode-extension-build.yml Fix VSC build extension GHA 2025-10-31 17:35:42 -07:00