-
Notifications
You must be signed in to change notification settings - Fork 6
ci: implement multi-model evaluation support #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a9394cc
ci: implement multi-model evaluation support by replacing static run …
omkargaikwad23 9aa8b4f
ci: simplify PR label checks and update Claude model version in evals…
omkargaikwad23 8273535
ci: update model, region, and environment configuration for Cloud SQL…
omkargaikwad23 bbb044b
ci: update evaluation model to claude-opus-4-1 and set CLOUD_ML_REGIO…
omkargaikwad23 abae0d3
ci: update claude-opus model version to 4-6 in eval configuration
omkargaikwad23 5d5fc1c
ci: update evaluation configuration with skill tagging, model upgrade…
omkargaikwad23 9dfca58
ci: upgrade claude-code version to 2.1.119
omkargaikwad23 9b88419
ci: split shared dataset into model-specific configurations and updat…
omkargaikwad23 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Copyright 2025 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| claude_code_version: "@anthropic-ai/claude-code@2.1.85" | ||
| generator: claude_code | ||
| model: "claude-opus-4-6" | ||
|
|
||
| use_vertex: true | ||
| vertex_project_id: "${GOOGLE_CLOUD_PROJECT}" | ||
| vertex_region: "us-east5" | ||
|
|
||
| env: | ||
| CLOUD_ML_REGION: "us-east5" | ||
| GOOGLE_CLOUD_PROJECT: "${GOOGLE_CLOUD_PROJECT}" | ||
| CLOUD_SQL_POSTGRES_PROJECT: "${CLOUD_SQL_POSTGRES_PROJECT}" | ||
| CLOUD_SQL_POSTGRES_INSTANCE: "${CLOUD_SQL_POSTGRES_INSTANCE}" | ||
| CLOUD_SQL_POSTGRES_REGION: "${CLOUD_SQL_POSTGRES_REGION}" | ||
| CLOUD_SQL_POSTGRES_DATABASE: "${CLOUD_SQL_POSTGRES_DATABASE}" | ||
| CLOUD_SQL_POSTGRES_USER: "${CLOUD_SQL_POSTGRES_USER}" | ||
| CLOUD_SQL_POSTGRES_PASSWORD: '${CLOUD_SQL_POSTGRES_PASSWORD}' | ||
| CLOUD_SQL_POSTGRES_IP_TYPE: "${CLOUD_SQL_POSTGRES_IP_TYPE}" | ||
|
|
||
| setup: | ||
| skills_dir: "/workspace/cloud-sql-postgresql" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # Copyright 2025 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| dataset_config: /workspace/evals/dataset.json | ||
| dataset_format: gemini-cli-format | ||
|
|
||
| orchestrator: agent | ||
| model_config: /workspace/evals/claude_code_model.yaml | ||
| simulated_user_model_config: /workspace/evals/gemini_2.5_pro_model.yaml | ||
|
|
||
| scorers: | ||
| # Qualitative (Judge-based) | ||
| goal_completion: | ||
| model_config: /workspace/evals/gemini_2.5_pro_model.yaml | ||
| behavioral_metrics: | ||
| model_config: /workspace/evals/gemini_2.5_pro_model.yaml | ||
| skills_best_practices: | ||
| model_config: /workspace/evals/gemini_2.5_pro_model.yaml | ||
| skills_dir: /workspace/cloud-sql-postgresql/skills | ||
|
|
||
| # Performance | ||
| turn_count: {} | ||
| end_to_end_latency: {} | ||
| tool_call_latency: {} | ||
| token_consumption: {} | ||
| skills_trajectory: {} | ||
|
|
||
| reporting: | ||
| bigquery: | ||
| gcp_project_id: "${EVAL_REPORTING_PROJECT}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Copyright 2025 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| gemini_cli_version: "@google/gemini-cli@latest" | ||
| generator: gemini_cli | ||
| env: | ||
| GOOGLE_CLOUD_PROJECT: "${GOOGLE_CLOUD_PROJECT}" | ||
| GOOGLE_CLOUD_LOCATION: "global" | ||
| GOOGLE_GENAI_USE_VERTEXAI: "true" | ||
| GEMINI_CLI_TRUST_WORKSPACE: "true" | ||
| setup: | ||
| extensions: | ||
| # Points to the symlink created in cloudbuild.yaml to match the extension ID | ||
| "/workspace/cloud-sql-postgresql": | ||
| settings: | ||
| CLOUD_SQL_POSTGRES_PROJECT: "${CLOUD_SQL_POSTGRES_PROJECT}" | ||
| CLOUD_SQL_POSTGRES_INSTANCE: "${CLOUD_SQL_POSTGRES_INSTANCE}" | ||
| CLOUD_SQL_POSTGRES_REGION: "${CLOUD_SQL_POSTGRES_REGION}" | ||
| CLOUD_SQL_POSTGRES_DATABASE: "${CLOUD_SQL_POSTGRES_DATABASE}" | ||
| CLOUD_SQL_POSTGRES_USER: "${CLOUD_SQL_POSTGRES_USER}" | ||
| CLOUD_SQL_POSTGRES_PASSWORD: '${CLOUD_SQL_POSTGRES_PASSWORD}' | ||
| CLOUD_SQL_POSTGRES_IP_TYPE: "${CLOUD_SQL_POSTGRES_IP_TYPE}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,23 @@ | ||
| import os | ||
| import re | ||
| import glob | ||
|
|
||
| def main(): | ||
| yaml_paths = ['/workspace/evals/model_config.yaml', '/workspace/evals/run_config.yaml', '/workspace/evals/dataset.json'] | ||
| for yaml_path in yaml_paths: | ||
| if os.path.exists(yaml_path): | ||
| with open(yaml_path, 'r') as f: | ||
| content = f.read() | ||
| content = re.sub(r'\${(\w+)}', lambda m: os.environ.get(m.group(1), m.group(0)), content) | ||
| with open(yaml_path, 'w') as f: | ||
| f.write(content) | ||
| print(f"Successfully substituted environment variables in {yaml_path}") | ||
| else: | ||
| print(f"File not found: {yaml_path}") | ||
| # Find all .yaml and .json files in /workspace/evals | ||
| paths = glob.glob('/workspace/evals/**/*.yaml', recursive=True) + glob.glob('/workspace/evals/**/*.json', recursive=True) | ||
|
|
||
| for path in paths: | ||
| if os.path.isfile(path): | ||
| try: | ||
| with open(path, 'r') as f: | ||
| content = f.read() | ||
| # Substitute ${VAR} with environment variables | ||
| content = re.sub(r'\${(\w+)}', lambda m: os.environ.get(m.group(1), m.group(0)), content) | ||
| with open(path, 'w') as f: | ||
| f.write(content) | ||
| print(f"Successfully substituted environment variables in {path}") | ||
| except Exception as e: | ||
| print(f"Error processing {path}: {e}") | ||
|
|
||
| if __name__ == '__main__': | ||
| main() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.