Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tidb,pd): remove race flag for failpoint target #522

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

wuhuizuo
Copy link
Contributor

@wuhuizuo wuhuizuo commented Jan 6, 2025

The failpoint target will only be used in testing env, I agreed with the testing team: agreed to remove the race option.

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
@ti-chi-bot ti-chi-bot bot requested a review from purelind January 6, 2025 09:53
Copy link

ti-chi-bot bot commented Jan 6, 2025

I have already done a preliminary review for you, and I hope to help you do a better job.

Based on the PR title and description, it seems the key change is removing the WITH_RACE flag from the failpoint target in the packages.yaml.tmpl file. The diff shows that the flag is removed from both components of the failpoint target in the file.

As for potential problems, it's hard to say without more context. However, if the WITH_RACE flag was added intentionally to enable race detection in the code, then removing it could potentially lead to undetected race conditions in the future.

To address this, the PR author should explain in the description why the WITH_RACE flag is being removed and confirm that it's not needed for race detection. If race detection is still needed, then the PR author should explain how it will be performed without the WITH_RACE flag.

Assuming there are no issues with the removal of the WITH_RACE flag, my suggestion for fixing this PR would be to add a comment in the packages.yaml.tmpl file explaining why the flag was removed and confirming that it's not needed for race detection. For example, the comment could say something like:

# Removed WITH_RACE flag from failpoint target as it's not needed for race detection

@ti-chi-bot ti-chi-bot bot added the size/XS label Jan 6, 2025
@wuhuizuo
Copy link
Contributor Author

wuhuizuo commented Jan 6, 2025

/review default

Copy link

ti-chi-bot bot commented Jan 6, 2025

@wuhuizuo:

I have already done a preliminary review for you, and I hope to help you do a better job.

Based on the pull request title and description, it seems that the changes are related to removing the race option in the failpoint target, which is only used in the testing environment.

The actual code changes are located in the packages.yaml.tmpl file, where the WITH_RACE flag has been removed from the failpoint target.

Potential problems:

  • It is not clear why the WITH_RACE flag was added in the first place. If it was added to solve a specific problem, removing it may cause issues in the future.
  • It is not specified which testing team agreed to remove the race flag. If this decision was made without proper consultation, it may cause confusion among team members.

Fixing suggestions:

  • If the WITH_RACE flag was added to solve a specific problem, it would be helpful to include a brief explanation in the pull request description.
  • To avoid confusion, it would be good to specify which testing team made the decision to remove the race flag. Additionally, it would be helpful to explain why this decision was made.

In response to this:

/review default

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.

@wuhuizuo
Copy link
Contributor Author

wuhuizuo commented Jan 6, 2025

/cc @stevenayu

@ti-chi-bot ti-chi-bot bot requested a review from stevenayu January 6, 2025 10:01
@wuhuizuo
Copy link
Contributor Author

wuhuizuo commented Jan 6, 2025

/approve

Copy link

ti-chi-bot bot commented Jan 6, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wuhuizuo

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:

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 the approved label Jan 6, 2025
@ti-chi-bot ti-chi-bot bot merged commit 738ed49 into main Jan 6, 2025
3 checks passed
@ti-chi-bot ti-chi-bot bot deleted the fix/remove-race-goflag-for-failpoint branch January 6, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant