Skip to content

Release 8.5 20260225 v8.5.2#67474

Open
ClamChowderTiDB wants to merge 63 commits intopingcap:release-8.5-20260225-v8.5.2from
ClamChowderTiDB:release-8.5-20260225-v8.5.2
Open

Release 8.5 20260225 v8.5.2#67474
ClamChowderTiDB wants to merge 63 commits intopingcap:release-8.5-20260225-v8.5.2from
ClamChowderTiDB:release-8.5-20260225-v8.5.2

Conversation

@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator

@ClamChowderTiDB ClamChowderTiDB commented Mar 31, 2026

Release 8.5 20260225 v8.5.2

What problem does this PR solve?

Release 8.5 20260225 v8.5.2

Issue Number: close #xxx

Problem Summary:

What changed and how does it work?

Check List

Release 8.5 20260225 v8.5.2

Release note

Release 8.5 20260225 v8.5.2

Summary by CodeRabbit

  • New Features

    • ALTER DATABASE/SCHEMA ... READ ONLY with info-schema visibility, new error codes, and enforcement of write-blocking (with a privileged bypass).
    • BR: new hidden operator commands — force-flush and checksum-as.
    • BR: memory monitor and status endpoint exposing /metrics.
  • Improvements

    • Expanded BR/RawKV/restore Prometheus metrics and registration.
    • Lightning: customizable ON DUPLICATE resolution and per-engine region sizing.
    • Restore: support for applying TiKV config override files.

ClamChowderTiDB and others added 30 commits March 27, 2026 17:56
X-Original-Commit: 2acac1f
X-Original-Commit: da77778
X-Original-Commit: 20fcc24
X-Original-Commit: d6cedfb65c5009175a4a76b8e6bb09a946c8e827
X-Original-Commit: a108cf3dd784589eeb040c242abe1b7bb1b25df4
X-Original-Commit: a35eab239a35d2dda83598614c6e72c253dc4bc6
…emove some unused code.

X-Original-Commit: 5dc66519fc39a75e098dd5d13f6542ddc311532a
…61090)

X-Original-Commit: b6a6e7336ba663549af921e420784b99950289d5
X-Original-Commit: 38b45fb3150a3ddf50eab6b9afab2e032059618d
X-Original-Commit: dd557092ba7086d90997c9c0b5c07eaf7491ad57
@tiprow
Copy link
Copy Markdown

tiprow Bot commented Apr 2, 2026

@ClamChowderTiDB: No presubmit jobs available for pingcap/tidb@release-8.5-20260225-v8.5.2

Details

In response to this:

/test pull-br-integration-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator Author

/test pull-br-integration-test

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Apr 2, 2026

@ClamChowderTiDB: No presubmit jobs available for pingcap/tidb@release-8.5-20260225-v8.5.2

Details

In response to this:

/test pull-br-integration-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

ClamChowderTiDB and others added 5 commits April 2, 2026 17:30
…ed DEPS.bzl

fix_go_mod.py adds proxy.golang.org as a fallback URL for cherry-picked
modules that are not in PingCap's Bazel caches. The mirror tool was
overwriting these entries during `make gogenerate`, stripping the proxy
URL and causing the genfiles check to fail.

Two fixes:
- "Reuse old mirror" branch: output all URLs from the existing entry
  verbatim instead of hardcoding the 4 PingCap URLs, preserving any
  proxy URL appended by add_proxy_urls_from_diff (e.g. kvproto).
- isMirror branch: append proxy.golang.org as a 5th URL for modules
  that land here (e.g. ClamChowderTiDB fork modules whose DEPS.bzl
  entry was replaced with just a proxy URL by update_deps_bzl_entry).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ClamChowderTiDB ClamChowderTiDB force-pushed the release-8.5-20260225-v8.5.2 branch from df2fdb0 to 6854b2d Compare April 2, 2026 21:30
ClamChowderTiDB and others added 2 commits April 2, 2026 18:02
…ard_count

mirror.go: add proxy URL fallback to reuseOldMirror condition so that
entries written by fix_go_mod.py with only a proxy.golang.org URL (e.g.
ClamChowderTiDB fork modules client-go, pd/client) are preserved as-is
during make gogenerate instead of being regenerated with PingCap mirror
URLs that don't host the fork zips.

br/pkg/task/BUILD.bazel: update shard_count 39→40 to match gazelle output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator Author

/test build

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Apr 2, 2026

@ClamChowderTiDB: No presubmit jobs available for pingcap/tidb@release-8.5-20260225-v8.5.2

Details

In response to this:

/test build

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

ClamChowderTiDB and others added 3 commits April 2, 2026 18:29
maybeGetDownloadableArtifact never parsed the urls= kwarg, leaving
existingMirrors always empty. This caused isMirror to regenerate every
entry with 4 PingCap + proxy URLs, while the committed DEPS.bzl had
either 4 PingCap-only or proxy-only entries, causing check-bazel-prepare
to always fail.

With urls properly parsed, existingMirrors is populated and reuseOldMirror
correctly fires for all existing entries, preserving their URLs verbatim.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adding proxy as a 5th URL in the isMirror branch caused check-bazel-prepare
to fail: the isMirror branch runs for all entries when existingMirrors is
empty (skylarkutil was not parsing urls), generating 4 PingCap + proxy while
committed DEPS.bzl has only 4 PingCap — causing a diff for every entry.

The skylarkutil urls-parsing fix makes reuseOldMirror work for existing
entries (both standard 4-PingCap and fork proxy-only), so isMirror only
fires for genuinely new modules. For those, 4 PingCap URLs is the correct
output (same as original upstream behavior).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gazelle runs before the mirror in make bazel_ci_prepare and rewrites
DEPS.bzl, stripping all urls= entries (converting to sum/version format).
The mirror then reads the on-disk file and sees no URLs, so existingMirrors
is empty and reuseOldMirror never fires. For cherry-picked modules whose
PingCap mirror URLs return 404 (kvproto, client-go, pd/client), the
generated DEPS.bzl ends up with no proxy fallback, causing tazel to fail.

Fix: read DEPS.bzl from git HEAD before gazelle touched it. This gives
reuseOldMirror the correct URL lists (including proxy URLs added by
fix_go_mod.py), so the mirror preserves those entries verbatim.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator Author

/test pull-br-integration-test

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Apr 2, 2026

@ClamChowderTiDB: No presubmit jobs available for pingcap/tidb@release-8.5-20260225-v8.5.2

Details

In response to this:

/test pull-br-integration-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

ClamChowderTiDB and others added 2 commits April 2, 2026 20:00
PingCap's pd-server v8.5.x does not implement the
/pd/api/v1/admin/cluster/markers/pitr-restore-mode HTTP endpoint.
SetPitrRestoreMark returned 404, causing every RESTORE DATABASE SQL
statement to fail unconditionally in the brietest suite.

Treat a 404 response as "endpoint not supported by this PD version",
log a warning, and proceed without setting the mark.  The mark is only
meaningful for PD servers that actually implement it, so skipping it on
older deployments is safe.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Simplify if/else to satisfy the all_revive nogo linter.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 3, 2026

[FORMAT CHECKER NOTIFICATION]

Notice: To remove the do-not-merge/invalid-title label, please follow title format, for example pkg [, pkg2, pkg3]: what is changed or *: what is changed.

📖 For more info, you can check the "Contribute Code" section in the development guide.

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 3, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign 3pointer, d3hunter, lance6716, winoros, yudongusa, zanmato1984 for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator Author

/test pull-check
/test mysql-test

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Apr 3, 2026

@ClamChowderTiDB: No presubmit jobs available for pingcap/tidb@release-8.5-20260225-v8.5.2

Details

In response to this:

/test pull-check
/test mysql-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator Author

/test check-dev

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Apr 3, 2026

@ClamChowderTiDB: No presubmit jobs available for pingcap/tidb@release-8.5-20260225-v8.5.2

Details

In response to this:

/test check-dev

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator Author

/test build

@tiprow
Copy link
Copy Markdown

tiprow Bot commented Apr 3, 2026

@ClamChowderTiDB: No presubmit jobs available for pingcap/tidb@release-8.5-20260225-v8.5.2

Details

In response to this:

/test build

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ClamChowderTiDB
Copy link
Copy Markdown
Collaborator Author

/retest

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented Apr 16, 2026

@ClamChowderTiDB: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
idc-jenkins-ci-tidb/unit-test 09fdc29 link true /test unit-test
pull-unit-test-ddlv1 09fdc29 link true /test pull-unit-test-ddlv1

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/dumpling This is related to Dumpling of TiDB. do-not-merge/invalid-title do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. sig/planner SIG: Planner size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants