Skip to content

tests: Fix foreign key tests with tidb configs - #11029

Merged
ti-chi-bot[bot] merged 4 commits into
pingcap:masterfrom
JaySon-Huang:fix_fk_test
Aug 11, 2026
Merged

tests: Fix foreign key tests with tidb configs#11029
ti-chi-bot[bot] merged 4 commits into
pingcap:masterfrom
JaySon-Huang:fix_fk_test

Conversation

@JaySon-Huang

@JaySon-Huang JaySon-Huang commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #11028

Problem Summary: after pingcap/tidb#70328, tiflash integration tests failed

What is changed and how it works?

tests: Fix foreign key tests with tidb configs

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None

Summary by CodeRabbit

  • Chores
    • Removed deprecated Docker Compose version declarations from classic test configurations.
    • Updated test configuration links to use the classic YAML configurations.
    • Preserved existing service definitions and runtime settings.
    • Improved builds using the next-generation columnar engine by suppressing deprecated Rust compiler warnings when applicable.
  • Tests
    • Aligned full-stack and CI test scenarios with the updated classic configuration paths.

@ti-chi-bot

ti-chi-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot Bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. labels Aug 10, 2026
@JaySon-Huang
JaySon-Huang marked this pull request as ready for review August 10, 2026 07:35
@ti-chi-bot ti-chi-bot Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Aug 10, 2026
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 663aaf26-6ef4-4c2a-b5ea-96a887666e75

📥 Commits

Reviewing files that changed from the base of the PR and between d0b1595 and b385fee.

📒 Files selected for processing (1)
  • contrib/tiflash-proxy-cmake/CMakeLists.txt

📝 Walkthrough

Walkthrough

The change removes Docker Compose version declarations from classic YAML test configurations, updates fullstack and TiDB CI links to those configurations, and suppresses Rust deprecation warnings for selected LLVM builds.

Changes

Classic YAML migration

Layer / File(s) Summary
Remove Compose version declarations
tests/docker/classic-yaml/*.yaml
Classic YAML configurations remove the top-level version: '2.3' declaration.
Relink test configurations
tests/fullstack-test/*.yaml, tests/fullstack-test2/*.yaml, tests/tidb-ci/*.yaml
Symbolic links now target configurations under tests/docker/classic-yaml.

Rust warning suppression

Layer / File(s) Summary
Configure Rust warning flags
contrib/tiflash-proxy-cmake/CMakeLists.txt
LLVM next-generation columnar builds add -A deprecated to TIFLASH_RUSTFLAGS.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: yongman

Poem

A rabbit trims old YAML lines,
Then follows classic path designs.
Rust warnings hop away,
While builds proceed each day.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the problem, issue, changes, checklist sections, and release note, but no test checklist item is selected. Select the applicable test checklist item, such as Integration test, to satisfy the repository template.
Out of Scope Changes check ⚠️ Warning The CMake change suppresses Rust deprecation warnings and is unrelated to the linked foreign key integration test issue. Move the unrelated TIFLASH_RUSTFLAGS change to a separate pull request.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the primary test configuration changes that address the foreign key integration test failure.
Linked Issues check ✅ Passed The configuration and symlink changes align with issue #11028 by updating TiDB integration tests to use compatible classic YAML configurations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@windtalker windtalker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ti-chi-bot ti-chi-bot Bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Aug 10, 2026
@ti-chi-bot

ti-chi-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JinheLin, windtalker

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

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [JinheLin,windtalker]

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

@ti-chi-bot ti-chi-bot Bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Aug 10, 2026
@ti-chi-bot

ti-chi-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

[LGTM Timeline notifier]

Timeline:

  • 2026-08-10 07:43:52.076159031 +0000 UTC m=+3032418.112254077: ☑️ agreed by windtalker.
  • 2026-08-10 07:54:07.697149229 +0000 UTC m=+3033033.733244275: ☑️ agreed by JinheLin.

@JaySon-Huang

Copy link
Copy Markdown
Contributor Author

/test pull-integration-test

@JaySon-Huang

Copy link
Copy Markdown
Contributor Author

/test pull-integration-test

@ti-chi-bot ti-chi-bot Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 10, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/tidb-ci/cluster.yaml`:
- Line 1: Update the tidb-ci/cluster.yaml symlink to target the
fail-point-enabled cluster composition instead of classic-yaml/cluster.yaml,
preserving the tidb0 image and environment required by tidb-ci/fail-point-tests.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9f27e552-2d2b-45e0-b8d1-6151d3044486

📥 Commits

Reviewing files that changed from the base of the PR and between 44df8bd and 3e8ccda.

📒 Files selected for processing (23)
  • tests/docker/classic-yaml/cluster.yaml
  • tests/docker/classic-yaml/cluster_disable_new_collation.yaml
  • tests/docker/classic-yaml/cluster_new_collation.yaml
  • tests/docker/classic-yaml/cluster_tidb_fail_point.yaml
  • tests/docker/classic-yaml/tiflash-dt-disable-encrypt.yaml
  • tests/docker/classic-yaml/tiflash-dt-disable-local-tunnel.yaml
  • tests/docker/classic-yaml/tiflash-dt-force-enable-lm.yaml
  • tests/docker/classic-yaml/tiflash-dt-lightweight-compression.yaml
  • tests/docker/classic-yaml/tiflash-dt-sync-grpc.yaml
  • tests/docker/classic-yaml/tiflash-dt.yaml
  • tests/fullstack-test/cluster.yaml
  • tests/fullstack-test/tiflash-dt-sync-grpc.yaml
  • tests/fullstack-test/tiflash-dt.yaml
  • tests/fullstack-test2/cluster.yaml
  • tests/fullstack-test2/tiflash-dt-disable-encrypt.yaml
  • tests/fullstack-test2/tiflash-dt-disable-local-tunnel.yaml
  • tests/fullstack-test2/tiflash-dt.yaml
  • tests/tidb-ci/cluster.yaml
  • tests/tidb-ci/cluster_disable_new_collation.yaml
  • tests/tidb-ci/cluster_new_collation.yaml
  • tests/tidb-ci/tiflash-dt-force-enable-lm.yaml
  • tests/tidb-ci/tiflash-dt-lightweight-compression.yaml
  • tests/tidb-ci/tiflash-dt.yaml
💤 Files with no reviewable changes (10)
  • tests/docker/classic-yaml/cluster.yaml
  • tests/docker/classic-yaml/cluster_new_collation.yaml
  • tests/docker/classic-yaml/tiflash-dt-force-enable-lm.yaml
  • tests/docker/classic-yaml/tiflash-dt-disable-encrypt.yaml
  • tests/docker/classic-yaml/cluster_disable_new_collation.yaml
  • tests/docker/classic-yaml/tiflash-dt.yaml
  • tests/docker/classic-yaml/tiflash-dt-sync-grpc.yaml
  • tests/docker/classic-yaml/tiflash-dt-lightweight-compression.yaml
  • tests/docker/classic-yaml/tiflash-dt-disable-local-tunnel.yaml
  • tests/docker/classic-yaml/cluster_tidb_fail_point.yaml

Comment thread tests/tidb-ci/cluster.yaml Outdated
@JaySon-Huang

Copy link
Copy Markdown
Contributor Author

/test pull-integration-test

2 similar comments
@JaySon-Huang

Copy link
Copy Markdown
Contributor Author

/test pull-integration-test

@JaySon-Huang

Copy link
Copy Markdown
Contributor Author

/test pull-integration-test

Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <tshent@qq.com>
@JaySon-Huang

Copy link
Copy Markdown
Contributor Author

/test pull-integration-test

1 similar comment
@JaySon-Huang

Copy link
Copy Markdown
Contributor Author

/test pull-integration-test

@ti-chi-bot
ti-chi-bot Bot merged commit 5f9e0d7 into pingcap:master Aug 11, 2026
9 of 11 checks passed
@JaySon-Huang
JaySon-Huang deleted the fix_fk_test branch August 11, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

foreign_key_shared_lock_wide_row.test failed in next-gen tests

3 participants