Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
7a5b5cf
Update renovate.json5
SaxenaAnushka102 Aug 18, 2025
5a71c99
Update .release-please-manifest.json
SaxenaAnushka102 Aug 18, 2025
a70c0fb
Create test-renovate.yml
SaxenaAnushka102 Aug 18, 2025
0120b83
Create update-toolbox-version.yml
SaxenaAnushka102 Aug 18, 2025
b10490b
Update update-toolbox-version.yml
SaxenaAnushka102 Aug 18, 2025
d8548bb
Update update-toolbox-version.yml
SaxenaAnushka102 Aug 21, 2025
21a8aa7
Update update-toolbox-version.yml
SaxenaAnushka102 Aug 22, 2025
9333d63
Update update-toolbox-version.yml
SaxenaAnushka102 Aug 22, 2025
70af6ea
Update update-toolbox-version.yml
SaxenaAnushka102 Aug 26, 2025
fbba358
Create cloudbuild.yaml
SaxenaAnushka102 Sep 3, 2025
a778394
Update cloudbuild.yaml
SaxenaAnushka102 Sep 3, 2025
fc35d1b
Update cloudbuild.yaml
SaxenaAnushka102 Sep 8, 2025
5b57019
Update cloudbuild.yaml
SaxenaAnushka102 Sep 8, 2025
262b6b1
Update cloudbuild.yaml
SaxenaAnushka102 Sep 8, 2025
2096028
Update cloudbuild.yaml
SaxenaAnushka102 Sep 8, 2025
9570366
Update cloudbuild.yaml
SaxenaAnushka102 Sep 8, 2025
b43f625
Update cloudbuild.yaml
SaxenaAnushka102 Sep 9, 2025
7845564
Update cloudbuild.yaml
SaxenaAnushka102 Sep 11, 2025
ba5e48c
Update cloudbuild.yaml
SaxenaAnushka102 Sep 11, 2025
e630bee
Update cloudbuild.yaml
SaxenaAnushka102 Sep 11, 2025
729ba2e
Update cloudbuild.yaml
SaxenaAnushka102 Sep 11, 2025
20562ca
Update cloudbuild.yaml
SaxenaAnushka102 Sep 16, 2025
184e99a
Update cloudbuild.yaml
SaxenaAnushka102 Sep 16, 2025
cacd2d2
Update cloudbuild.yaml
SaxenaAnushka102 Sep 16, 2025
b1f5c7b
Update cloudbuild.yaml
SaxenaAnushka102 Sep 16, 2025
eae98a5
Update cloudbuild.yaml
SaxenaAnushka102 Sep 16, 2025
bc9dca4
Create auto_update.yml
SaxenaAnushka102 Sep 18, 2025
b373083
Update auto_update.yml
SaxenaAnushka102 Sep 18, 2025
f00aa03
Merge remote-tracking branch 'upstream/main'
SaxenaAnushka102 Sep 18, 2025
8fad39e
chore(deps): pin dependencies
renovate[bot] Sep 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 50 additions & 36 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,51 +1,65 @@
{
extends: [
'config:recommended',
':semanticCommits',
':ignoreUnstable',
'group:allNonMajor',
':separateMajorReleases',
':prConcurrentLimitNone',
':prHourlyLimitNone',
':preserveSemverRanges',
"extends": [
"config:recommended",
":semanticCommits",
":ignoreUnstable",
"group:allNonMajor",
":separateMajorReleases",
":prConcurrentLimitNone",
":prHourlyLimitNone",
":preserveSemverRanges"
],
minimumReleaseAge: '3',
rebaseWhen: 'conflicted',
dependencyDashboardLabels: [
'type: process',
"minimumReleaseAge": "3",
"rebaseWhen": "conflicted",
"dependencyDashboardLabels": [
"type: process"
],
packageRules: [
"packageRules": [
{
groupName: 'GitHub Actions',
matchManagers: [
'github-actions',
"groupName": "GitHub Actions",
"matchManagers": [
"github-actions"
],
pinDigests: true,
"pinDigests": true
},
{
matchPackageNames: [
'pytest',
],
matchUpdateTypes: [
'minor',
'major',
"matchPackageNames": [
"pytest"
],
"matchUpdateTypes": [
"minor",
"major"
]
},
{
groupName: 'python-nonmajor',
matchCategories: [
'python',
],
matchUpdateTypes: [
'minor',
'patch',
"groupName": "python-nonmajor",
"matchCategories": [
"python"
],
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
groupName: 'kokoro dependencies',
matchFileNames: [
'.kokoro/**',
],
},
"groupName": "kokoro dependencies",
"matchFileNames": [
".kokoro/**"
]
}
],
"regexManagers": [
{
"fileMatch": [
"packages/.*/integration.cloudbuild.yaml"
],
"matchStrings": [
"_TOOLBOX_VERSION: '(?<currentValue>\\d+\\.\\d+\\.\\d+)'"
],
"datasourceTemplate": "release-please",
"depNameTemplate": "toolbox-core",
"lookupNameTemplate": "{{{filePath}}}",
"versioningTemplate": "semver"
}
]
}
49 changes: 49 additions & 0 deletions .github/workflows/auto_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Auto-Update Python Toolbox Version

on:
repository_dispatch:
types: [genai-toolbox-update]
workflow_dispatch:
inputs:
new_version:
description: 'Test version to use (e.g., v1.2.3)'
required: true
default: 'v0.0.0-manual'

jobs:
update-version:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4

- name: Update version in files
run: |
NEW_VERSION=${{ github.event.client_payload.new_version || github.event.inputs.new_version }}
echo "Using version: $NEW_VERSION"
# Remove the 'v' prefix from the version tag
NEW_VERSION_CLEAN=$(echo "$NEW_VERSION" | sed 's/^v//')

sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$NEW_VERSION_CLEAN'/" packages/toolbox-core/integration.cloudbuild.yaml
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$NEW_VERSION_CLEAN'/" packages/toolbox-langchain/integration.cloudbuild.yaml
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$NEW_VERSION_CLEAN'/" packages/toolbox-llamaindex/integration.cloudbuild.yaml

git add packages/toolbox-core/integration.cloudbuild.yaml
git add packages/toolbox-langchain/integration.cloudbuild.yaml
git add packages/toolbox-llamaindex/integration.cloudbuild.yaml

- name: 'Create Pull Request'
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: googleapis/code-suggester@9222591646c050504e4a341ab8418cbfb5f619e1 # v2
with:
command: pr
branch: 'auto-update/genai-toolbox-version-test'
message: 'chore(deps): update genai-toolbox version to ${{ github.event.client_payload.new_version || github.event.inputs.new_version }}'
title: 'chore(deps): update genai-toolbox version to ${{ github.event.client_payload.new_version || github.event.inputs.new_version }} (Test)'
description: 'This PR was automatically generated for testing to update the _TOOLBOX_VERSION to ${{ github.event.client_payload.new_version || github.event.inputs.new_version }}.'
23 changes: 23 additions & 0 deletions .github/workflows/test-renovate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test Renovate Dry Run
'on':
workflow_dispatch:
inputs:
log-level:
description: 'Set the log level for Renovate (e.g., debug, info, warn)'
required: true
default: debug
schedule:
- cron: 0 7 * * *
jobs:
renovate-dry-run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Run Renovate in Dry Run mode
env:
LOG_LEVEL: '${{ github.event.inputs.log-level || ''debug'' }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
# Use npx to run the Renovate CLI directly
npx renovate --dry-run=true
36 changes: 36 additions & 0 deletions .github/workflows/update-toolbox-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Auto-Update Python Toolbox Version

on:
repository_dispatch:
types: [genai-toolbox-update]

jobs:
update-version:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4

- name: Update version in files
run: |
NEW_VERSION=${{ github.event.client_payload.new_version }}
# Remove the 'v' prefix from the version tag
NEW_VERSION_CLEAN=$(echo "$NEW_VERSION" | sed 's/^v//')

# Update toolbox-core
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$NEW_VERSION_CLEAN'/" packages/toolbox-core/integration.cloudbuild.yaml

# Update toolbox-langchain
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$NEW_VERSION_CLEAN'/" packages/toolbox-langchain/integration.cloudbuild.yaml

# Update toolbox-llamaindex
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$NEW_VERSION_CLEAN'/" packages/toolbox-llamaindex/integration.cloudbuild.yaml

- name: 'Create Pull Request'
uses: 'peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c' # v6
with:
commit-message: 'chore(deps): update genai-toolbox version to ${{ github.event.client_payload.new_version }}'
title: 'chore(deps): update genai-toolbox version to ${{ github.event.client_payload.new_version }}'
body: 'This PR was automatically generated to update the _TOOLBOX_VERSION to ${{ github.event.client_payload.new_version }}.'
branch: 'auto-update/genai-toolbox-version'
42 changes: 42 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
steps:
- id: 'Update version in files'
name: 'ubuntu'
entrypoint: 'bash'
args:
- '-c'
- |
_NEW_VERSION=${_TOOLBOX_VERSION}
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$_NEW_VERSION'/" packages/toolbox-core/integration.cloudbuild.yaml
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$_NEW_VERSION'/" packages/toolbox-langchain/integration.cloudbuild.yaml
sed -i "s/_TOOLBOX_VERSION: '.*/_TOOLBOX_VERSION: '$_NEW_VERSION'/" packages/toolbox-llamaindex/integration.cloudbuild.yaml

- id: 'Create Pull Request'
name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args:
- '-c'
- |
_PAT=$(gcloud secrets versions access latest --secret=pat --project=${_PROJECT_ID})

git config --global user.email "anushkasaxenaa@google.com"
git config --global user.name "Cloud Build Bot Anushka"
git config --global url."https://SaxenaAnushka102:${_PAT}@github.com/".insteadOf "https://github.com/"

# Install the GitHub CLI
apt-get update && apt-get install -y gh

# Set up branch and commit
BRANCH_NAME="auto-update/toolbox-version-${_TOOLBOX_VERSION}"
git checkout -b "$BRANCH_NAME"
git add .
git commit -m "chore(deps): update genai-toolbox version to ${_TOOLBOX_VERSION}"
git push origin "$BRANCH_NAME"

# Create the PR
gh pr create --title "chore(deps): update genai-toolbox version to ${_TOOLBOX_VERSION}" --body "Automated update to version ${_TOOLBOX_VERSION}" --head "$BRANCH_NAME"

options:
logging: CLOUD_LOGGING_ONLY
substitutions:
_TOOLBOX_VERSION: '0.8.0'
_PROJECT_ID: anushkasaxenaa-playground