Skip to content

Commit 6350ed7

Browse files
feat: move CI metadata to a dedicated file and merge it into run_config at build time
1 parent 03525f0 commit 6350ed7

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

cloudbuild.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ steps:
7878
# Maps the decrypted DB_PASSWORD to the exact variable expected by gemini_cli and extension skills
7979
export CLOUD_SQL_POSTGRES_PASSWORD=$$DB_PASSWORD
8080
81+
# Combine CI metadata with run config
82+
cat /workspace/evals/ci_metadata.yaml >> /workspace/evals/run_config.yaml
83+
8184
# Substitute environment variables in model_config.yaml
8285
python3 /workspace/evals/substitute_env.py
8386

evals/ci_metadata.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
############################################################
16+
### CI Metadata (Repository Specific)
17+
### Note: These fields are used for version tracking in BQ
18+
### and are not part of the core Evalbench schema.
19+
############################################################
20+
21+
extension_id: cloud-sql-postgresql
22+
release_version: ${RELEASE_VERSION}

evals/run_config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
extension_id: cloud-sql-postgresql
16-
release_version: ${RELEASE_VERSION}
17-
1815
dataset_config: /workspace/evals/dataset.json
1916
dataset_format: gemini-cli-format
2017

0 commit comments

Comments
 (0)