Commit graph

441 commits

Author SHA1 Message Date
Kevin Turcios
bf8d8efd5f Update prek.yaml 2026-01-30 20:04:28 -05:00
Kevin Turcios
3fabea495f fix: install uv in fix-formatting workflow
The ty-check hook requires uv to be available. Add astral-sh/setup-uv
step before running prek.
2026-01-27 01:25:19 -05:00
Kevin Turcios
bf3890fdbf fix: use interactive mode for Claude @mentions
Remove prompt parameter from claude-mention job so Claude runs in
interactive mode and naturally receives @mention context. Move prek
formatting instructions to CLAUDE.md where Claude reads them for any
request.
2026-01-27 01:24:07 -05:00
Kevin Turcios
d80321da9f one more cc debug 2026-01-27 01:17:48 -05:00
Kevin Turcios
a741523b1f debug
- Add standalone fix-formatting.yml workflow for `/fix-formatting` command
- Uses prek's native --from-ref to only format changed files
- Properly handles prek exit codes and reports errors
- Enable show_full_output in claude-mention job for debugging
2026-01-27 01:07:55 -05:00
Kevin Turcios
f558f882bb Create fix-formatting.yml 2026-01-27 00:55:25 -05:00
Kevin Turcios
a22672d504 fix: improve Claude Code prompt for prek formatting fixes
Update the prompt to explicitly mention "pre-k" and "prek" triggers
and provide step-by-step instructions for running the formatter,
committing, and pushing changes.
2026-01-27 00:51:59 -05:00
Kevin Turcios
98b6577bc8 one more fix for CC 2026-01-27 00:43:52 -05:00
Kevin Turcios
596c07709c add prompt for pre-commit related and perms changes 2026-01-27 00:25:12 -05:00
Kevin Turcios
6e530ce081
allow claude to run pre-k (#2314)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-27 00:10:58 -05:00
Kevin Turcios
0444e32f77
fix: CST tree handling and testgen pipeline improvements (#2310)
## Summary
- Fix CST tree corruption issues that caused 'NoneType' object has no
attribute 'visit' errors
- Consolidate testgen postprocessing into a single pipeline with
tuple-based pattern
- Improve markdown code extraction to prefer filepath-annotated blocks
- Add diagnostic context to optimization failure logs

## Changes
- Handle empty `SimpleStatementLine` and `StatementHandler` body to
prevent malformed CST
- Add trace_id logging to optimization and import failure paths
- Refactor testgen postprocessing into consolidated pipeline
- Fix code extraction for LLM responses with multiple code blocks

## Test plan
- [x] Added integration tests for full testgen pipeline
- [x] Added tests for markdown extraction with filepath preference
- [x] Existing tests pass

---------

Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
2026-01-26 23:57:55 -05:00
Kevin Turcios
a569e0b33d
fix: skip prek wait on push to main in django-unit-tests (#2274)
## Summary
- Skip `wait-for-prek` job on push to main since prek only runs on PRs
- Allow `unit-tests` to run when `wait-for-prek` is skipped
2026-01-23 05:34:39 -05:00
Kevin Turcios
c130255387
Fix aiservice deployment by including all files in zip artifact (#2272)
The previous zip command using shell glob (django/aiservice/*) was not
reliably including all files, particularly start_gunicorn.sh, causing
deployment failures with 'start_gunicorn.sh: not found'.

Changed to cd into the directory and zip all contents (.) while
excluding unnecessary files (.git, .venv, __pycache__, *.pyc).

# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-23 01:18:39 -05:00
Kevin Turcios
3ac7eb5982
improve continuous review (#2271)
- Re-enable synchronize trigger for automatic re-reviews on each push
- Add logic to detect and resolve fixed issues automatically
- Focus reviews only on critical bugs, security, breaking changes, test
failures
- Limit to 5-7 high-signal comments per review
- Review only changed files on re-reviews (incremental approach)
- Add detailed PR review guidelines in CLAUDE.md
- Increase fetch-depth to 2 for commit comparison

This reduces review noise while maintaining continuous quality checks.

# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-23 01:03:12 -05:00
Kevin Turcios
9fa1d22d51
fix Claude Code for backend (#2266)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-20 17:35:01 -05:00
Kevin Turcios
b936d91a18 test 2026-01-20 17:18:06 -05:00
Kevin Turcios
b64776e284
use AsyncAzureOpenAI (#2253)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2026-01-17 22:44:12 -05:00
Kevin Turcios
1e1820d27a
feat: add ty type checker to pre-k hooks (#2213)
Adds a local pre-commit hook for ty type checker since there's no
official pre-commit hook available yet (tracked in astral-sh/ty#269).
2026-01-09 22:36:53 -05:00
Kevin Turcios
2eecfd9dd3 check PRs 2025-12-30 01:17:05 -05:00
Kevin Turcios
d6349fed2f add pre-k GHA 2025-12-30 01:17:05 -05:00
Kevin Turcios
20cdab5245 use the right env var name 2025-12-26 22:51:55 -05:00
Kevin Turcios
1b9c5a4118 Rename secret to AZURE_ANTHROPIC_API_KEY 2025-12-26 13:38:07 -05:00
Kevin Turcios
6b756bfb14 Rename secret to AZURE_ANTHROPIC_ENDPOINT 2025-12-26 13:37:19 -05:00
Kevin Turcios
6726a5ed9e Switch Claude workflows to Azure Foundry 2025-12-26 13:35:58 -05:00
Kevin Turcios
18e8273209 Remove qodo-ai pr-agent workflow (replaced by Claude) 2025-12-26 13:22:28 -05:00
Kevin Turcios
cf704f12d0 Add Claude code review workflows with sticky comments
- claude-code-review.yml: Auto-review PRs with use_sticky_comment enabled
- claude.yml: On-demand @claude mentions in issues/PRs
2025-12-26 13:15:23 -05:00
mashraf-222
d4ddff44df
Github action setup with PR for CLI user (#2009)
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
Co-authored-by: Kevin Turcios <106575910+KRRT7@users.noreply.github.com>
2025-12-08 23:18:13 +05:30
Sarthak Agarwal
9e23a6c4ba
make sections collapsible for readbility on laptop (#2093)
<img width="1703" height="171" alt="image"
src="https://github.com/user-attachments/assets/0f77ceb6-ef7f-4bde-b24f-e4efce69889f"
/>

Making sections collapsible by default for readability of diff.
2025-12-08 11:59:11 +05:30
Kevin Turcios
ec530bb2c4 report properly 2025-11-26 04:40:54 -05:00
Kevin Turcios
513a6bb9eb final fix 2025-11-26 04:35:45 -05:00
Kevin Turcios
6bcfb8ab41 Fix E2E status jobs to accept skipped results
When there are no relevant file changes, the E2E test jobs skip correctly,
but the status jobs were failing because they only checked for success.

Changes:
- Add unit-tests-check to status job dependencies for proper tracking
- Accept 'skipped' result as success in addition to 'success'
- This allows PRs with only workflow changes to pass CI checks
2025-11-26 04:23:27 -05:00
Kevin Turcios
87241b0c2e Add checks permission to unit-tests-check jobs
The lewagon/wait-on-check-action requires checks:read permission
to query the status of check runs. This fixes the 403 error:
'Resource not accessible by integration' when waiting for unit tests.
2025-11-26 04:19:33 -05:00
Kevin Turcios
594f0e9524 Fix paths-filter permissions and upgrade to v3
- Add explicit permissions block to check-changes jobs
- Upgrade dorny/paths-filter from v2 to v3
- Add missing permissions blocks to coverage and init-optim workflows

This fixes the 'Resource not accessible by integration' error that was
causing all E2E test workflows to fail.
2025-11-26 04:16:08 -05:00
Kevin Turcios
9c31400ff3 Add pull_request triggers to E2E workflows to fix status checks
The E2E workflows were updated to only use workflow_run triggers, which
caused required status checks to never report on PRs. This commit adds:

1. pull_request triggers for PR CI checks
2. check-changes job to filter based on file changes
3. unit-tests-check job that waits for unit tests to pass before running
4. Conditional logic to support both PR checks and workflow_run triggers

Now E2E tests will:
- Run on PRs after unit tests pass (for CI checks)
- Run automatically after merges to main (via workflow_run)
- Can still be manually triggered (via workflow_dispatch)

This ensures required status checks are reported while maintaining the
sequential execution requirement (unit tests must pass first).
2025-11-26 04:14:05 -05:00
Kevin Turcios
42f551ee51 Merge branch 'main' into only-run-E2E-tests-if-normal-tests-passes
Resolved conflicts by keeping our workflow_run trigger approach that ensures
E2E tests only run after unit tests pass successfully.
2025-11-26 04:08:07 -05:00
Kevin Turcios
7636c6df4d only run if normal tests passes 2025-11-26 04:05:13 -05:00
Kevin Turcios
3304caa302 fix this one 2025-11-26 03:53:37 -05:00
Kevin Turcios
ee0047b5f5 naming changes 2025-11-26 03:49:02 -05:00
Kevin Turcios
9d4d59fdf7 Use uvicorn instead of manage.py runserver to match production
This fixes async event loop errors by using uvicorn which properly
handles ASGI applications in production-like environment.
2025-11-26 03:25:04 -05:00
Kevin Turcios
0fcee0b953 Fix skip-unit-tests working directory 2025-11-26 03:08:49 -05:00
Kevin Turcios
d5418f4100 Add workflow file paths to triggers to enable testing workflow changes 2025-11-26 03:06:36 -05:00
Kevin Turcios
390399699f black should be installed here 2025-11-26 02:55:56 -05:00
Kevin Turcios
b48227563a fix 2025-11-26 02:54:52 -05:00
mohammed ahmed
7c41a763b2
Fix working-directory path for gh action (#2048)
<img width="1351" height="325" alt="image"
src="https://github.com/user-attachments/assets/900743e6-9607-4e94-bb92-55cca9c8721d"
/>

Co-authored-by: Aseem Saxena <aseem.bits@gmail.com>
2025-11-25 11:23:02 -05:00
Sarthak Agarwal
9da710f18c
[unblocking merge] fix workflow runs (#2041)
# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2025-11-21 15:21:20 -08:00
Saurabh Misra
7c1933180a
local setup (#1898)
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
Co-authored-by: Sarthak Agarwal <sarthak.saga@gmail.com>
Co-authored-by: Mohamed Ashraf <mohamedashrraf222@gmail.com>
Co-authored-by: Aseem Saxena <aseem.bits@gmail.com>
2025-11-17 12:35:09 -08:00
Sarthak Agarwal
3b6ad00a33 Fix VSC build extension GHA 2025-10-31 17:35:42 -07:00
mohammed ahmed
756f2abfcc
[VSC] Codeflash version compatibility (CF-785) (#1933)
Co-authored-by: Sarthak Agarwal <sarthak.saga@gmail.com>
2025-10-31 16:11:46 -07:00
Kevin Turcios
2584d36fba update exporting command 2025-10-31 12:58:07 -05:00
Saurabh Misra
409a3fc35f
update codeflash gha (#1952)
Signed-off-by: Saurabh Misra <misra.saurabh1@gmail.com>
2025-10-30 15:05:24 -07:00
Sarthak Agarwal
cc034945fb
VSC package upgrade 0.0.13 (#1931) 2025-10-24 17:39:35 -07:00
Kevin Turcios
fe04a6e835 upgrade to v7 2025-10-22 17:10:52 -05:00
Kevin Turcios
b830a2a11b squash 2025-10-20 12:49:21 -07:00
Kevin Turcios
7999316766 Update codeflash-aiservice.yaml 2025-10-18 19:21:32 -07:00
Kevin Turcios
876b10b4bd Update codeflash-aiservice.yaml 2025-10-18 19:01:04 -07:00
Kevin Turcios
f954a45cd8 Update codeflash-aiservice.yaml 2025-10-18 18:52:28 -07:00
Kevin Turcios
dba8357840 add dev db 2025-10-18 01:27:31 -07:00
Kevin Turcios
9110d9eafd pass env var 2025-10-18 01:25:32 -07:00
Sarthak Agarwal
3328601949
[fix] mobile sidebar fix (#1901)
This is related to session replay from post hog reported:
https://codeflash-ai.slack.com/archives/C06BVLNRVT5/p1760651860154799

To Test: Run `npm install`
and then just `npm run dev`

---------

Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
2025-10-17 03:34:55 -07:00
Kevin Turcios
c3d2fb5315 for some reason the cache is causing hour long loops 2025-10-15 18:32:39 -07:00
Kevin Turcios
8eefbd3af3 Update end-to-end-test-coverage.yaml 2025-10-15 18:27:58 -07:00
Kevin Turcios
50ee7d7754 migrate to v6 to avoid locking issues
https://github.com/astral-sh/uv/issues/16105
2025-10-15 15:02:17 -07:00
Kevin Turcios
6060779c5c change name 2025-10-15 02:23:06 -07:00
Kevin Turcios
936fbfdad0 update hint 2025-10-15 02:21:52 -07:00
Aseem Saxena
80dbdb9101
Update cf-api-tests.yaml 2025-10-14 14:38:31 -07:00
Kevin Turcios
71eac4c97a make the optimizations verbose 2025-10-14 00:28:22 -07:00
Kevin Turcios
675d196e97 sync improvement %s 2025-10-13 23:47:13 -07:00
Kevin Turcios
6aa12b7c6a add needed perms 2025-10-13 23:08:26 -07:00
Kevin Turcios
8a4f9e52eb
fix missing perms for workflows (#1890) 2025-10-13 16:56:56 -07:00
Sarthak Agarwal
9ec5fad850
skip succeed the required workflows (#1881)
Co-authored-by: saga4 <saga4@codeflashs-MacBook-Air.local>
2025-10-08 14:55:13 -07:00
Kevin Turcios
10868dc5ef Update codeflash-aiservice.yaml 2025-10-01 16:26:29 -07:00
Kevin Turcios
c5ba05e2f0 Update codeflash-aiservice.yaml 2025-10-01 16:25:41 -07:00
Kevin Turcios
1ca0b63ce7 Update codeflash-aiservice.yaml 2025-10-01 16:22:44 -07:00
Kevin Turcios
2988763b85 Update codeflash-aiservice.yaml 2025-10-01 15:56:47 -07:00
Kevin Turcios
57a15a506f add asyncio extras 2025-10-01 15:51:47 -07:00
Kevin Turcios
5646b3da35 allow async optimizations 2025-10-01 15:49:13 -07:00
ali
dcce7e51da
use pull request paths instead 2025-09-17 07:53:55 +03:00
aseembits93
414d75c9fe add anthropic key to ci secrets 2025-09-16 16:42:14 -07:00
ali
9538f58d1c
allow e2e 2025-09-02 15:33:26 +03:00
ali
62c6537b0d
skip required actions 2025-09-02 15:30:54 +03:00
ali
cd0665c99c
temp 2025-09-02 15:26:53 +03:00
ali
c77bd10d1f
try conditional trigger 2025-09-02 15:20:58 +03:00
ali
161a2e9a48
aiservice pull requests workflows 2025-09-02 03:26:38 +03:00
ali
3da711e6e9
Merge branch 'vsc/build-action' of github.com:codeflash-ai/codeflash-internal into vsc/build-action 2025-08-30 21:57:47 +03:00
ali
357e99d3bb
install vsce 2025-08-30 21:56:50 +03:00
ali
8e209469e0
use node 20 2025-08-30 21:56:44 +03:00
ali
67d17e1595
vsc build action 2025-08-30 21:56:23 +03:00
ali
6fa981aa2a
build artifact 2025-08-30 21:55:16 +03:00
ali
e8fce628fd
vsc build action on pull request 2025-08-30 21:55:16 +03:00
ali
05b0d9d8c3
vsc build action on pull request 2025-08-30 18:53:05 +03:00
HeshamHM28
1e118ef4e7
Fix: Add HTML templates to deployment zip for Azure App Service (#1717) 2025-07-24 22:57:42 +05:30
Kevin Turcios
da92478d3f use latest. 2025-06-25 01:19:49 -07:00
Kevin Turcios
422da4485c forgot to add black too 2025-06-25 00:53:38 -07:00
Kevin Turcios
b2ca85330f follow uv 2025-06-25 00:26:39 -07:00
Kevin Turcios
bddb1c4eaa uv fixup 2025-06-25 00:23:40 -07:00
aseembits93
3c3291f4fb recalibrating expected improvement with new tests 2025-05-12 13:49:34 -07:00
HeshamHM28
609eb0b80e
Add Missing Node Modules (#1573) 2025-04-30 10:54:11 -07:00
HeshamHM28
21659f8cb1
Fix module not found (#1572) 2025-04-29 16:12:04 -07:00
HeshamHM28
be57d1da4b
Fix private package installation by configuring .npmrc with GitHub token (#1569) 2025-04-29 09:20:32 -07:00
HeshamHM28
8c6cc34b27
Fix CF WebApp Build (#1568) 2025-04-29 14:58:32 +00:00