Compare commits

...

66 Commits

Author SHA1 Message Date
rahulpinto19
185f04dc67 test 2025-12-23 05:48:48 +00:00
rahulpinto19
6cec995fa7 test 2025-12-22 04:37:27 +00:00
rahulpinto19
eb6f134610 test 2025-12-22 04:37:27 +00:00
rahulpinto19
6114f66ea0 updated:developer.md 2025-12-22 04:37:27 +00:00
rahulpinto19
f9fa5347ad Revert "Update DEVELOPER.md with link check details"
This reverts commit 85ca6d796510f0ed0564dc93bc3e9fd7f02e43dd.
2025-12-22 04:37:26 +00:00
manuka rahul
ad3b05e8d5 Update DEVELOPER.md with link check details
Clarify the differences between GitHub Action link checks and Hugo server link resolution.
2025-12-22 04:37:26 +00:00
rahulpinto19
853c4dd6e3 resolved comments 2025-12-22 04:37:26 +00:00
Wenxin Du
f15a3a901a chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:26 +00:00
Wenxin Du
e9a34672fe chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:26 +00:00
Wenxin Du
741e03edb5 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:26 +00:00
Wenxin Du
df7a8b5da5 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:26 +00:00
Wenxin Du
6386ef63ab chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:26 +00:00
Wenxin Du
84feffb9bf chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:26 +00:00
Wenxin Du
25904dd3bb chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
ad5e713f7b chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
f439080df8 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
9f09893c8b chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
6668edb28c chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
cbf12336f8 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
b9506ee80f chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
9ae422354c chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
361e5f242c chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
b88203a429 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
2db5979537 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:25 +00:00
Wenxin Du
1a2ed2de1c chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
87398740b0 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
3e7b9d627b chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
718e5283d6 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
9d8ff25632 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
3bbcd0d3cc chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
8633972746 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
8ac525555d chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
4c3079da16 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
7f7cf01a63 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:24 +00:00
Wenxin Du
621c7ea52d chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
e7409383aa chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
c1b9812215 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
bc64305edb chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
b92e9a4976 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
2bb03653b0 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
2f5b533204 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
8f727e4009 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
7d0a4fc355 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
163ae63cbe chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:23 +00:00
Wenxin Du
5c6da37f30 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
8e9c1a10b2 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
837ab6bad5 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
77583d5a2a chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
d39ee34a39 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
8a5fa921c8 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
71033ab631 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
b0dbd909a4 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
b22bfb6568 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
5a91a9bc78 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
368c8d1bc6 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:22 +00:00
Wenxin Du
dc69841360 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:21 +00:00
Wenxin Du
f0f4e531f1 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:21 +00:00
Wenxin Du
8c0283c12a chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:21 +00:00
Wenxin Du
5788bbaad6 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:21 +00:00
Wenxin Du
8a8ecd74c1 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:21 +00:00
Wenxin Du
d4246d1fb0 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:21 +00:00
Wenxin Du
28a89a5168 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:21 +00:00
Wenxin Du
f45b6a0f90 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:10 +00:00
Wenxin Du
20d8b409a1 chore: release 0.18.0 (#1776)
Release-As: 0.18.0
2025-12-22 04:37:09 +00:00
rahulpinto19
e0ed26bcc5 test 2025-12-22 04:37:09 +00:00
rahulpinto19
c735e778fd integration tests funcitons updated 2025-12-22 04:37:09 +00:00
6 changed files with 63 additions and 4 deletions

View File

@@ -207,6 +207,29 @@ variables for each source.
* SQLite - setup in the integration test, where we create a temporary database
file
## Link Checking and Fixing with Lychee
We use **[lychee](https://github.com/lycheeverse/lychee-action)** for repository link checks.
* To run the checker **locally**, see the [command-line usage guide](https://github.com/lycheeverse/lychee?tab=readme-ov-file#commandline-usage).
### Fixing Broken Links
1. **Update the Link:** Correct the broken URL or update the content where it is used.
2. **Ignore the Link:** If you can't fix the link (e.g., due to **external rate-limits** or if it's a **local-only URL**), tell Lychee to **ignore** it.
* List **regular expressions** or **direct links** in the **[.lycheeignore](https://github.com/googleapis/genai-toolbox/blob/main/.lycheeignore)** file, one entry per line.
* **Always add a comment** explaining **why** the link is being skipped to prevent link rot. **Example `.lycheeignore`:**
```text
# These are email addresses, not standard web URLs, and usually cause check failures.
^mailto:.*
```
> [!NOTE]
> **GitHub Action Check**: The link checker runs against the raw Markdown files in the repository structure, treating links as relative file paths (e.g., ../content/page.md).<br>
> **Hugo Server**: The static site generator resolves links based on the final clean URL structure (e.g., /page/) and the configured baseURL.<br>
> **Crucial Difference**: A link that works as a file path for the GitHub Action (e.g., ./image.png) may break in the final HTML generated by Hugo if the URL path is different, and vice-versa. You must ensure your linking strategy—often using root-relative paths (/path/) or Hugo Page Bundles—works seamlessly for both.
### Other GitHub Checks
* License header check (`.github/header-checker-lint.yml`) - Ensures files have

View File

@@ -597,6 +597,7 @@ func runAlloyDBListInstancesTest(t *testing.T, vars map[string]string) {
// NOTE: If clusters or instances are added, removed or changed in the test project,
// the below lists must be updated for the tests to pass.
wantForAllClustersSpecificLocation := []string{
fmt.Sprintf("projects/%s/locations/%s/clusters/alloydb-ai-nl-testing/instances/alloydb-ai-nl-testing-instance", vars["project"], vars["location"]),
fmt.Sprintf("projects/%s/locations/%s/clusters/alloydb-pg-testing/instances/alloydb-pg-testing-instance", vars["project"], vars["location"]),

View File

@@ -169,6 +169,7 @@ func TestAlloyDBPgToolEndpoints(t *testing.T) {
t.Fatalf("toolbox didn't start successfully: %s", err)
}
// Get configs for tests
select1Want, failInvocationWant, createTableStatement, mcpSelect1Want := tests.GetPostgresWants()

View File

@@ -345,6 +345,8 @@ func getClickHouseWants() (string, string, string, string, string) {
return select1Want, mcpSelect1Want, mcpMyFailToolWant, createTableStatement, nullWant
}
func TestClickHouseSQLTool(t *testing.T) {
_ = getClickHouseVars(t)
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)

View File

@@ -167,8 +167,26 @@ func setupCouchbaseCollection(t *testing.T, ctx context.Context, cluster *gocb.C
t.Fatalf("failed to connect to bucket: %v", err)
}
// Create scope if it doesn't exist
bucketMgr := bucket.CollectionsV2()
// If the test failed before, the collection might still exist.
// We drop it here to start clean and prevent collection count bloat.
// Use a short context for this administrative operation.
dropCtx, dropCancel := context.WithTimeout(ctx, 10*time.Second)
defer dropCancel()
// Attempt to drop the collection (ignore "not found" error, which is expected sometimes)
err = bucketMgr.DropCollection(scopeName, collectionName, &gocb.DropCollectionOptions{
Context: dropCtx,
})
// Log a warning if drop failed but isn't due to "not found"
if err != nil && !strings.Contains(err.Error(), "not found") {
t.Logf("WARN: Pre-emptive drop of %s.%s failed: %v", scopeName, collectionName, err)
}
// Create scope if it doesn't exist
err = bucketMgr.CreateScope(scopeName, nil)
if err != nil && !strings.Contains(err.Error(), "already exists") {
t.Logf("failed to create scope (might already exist): %v", err)
@@ -223,10 +241,24 @@ func setupCouchbaseCollection(t *testing.T, ctx context.Context, cluster *gocb.C
// Return a cleanup function
return func(t *testing.T) {
// --- FIX: ROBUST TEARDOWN ---
// Use a dedicated context for cleanup.
cleanupCtx, cleanupCancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cleanupCancel()
// Drop the collection
err := bucketMgr.DropCollection(scopeName, collectionName, nil)
// err := bucketMgr.DropCollection(scopeName, collectionName, nil)
err := bucketMgr.DropCollection(scopeName, collectionName, &gocb.DropCollectionOptions{
Context: cleanupCtx,
})
// if err != nil {
// t.Logf("failed to drop collection: %v", err)
// }
if err != nil {
t.Logf("failed to drop collection: %v", err)
// Only log if it's not a "not found" error (which is fine during teardown)
if !strings.Contains(err.Error(), "not found") {
t.Logf("ERROR: Teardown failed to drop collection %s.%s: %v", scopeName, collectionName, err)
}
}
}
}

View File

@@ -225,7 +225,7 @@ func TestMindsDBToolEndpoints(t *testing.T) {
}
defer cleanup()
waitCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
waitCtx, cancel := context.WithTimeout(ctx, 2*time.Minute)
defer cancel()
out, err := testutils.WaitForString(waitCtx, regexp.MustCompile(`Server ready to serve`), cmd.Out)
if err != nil {