Skip to content

Conversation

@SaxenaAnushka102
Copy link
Contributor

@SaxenaAnushka102 SaxenaAnushka102 commented Sep 26, 2025

Description

This PR adds the official Renovate configuration (renovate.json) to the JS SDK repository.

This configuration enables automated dependency tracking for the upstream Toolbox server:

  • What it does: Uses the regexManagers to watch the googleapis/genai-toolbox releases.
  • Action: This Renovate configuration uses a regexManagers block with-
  • "datasourceTemplate": "github-releases"
  • "depNameTemplate": "googleapis/genai-toolbox"

This tells Renovate to:

Look for new versions of the dependency by checking the GitHub Releases of the repository specified in depNameTemplate.
In this case, Renovate polls or checks for new releases/tags on https://github.com/googleapis/genai-toolbox.
The matchStrings regex extracts the current version from integration.cloudbuild.yaml. Renovate then compares this to the versions available via GitHub releases for googleapis/genai-toolbox.

  • Maintenance: This eliminates the need for manual version checks and updating.

Local test results

js-sdk-renovate-logs.txt

{
             "description": "Auto-update genai-toolbox server version",
             "matchPackageNames": ["googleapis/genai-toolbox"],
             "matchManagers": ["custom.regex"],
             "branchName": "auto-update/toolbox-server-v{{newValue}}",
             "commitMessageTopic": "chore(deps): update genai-toolbox server to {{newValue}}",
             "groupName": false,
             "matchUpdateTypes": ["minor", "patch"]
           },
{
             "description": ["Auto-update genai-toolbox server version"],
             "matchPackageNames": ["googleapis/genai-toolbox"],
             "matchManagers": ["custom.regex"],
             "branchName": "auto-update/toolbox-server-v{{newValue}}",
             "commitMessageTopic": "chore(deps): update genai-toolbox server to {{newValue}}",
             "groupName": false,
             "matchUpdateTypes": ["minor", "patch"]
           },
           {
             "groupName": "js-ts-nonmajor",
             "matchCategories": ["js", "typescript"],
             "matchUpdateTypes": ["minor", "patch"]
           },
           {"groupName": "kokoro dependencies", "matchFileNames": [".kokoro/**"]}
         ],
         "ignoreDeps": ["typescript"],
         "customManagers": [
           {
             "customType": "regex",
             "managerFilePatterns": [
               "/packages/toolbox-core/integration.cloudbuild.yaml/"
             ],
             "matchStrings": [
               "_TOOLBOX_VERSION: ['\"]?(?<currentValue>v?\\d+\\.\\d+\\.\\d+)['\"]?"
             ],
             "datasourceTemplate": "github-releases",
             "depNameTemplate": "googleapis/genai-toolbox",
             "versioningTemplate": "semver",
             "packageNameTemplate": "googleapis/genai-toolbox"
           }
         ],
     },
DEBUG: findPr(auto-update/toolbox-server-v0.16.0, chore(deps): update chore(deps): update genai-toolbox server to 0.16.0 to v0.16.0, !open) (repository=SaxenaAnushka102/mcp-toolbox-sdk-js, branch=auto-update/toolbox-server-v0.16.0)

Relates issues

Resolves #109

@SaxenaAnushka102 SaxenaAnushka102 requested a review from a team as a code owner September 26, 2025 06:47
@SaxenaAnushka102 SaxenaAnushka102 force-pushed the feature/renovate-js-config branch 2 times, most recently from 248f049 to ec966e9 Compare September 26, 2025 06:57
@SaxenaAnushka102 SaxenaAnushka102 changed the title feat (renovate): add renovate configuration for auto-updating toolbox version in build file of JS SDK feat(renovate): add renovate configuration for auto-updating toolbox version in build file of JS SDK Sep 26, 2025
@SaxenaAnushka102 SaxenaAnushka102 self-assigned this Sep 30, 2025
@twishabansal
Copy link
Contributor

@SaxenaAnushka102 are there any blockers to this? Can we merge this? I would be helpful in decreasing manual effort for version updates.

@SaxenaAnushka102 SaxenaAnushka102 force-pushed the feature/renovate-js-config branch 3 times, most recently from 1ea5b3c to 01e9b39 Compare November 6, 2025 09:32
@SaxenaAnushka102
Copy link
Contributor Author

@SaxenaAnushka102 are there any blockers to this? Can we merge this? I would be helpful in decreasing manual effort for version updates.

Yes @twishabansal , it's ready to be merged!

@SaxenaAnushka102 SaxenaAnushka102 force-pushed the feature/renovate-js-config branch from 01e9b39 to 6857678 Compare November 6, 2025 10:28
@SaxenaAnushka102 SaxenaAnushka102 force-pushed the feature/renovate-js-config branch from 6857678 to 248c453 Compare November 7, 2025 05:04
@twishabansal twishabansal added the tests: run Label to trigger Github Action tests. label Nov 7, 2025
@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Nov 7, 2025
@SaxenaAnushka102 SaxenaAnushka102 added the tests: run Label to trigger Github Action tests. label Nov 7, 2025
@github-actions github-actions bot removed the tests: run Label to trigger Github Action tests. label Nov 7, 2025
@SaxenaAnushka102 SaxenaAnushka102 merged commit 8d79150 into googleapis:main Nov 7, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Introduce Renovate Configuration for Cross-Repo Version Updates

3 participants