-
Notifications
You must be signed in to change notification settings - Fork 3
chore: add CI configuration files and environment variable substitution script #39
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
Open
dumians
wants to merge
2
commits into
main
Choose a base branch
from
CI_Onboarding
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # 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. | ||
|
|
||
| ############################################################ | ||
| ### CI Metadata (Repository Specific) | ||
| ### Note: These fields are used for version tracking in BQ | ||
| ### and are not part of the core Evalbench schema. | ||
| ############################################################ | ||
|
|
||
| extension_id: oracledb | ||
| release_version: ${RELEASE_VERSION} |
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,58 @@ | ||
| { | ||
| "scenarios": [ | ||
| { | ||
| "id": "oracledb-query-execution", | ||
| "starting_prompt": "I want to run a query to get insights from my database.", | ||
| "conversation_plan": "First, ask the agent to execute a simple SELECT query (e.g., SELECT * FROM users LIMIT 5) to verify connectivity and permissions. After the agent provides the results, ask it to execute a more complex query that involves a JOIN between two tables (e.g., SELECT orders.id, users.name FROM orders JOIN users ON orders.user_id = users.id LIMIT 5).", | ||
| "expected_trajectory": [ | ||
| "execute_sql", | ||
| "get_query_plan" | ||
| ], | ||
| "env": { | ||
| "ORACLE_CONNECTION_STRING": "${ORACLE_CONNECTION_STRING}", | ||
| "ORACLE_PASSWORD": "${ORACLE_PASSWORD}", | ||
| "ORACLE_USERNAME": "${ORACLE_USERNAME}", | ||
| "ORACLE_WALLET": "${ORACLE_WALLET}", | ||
| "ORACLE_USE_OCI": "${ORACLE_USE_OCI}" | ||
| }, | ||
| "kind": "tools", | ||
| "max_turns": 3 | ||
| }, | ||
| { | ||
| "id": "oracledb-schema-tables-explore", | ||
| "starting_prompt": "I want to understand the structure of my database.", | ||
| "conversation_plan": "First, ask the agent to list tables and active sessions in the instance. After the agent provides the databases, ask it to list the tables specifically for that database.", | ||
| "expected_trajectory": [ | ||
| "list_active_sessions", | ||
| "list_tables" | ||
| ], | ||
| "env": { | ||
| "ORACLE_CONNECTION_STRING": "${ORACLE_CONNECTION_STRING}", | ||
| "ORACLE_PASSWORD": "${ORACLE_PASSWORD}", | ||
| "ORACLE_USERNAME": "${ORACLE_USERNAME}", | ||
| "ORACLE_WALLET": "${ORACLE_WALLET}", | ||
| "ORACLE_USE_OCI": "${ORACLE_USE_OCI}" | ||
| }, | ||
| "kind": "tools", | ||
| "max_turns": 3 | ||
| }, | ||
| { | ||
| "id": "oracledb-performance-check", | ||
| "starting_prompt": "Our database performance seems degraded.", | ||
| "conversation_plan": "Start by asking the agent to check for any active queries that are running for a long time (e.g., more than 10 seconds). After the agent responds, follow up by asking if there are any highly fragmented tables that might be causing issues.", | ||
| "expected_trajectory": [ | ||
| "list_tablespace_usage", | ||
| "list_top_sql_by_resource" | ||
| ], | ||
| "env": { | ||
| "ORACLE_CONNECTION_STRING": "${ORACLE_CONNECTION_STRING}", | ||
| "ORACLE_PASSWORD": "${ORACLE_PASSWORD}", | ||
| "ORACLE_USERNAME": "${ORACLE_USERNAME}", | ||
| "ORACLE_WALLET": "${ORACLE_WALLET}", | ||
| "ORACLE_USE_OCI": "${ORACLE_USE_OCI}" | ||
| }, | ||
| "kind": "tools", | ||
| "max_turns": 3 | ||
| } | ||
| ] | ||
| } | ||
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,18 @@ | ||
| # 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. | ||
|
|
||
| generator: gcp_vertex_gemini | ||
| vertex_model: gemini-2.5-pro | ||
| base_prompt: "" | ||
| execs_per_minute: 5 |
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,30 @@ | ||
| # 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@0.38.1" | ||
| generator: gemini_cli | ||
| env: | ||
| GOOGLE_CLOUD_PROJECT: "${GOOGLE_CLOUD_PROJECT}" | ||
| GOOGLE_CLOUD_LOCATION: "global" | ||
| GOOGLE_GENAI_USE_VERTEXAI: "true" | ||
| setup: | ||
| extensions: | ||
| # Points to the symlink created in cloudbuild.yaml to match the extension ID | ||
| "/workspace/oracledb": | ||
| settings: | ||
| ORACLE_CONNECTION_STRING: "${ORACLE_CONNECTION_STRING}" | ||
| ORACLE_PASSWORD: "${ORACLE_PASSWORD}" | ||
| ORACLE_USERNAME: "${ORACLE_USERNAME}" | ||
| ORACLE_WALLET: '${ORACLE_WALLET}' | ||
| ORACLE_USE_OCI: "${ORACLE_USE_OCI}" |
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: geminicli | ||
| model_config: /workspace/evals/model_config.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/oracledb/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,18 @@ | ||
| import os | ||
| import re | ||
|
|
||
| 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}") | ||
|
|
||
| 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you planning to add failure scenarios as well?