Skip to content

Commit da75fdb

Browse files
authored
Merge pull request #1560 from codeflash-ai/sync-main-batch-4
chore: sync main into omni-java (batch 4/4)
2 parents 4a45ac5 + f740531 commit da75fdb

134 files changed

Lines changed: 4023 additions & 3987 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codex/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[mcp_servers.tessl]
2+
type = "stdio"
3+
command = "tessl"
4+
args = [ "mcp", "start" ]

.codex/skills/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gemini/settings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mcpServers": {
3+
"tessl": {
4+
"type": "stdio",
5+
"command": "tessl",
6+
"args": [
7+
"mcp",
8+
"start"
9+
]
10+
}
11+
}
12+
}

.gemini/skills/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 104 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,48 @@ on:
66
- main
77
paths:
88
- 'codeflash/version.py'
9+
- 'codeflash-benchmark/codeflash_benchmark/version.py'
910

1011
jobs:
11-
publish:
12+
detect-changes:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
codeflash: ${{ steps.filter.outputs.codeflash }}
16+
benchmark: ${{ steps.filter.outputs.benchmark }}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
with:
21+
fetch-depth: 2
22+
23+
- name: Detect which packages changed
24+
id: filter
25+
run: |
26+
if git diff --name-only HEAD~1 HEAD | grep -q '^codeflash/version.py$'; then
27+
echo "codeflash=true" >> $GITHUB_OUTPUT
28+
else
29+
echo "codeflash=false" >> $GITHUB_OUTPUT
30+
fi
31+
if git diff --name-only HEAD~1 HEAD | grep -q '^codeflash-benchmark/codeflash_benchmark/version.py$'; then
32+
echo "benchmark=true" >> $GITHUB_OUTPUT
33+
else
34+
echo "benchmark=false" >> $GITHUB_OUTPUT
35+
fi
36+
37+
publish-codeflash:
38+
needs: detect-changes
39+
if: needs.detect-changes.outputs.codeflash == 'true'
1240
runs-on: ubuntu-latest
1341
environment:
1442
name: pypi
1543
permissions:
1644
id-token: write
17-
contents: write # Changed from 'read' to 'write' to allow tag creation
45+
contents: write
1846
steps:
1947
- name: Checkout
2048
uses: actions/checkout@v5
2149
with:
22-
fetch-depth: 0 # Fetch all history for proper versioning
50+
fetch-depth: 0
2351

2452
- name: Extract version from version.py
2553
id: extract_version
@@ -76,4 +104,76 @@ jobs:
76104
prerelease: false
77105
generate_release_notes: true
78106
files: |
79-
dist/*
107+
dist/*
108+
109+
publish-benchmark:
110+
needs: detect-changes
111+
if: needs.detect-changes.outputs.benchmark == 'true'
112+
runs-on: ubuntu-latest
113+
environment:
114+
name: pypi
115+
permissions:
116+
id-token: write
117+
contents: write
118+
steps:
119+
- name: Checkout
120+
uses: actions/checkout@v5
121+
with:
122+
fetch-depth: 0
123+
124+
- name: Extract version from version.py
125+
id: extract_version
126+
run: |
127+
VERSION=$(grep -oP '__version__ = "\K[^"]+' codeflash-benchmark/codeflash_benchmark/version.py)
128+
echo "version=$VERSION" >> $GITHUB_OUTPUT
129+
echo "tag=benchmark-v$VERSION" >> $GITHUB_OUTPUT
130+
echo "Extracted version: $VERSION"
131+
132+
- name: Check if tag already exists
133+
id: check_tag
134+
run: |
135+
if git rev-parse "${{ steps.extract_version.outputs.tag }}" >/dev/null 2>&1; then
136+
echo "exists=true" >> $GITHUB_OUTPUT
137+
echo "Tag ${{ steps.extract_version.outputs.tag }} already exists, skipping release"
138+
else
139+
echo "exists=false" >> $GITHUB_OUTPUT
140+
echo "Tag ${{ steps.extract_version.outputs.tag }} does not exist, proceeding with release"
141+
fi
142+
143+
- name: Create and push git tag
144+
if: steps.check_tag.outputs.exists == 'false'
145+
run: |
146+
git config user.name "github-actions[bot]"
147+
git config user.email "github-actions[bot]@users.noreply.github.com"
148+
git tag -a "${{ steps.extract_version.outputs.tag }}" -m "Release ${{ steps.extract_version.outputs.tag }}"
149+
git push origin "${{ steps.extract_version.outputs.tag }}"
150+
151+
- name: Install uv
152+
if: steps.check_tag.outputs.exists == 'false'
153+
uses: astral-sh/setup-uv@v6
154+
155+
- name: Build
156+
if: steps.check_tag.outputs.exists == 'false'
157+
run: uv build --package codeflash-benchmark
158+
159+
- name: Publish to PyPI
160+
if: steps.check_tag.outputs.exists == 'false'
161+
run: uv publish
162+
163+
- name: Create GitHub Release
164+
if: steps.check_tag.outputs.exists == 'false'
165+
uses: softprops/action-gh-release@v2
166+
with:
167+
tag_name: ${{ steps.extract_version.outputs.tag }}
168+
name: codeflash-benchmark ${{ steps.extract_version.outputs.tag }}
169+
body: |
170+
## What's Changed
171+
172+
Release ${{ steps.extract_version.outputs.version }} of codeflash-benchmark.
173+
174+
**Full Changelog**: https://github.com/${{ github.repository }}/commits/${{ steps.extract_version.outputs.tag }}
175+
draft: false
176+
prerelease: false
177+
generate_release_notes: true
178+
files: |
179+
dist/*

.github/workflows/unit-tests.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,25 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
18+
include:
19+
- os: ubuntu-latest
20+
python-version: "3.9"
21+
- os: ubuntu-latest
22+
python-version: "3.10"
23+
- os: ubuntu-latest
24+
python-version: "3.11"
25+
- os: ubuntu-latest
26+
python-version: "3.12"
27+
- os: ubuntu-latest
28+
python-version: "3.13"
29+
- os: ubuntu-latest
30+
python-version: "3.14"
31+
- os: windows-latest
32+
python-version: "3.13"
1933
continue-on-error: true
20-
runs-on: ubuntu-latest
34+
runs-on: ${{ matrix.os }}
35+
env:
36+
PYTHONIOENCODING: utf-8
2137
steps:
2238
- uses: actions/checkout@v4
2339
with:

.github/workflows/windows-unit-tests.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Discovery → Ranking → Context Extraction → Test Gen + Optimization → Bas
2828
- **Tracer**: Profiling system that records function call trees and timings (`tracing/`, `tracer.py`)
2929
- **Worktree mode**: Git worktree-based parallel optimization (`--worktree` flag)
3030

31+
## PR Reviews
32+
33+
- GitHub PR comments and review feedback can be stale — they may reference issues already fixed by a later commit. Before acting on review feedback, verify it still applies to the current code. If the issue no longer exists, resolve the conversation in the GitHub UI.
34+
3135
<!-- Section below is auto-generated by `tessl install` - do not edit manually -->
3236

3337
# Agent Rules <!-- tessl-managed -->

0 commit comments

Comments
 (0)