Skip to content

Refine some include headers & add option ENABLE_FAILPOINTS (#2296)#2480

Closed
ti-srebot wants to merge 2 commits intopingcap:release-5.0from
ti-srebot:release-5.0-9d51ac4e0c64
Closed

Refine some include headers & add option ENABLE_FAILPOINTS (#2296)#2480
ti-srebot wants to merge 2 commits intopingcap:release-5.0from
ti-srebot:release-5.0-9d51ac4e0c64

Conversation

@ti-srebot
Copy link
Collaborator

@ti-srebot ti-srebot commented Jul 23, 2021

cherry-pick #2296 to release-5.0
You can switch your code base to this Pull Request by using git-extras:

# In tics repo:
git pr https://github.com/pingcap/tics/pull/2480

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/tics.git pr/2480:release-5.0-9d51ac4e0c64

What problem does this PR solve?

Issue Number: related to #2295

What is changed and how it works?

  • Only include these files when need:
    • <Common/Config/cpptoml.h>
    • <tipb/select.pb.h> in <Interpreters/TimezoneInfo.h>
    • <Flash/Coprocessor/DAGContext.h> in <Interpreters/Context.h>
  • Add "ENABLE_FAILPOINTS" so that we can build a release binary with failpoint enabled with
    cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS=OFF -DENABLE_FAILPOINTS=ON ..

This can remove dependency for some targets (page_storage for example) and make it easier to write and run unit tests.

Related changes

Check List

Tests

  • No code

Side effects

Release note

  • No release note

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot ti-srebot added CHERRY-PICK cherry pick status/LGT1 Indicates that a PR has LGTM 1. labels Jul 23, 2021
@ti-srebot ti-srebot added this to the v5.0.4 milestone Jul 23, 2021
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
@JaySon-Huang
Copy link
Contributor

/run-all-tests

@JaySon-Huang JaySon-Huang modified the milestones: v5.0.4, v5.0.5 Oct 11, 2021
@JaySon-Huang JaySon-Huang modified the milestones: v5.0.5, v5.0.6 Dec 1, 2021
@JaySon-Huang JaySon-Huang deleted the release-5.0-9d51ac4e0c64 branch December 17, 2021 08:15
@LittleFall
Copy link
Contributor

/reopen

@ti-chi-bot
Copy link
Member

@LittleFall: Failed to re-open PR: state cannot be changed. The pull request cannot be reopened.

Details

In response to this:

/reopen

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.

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

Labels

CHERRY-PICK cherry pick status/LGT1 Indicates that a PR has LGTM 1.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants