Repository navigation
chore(deps): update go - #4246
renovate-bot wants to merge 2 commits into
Conversation
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Due to Go's usage of Minimal Version Selection (MVS), these packages have been updated to the minimum version available, so will still abide by Details:
|
|
/gcbrun |
There was a problem hiding this comment.
Code Review
This pull request updates the Go version to 1.26.0 and the toolchain to 1.27.1 in the go.mod file, alongside upgrading numerous direct and indirect dependencies to their latest versions. Since there are no review comments provided, I have no feedback to provide.
a535726 to
0ac22d8
Compare
|
/gcbrun |
0ac22d8 to
f3fddfd
Compare
|
/gcbrun |
f3fddfd to
da21e3d
Compare
|
/gcbrun |
da21e3d to
5a7fd53
Compare
|
/gcbrun |
5a7fd53 to
8d926d5
Compare
|
/gcbrun |
8d926d5 to
fd7a124
Compare
|
/gcbrun |
|
/gcbrun |
ce8dd4b to
3ddce30
Compare
|
/gcbrun |
3ddce30 to
7e18f4c
Compare
|
/gcbrun |
7e18f4c to
b0ff581
Compare
|
/gcbrun |
b0ff581 to
1e40f0f
Compare
|
/gcbrun |
1e40f0f to
9b80aef
Compare
|
/gcbrun |
9b80aef to
3b617ce
Compare
|
/gcbrun |
3b617ce to
82b518a
Compare
|
/gcbrun |
|
/gcbrun |
1 similar comment
|
/gcbrun |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
|
please fix lint failure |
|
out of date |
… in severe errors (#4445) ## Description For SQL Server errors of severity 20 and above, the `mssql` and `cloud-sql-mssql` sources answer with only `SQL Server had internal error`: no error number, severity or message (#4444). go-mssqldb returns `mssql.ServerError` for these errors. Its `Error()` is that fixed text; the errors the server sent are kept in the `mssql.Error` it wraps. That error's own fields describe the *last* error, which is usually a consequence ("the session is in the kill state"); its `All` field lists every error from first to last, and the first is the cause. This PR adds `mssqlcommon.WithServerErrorDetails`, which `RunSQL` in both sources now applies at its two error returns (the query call and `results.Err()`). For an `mssql.ServerError` it appends every entry of `All`, in order, formatted from its fields, after the existing text, and keeps the original error wrapped, so `errors.As` still finds it. Every other error is returned unchanged. `RAISERROR('severe error text', 20, 1) WITH LOG` through `mssql-execute-sql`, before and after (SQL Server 2025 CU10): ```text before: error processing request: unable to execute query: SQL Server had internal error after: error processing request: unable to execute query: SQL Server had internal error: severe error text (error 50000, severity 20, state 1); Process ID 89 has raised user error 50000, severity 20. SQL Server is terminating this process. (error 2745, severity 16, state 2); Cannot continue the execution because the session is in the kill state. (error 596, severity 21, state 1) ``` Design notes: - The text is built from the fields, not from `mssql.Error.Error()`, whose format changes in go-mssqldb v1.11 (microsoft/go-mssqldb#250, which #4246 brings in). The output is the same on v1.10.0 and v1.11.2. - `error` is lower case on purpose: `util.ProcessGeneralError` classifies by `Error 401`, `Error 403` and `Error 429`, and SQL Server has errors with those numbers. A unit test checks that the category stays `AGENT_ERROR`. - The `SQL Server had internal error` prefix stays, for clients that match on it. - The helper lives in its own file in `internal/tools/mssql/mssqlcommon`, following `mysqlcommon`. #4284 adds `mssqlcommon.go` to the same package, so the two merge in either order. Testing: - Unit tests for the helper in `internal/tools/mssql/mssqlcommon/errors_test.go`. `mssql.ServerError` keeps the wrapped error in an unexported field, so the tests stand in for it with `errors.Join(mssql.Error{...}, mssql.ServerError{})`. - The Linux job of `tests.yaml` (build, both `go test -race` runs, coverage gate), the `go mod tidy` check, and golangci-lint v2.15.0 on the changed packages (0 issues), all in a `golang:1.27.3` container. - Coverage: the new `mssqlcommon` code is at 100%. `internal/sources/mssql` (8.2%) and `internal/sources/cloudsqlmssql` (7.9%) are the same as on `main`; `RunSQL`, where the two call sites are, is reached only by the integration tests. - Live, with Toolbox built from this branch with the repository's `Dockerfile`, against SQL Server 2025 CU10: both error returns (the query call above, and `results.Err()` via `SELECT 1 AS a; RAISERROR(...)`) now carry the chain. Severity 16 errors, divide by zero, result sets and multiple result sets are unchanged. The chain the helper formats is the same on SQL Server 2017 CU31, 2019 CU32, 2022 CU27 and 2025 CU10, with go-mssqldb v1.10.0 and v1.11.2 (details in #4444). - No integration test. Raising severity 19 and above `WITH LOG` needs a login in the sysadmin role or with `ALTER TRACE` (a plain login gets error 2778), and I don't know whether the CI logins have either. If they do, I can add one to `tests/mssql`. - `cloud-sql-mssql` gets the same change at the same two returns; I couldn't run it against Cloud SQL. Security: - No query is built or changed, and no user input reaches SQL. - The added text is SQL Server's own error messages, which Toolbox already returns for errors below severity 20. No credentials, connection strings or parameters are added. - No file paths, commands or auth checks are touched. ## PR Checklist - [x] Make sure you reviewed [CONTRIBUTING.md](https://github.com/googleapis/mcp-toolbox/blob/main/CONTRIBUTING.md) - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/mcp-toolbox/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure you have manually reviewed the entire diff before requesting a review - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary): no docs change needed - [ ] Make sure to add `!` if this involve a breaking change: not breaking; the existing text stays as the prefix 🛠️ Fixes #4444 --------- Co-authored-by: Anubhav Dhawan <[email protected]>
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
v1.18.4→v1.19.3v1.77.0→v1.86.1v1.50.0→v1.58.0v1.22.0→v1.26.0v1.32.0→v1.35.1v1.35.0→v1.38.1v2.23.0→v2.28.1v1.22.0→v1.29.2v1.5.0→v1.8.0v1.18.0→v1.21.1v1.2.0→v1.4.1v1.29.0→v1.32.1v1.15.0→v1.18.1v1.95.1→v1.96.1v1.62.3→v1.70.0v1.16.0→v1.18.1v2.46.0→v2.50.0v0.57.0→v0.62.0v1.33.0→v1.38.0v0.11.0→v0.11.4v3.8.0→v3.9.1v0.23.0→v0.25.0v2.12.4→v2.13.0v1.0.12→v1.2.0v9.3.3→v9.5.2v3.4.0→v3.5.0v10.30.3→v10.30.6v1.10.0→v1.10.1v0.50.0→v0.51.5v2.23.0→v2.27.0v5.10.0→v5.12.0v0.26.10→v0.26.22v1.10.0→v1.11.2v0.9.19→v0.9.23v6.1.0→v6.4.0v9.20.1→v9.23.0v1.18.2→v1.20.0v2.2.0→v2.3.0v0.43.0→v0.44.0v0.43.0→v0.44.0v0.43.0→v0.44.0v0.43.0→v0.44.0v0.43.0→v0.44.0v0.0.7→v0.0.9v0.333.0→v0.338.0v1.0.76→v1.0.79v2.7.0→v2.9.2v0.69.0→v0.72.0v1.45.0→v1.47.0v1.45.0→v1.47.0v1.45.0→v1.47.0v1.45.0→v1.47.0v1.45.0→v1.47.0v1.45.0→v1.47.0v1.45.0→v1.47.0v0.41.0→v0.42.0v0.36.0→v0.37.0v0.23.0→v0.24.0v0.287.1→v0.310.0v1.61.0→v1.77.0v1.83.2→v1.85.0v1.36.11→v1.36.12v1.52.0→v1.61.1Release Notes
googlecloudplatform/alloydb-go-connector (cloud.google.com/go/alloydbconn)
v1.19.3Compare Source
Bug Fixes
v1.19.2Compare Source
Bug Fixes
v1.19.1Compare Source
Bug Fixes
v1.19.0Compare Source
Features
v1.18.6Compare Source
Bug Fixes
v1.18.5Compare Source
Bug Fixes
googleapis/google-cloud-go (cloud.google.com/go/bigquery)
v1.86.1: spanner: v1.86.1Bug Fixes
v1.86.0: bigquery: v1.86.0Features
v1.85.0: bigquery: v1.85.0Features
Bug Fixes
v1.84.0: bigquery: v1.84.0Features
Bug Fixes
v1.83.0: bigquery: v1.83.0Features
v1.82.0: bigquery: v1.82.0Features
v1.81.0: bigquery: v1.81.0Features
v1.80.0: bigquery: v1.80.0Features
v1.79.1: bigquery: v1.79.1Bug Fixes
v1.79.0: bigquery: v1.79.0Features
v1.78.0: bigquery: v1.78.0Features
Bug Fixes
googlecloudplatform/cloud-sql-go-connector (cloud.google.com/go/cloudsqlconn)
v1.26.0Compare Source
Features
v1.25.4Compare Source
Bug Fixes
Security / CVE Fixes
Updates
golang.org/x/netfromv0.59.0tov0.61.0, resolving the following HTTP/2 vulnerabilities:golang.org/x/netv0.61.0golang.org/x/netv0.61.0golang.org/x/netv0.61.0golang.org/x/netv0.61.0golang.org/x/netv0.61.0v1.25.3Compare Source
Bug Fixes
v1.25.2Compare Source
Bug Fixes
v1.25.1Compare Source
Bug Fixes
v1.25.0Compare Source
Features
Bug Fixes
v1.24.0Compare Source
Features
Bug Fixes
v1.23.0Compare Source
Features
Bug Fixes
v1.22.1Compare Source
Bug Fixes
ClickHouse/clickhouse-go (github.com/ClickHouse/clickhouse-go/v2)
v2.50.0Compare Source
What's Changed
Improvements 🚀
Bug Fixes 🐛
Other Changes 🛠
New Contributors
Full Changelog: ClickHouse/clickhouse-go@v2.49.0...v2.50.0
v2.49.0Compare Source
What's Changed
Improvements 🚀
fmt.Stringerin server-side query parameter switch by @adamgonen in #2002Bug fixes 🐛
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.