tidb icon indicating copy to clipboard operation
tidb copied to clipboard

session,executor: get back the error stack information from a regression

Open tiancaiamao opened this issue 1 year ago • 7 comments
trafficstars

What problem does this PR solve?

Issue Number: close #50849

Problem Summary:

What changed and how does it work?

The standard errors.Join(err1, err2) turn the error into another kind, losing the error stack information. Avoid using this API.

Check List

Tests

  • [X] Unit test
  • [ ] Integration test
  • [ ] Manual test (add detailed scripts or steps below)
  • [ ] No need to test
    • [ ] I checked and no code files have been changed.

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

Please refer to Release Notes Language Style Guide to write a quality release note.

None

tiancaiamao avatar Jan 31 '24 16:01 tiancaiamao

Hi @tiancaiamao. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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/test-infra repository.

tiprow[bot] avatar Jan 31 '24 16:01 tiprow[bot]

Codecov Report

Merging #50857 (0f563bf) into master (c76fe3f) will decrease coverage by 12.4712%. Report is 175 commits behind head on master. The diff coverage is 100.0000%.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #50857         +/-   ##
=================================================
- Coverage   70.5619%   58.0908%   -12.4712%     
=================================================
  Files          1466       1586        +120     
  Lines        433823     634947     +201124     
=================================================
+ Hits         306114     368846      +62732     
- Misses       108537     243834     +135297     
- Partials      19172      22267       +3095     
Flag Coverage Δ
integration 40.8686% <100.0000%> (?)
unit 73.7333% <100.0000%> (+3.3498%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 54.3196% <ø> (+0.0256%) :arrow_up:
parser ∅ <ø> (∅)
br 54.3181% <ø> (+8.5432%) :arrow_up:

codecov[bot] avatar Jan 31 '24 17:01 codecov[bot]

/retest-required

tiancaiamao avatar Feb 20 '24 07:02 tiancaiamao

@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest-required

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/test-infra repository.

tiprow[bot] avatar Feb 20 '24 07:02 tiprow[bot]

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hawkingrei, XuHuaiyu

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • ~~OWNERS~~ [XuHuaiyu,hawkingrei]

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[bot] avatar Feb 22 '24 05:02 ti-chi-bot[bot]

[LGTM Timeline notifier]

Timeline:

  • 2024-02-01 02:31:41.542410817 +0000 UTC m=+1619143.106708519: :ballot_box_with_check: agreed by XuHuaiyu.
  • 2024-02-22 05:26:11.259304379 +0000 UTC m=+507660.006927483: :ballot_box_with_check: agreed by hawkingrei.

ti-chi-bot[bot] avatar Feb 22 '24 05:02 ti-chi-bot[bot]

/retest-required

tiancaiamao avatar Feb 28 '24 08:02 tiancaiamao

@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest-required

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/test-infra repository.

tiprow[bot] avatar Feb 28 '24 08:02 tiprow[bot]

/retest-required

tiancaiamao avatar Feb 29 '24 02:02 tiancaiamao

@tiancaiamao: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest-required

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/test-infra repository.

tiprow[bot] avatar Feb 29 '24 02:02 tiprow[bot]

/test check-issue-triage-complete

tiancaiamao avatar Feb 29 '24 04:02 tiancaiamao

@tiancaiamao: The specified target(s) for /test were not found. The following commands are available to trigger required jobs:

  • /test build
  • /test check-dev
  • /test check-dev2
  • /test mysql-test
  • /test pull-integration-ddl-test
  • /test pull-lightning-integration-test
  • /test pull-mysql-client-test
  • /test unit-test

The following commands are available to trigger optional jobs:

  • /test canary-notify-when-compatibility-sections-changed
  • /test pingcap/tidb/canary_ghpr_unit_test
  • /test pull-br-integration-test
  • /test pull-common-test
  • /test pull-e2e-test
  • /test pull-integration-common-test
  • /test pull-integration-copr-test
  • /test pull-integration-jdbc-test
  • /test pull-integration-mysql-test
  • /test pull-integration-nodejs-test
  • /test pull-sqllogic-test
  • /test pull-tiflash-test

Use /test all to run the following jobs that were automatically triggered:

  • pingcap/tidb/ghpr_build
  • pingcap/tidb/ghpr_check
  • pingcap/tidb/ghpr_check2
  • pingcap/tidb/ghpr_mysql_test
  • pingcap/tidb/ghpr_unit_test
  • pingcap/tidb/pull_integration_ddl_test
  • pingcap/tidb/pull_mysql_client_test

In response to this:

/test check-issue-triage-complete

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/test-infra repository.

ti-chi-bot[bot] avatar Feb 29 '24 04:02 ti-chi-bot[bot]

/ok-to-test

tiancaiamao avatar Feb 29 '24 04:02 tiancaiamao

@tiancaiamao: The specified target(s) for /test were not found. The following commands are available to trigger required jobs:

  • /test fast_test_tiprow
  • /test tidb_parser_test

Use /test all to run all jobs.

In response to this:

/test check-issue-triage-complete

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/test-infra repository.

tiprow[bot] avatar Feb 29 '24 04:02 tiprow[bot]

@tiancaiamao: 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
tiprow_fast_test 0f563bfe522c3b162a065eba8e33984d1b4d8669 link true /test tiprow_fast_test
fast_test_tiprow 0f563bfe522c3b162a065eba8e33984d1b4d8669 link true /test fast_test_tiprow
tidb_parser_test 0f563bfe522c3b162a065eba8e33984d1b4d8669 link true /test tidb_parser_test

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

tiprow[bot] avatar Feb 29 '24 04:02 tiprow[bot]

/check-issue-triage-complete

tiancaiamao avatar Feb 29 '24 04:02 tiancaiamao