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

tikv: fix code coverage script #2748

Merged
merged 2 commits into from
Jan 17, 2024
Merged

Conversation

glorv
Copy link
Contributor

@glorv glorv commented Jan 16, 2024

After this change we still need to wait tikv to update the rust toolchain to a newer version before this script can succeed due to rust-lang/rust#118850

@ti-chi-bot ti-chi-bot bot requested review from jayl1e and wuhuizuo January 16, 2024 06:26
Copy link

ti-chi-bot bot commented Jan 16, 2024

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

  • The RUSTFLAGS environment variable has been updated from -Zinstrument-coverage to -C instrument-coverage.

Potential problems:

  • The pull request mentions that the script may not succeed until Tikv updates the Rust toolchain to a newer version due to an issue with rust-lang/rust (#118850).
  • The change itself does not seem to address any issue with the code coverage script, but rather just updates the flags used to compile Rust code.

Fixing suggestions:

  • It may be worth clarifying in the pull request description whether the change is expected to address any issue with the script or if it is just a necessary update for future compatibility with Tikv and the Rust toolchain.
  • If there are issues with the script, more context about the issue and any debugging efforts could be helpful to understand the motivation behind the change.

@ti-chi-bot ti-chi-bot bot added the size/XS label Jan 16, 2024
@glorv
Copy link
Contributor Author

glorv commented Jan 16, 2024

/cc @purelind @Connor1996

@ti-chi-bot ti-chi-bot bot requested a review from purelind January 16, 2024 06:27
Copy link

ti-chi-bot bot commented Jan 16, 2024

@glorv: GitHub didn't allow me to request PR reviews from the following users: Connor1996.

Note that only PingCAP-QE members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @purelind @Connor1996

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.

@glorv
Copy link
Contributor Author

glorv commented Jan 16, 2024

/cc @overvenus

@ti-chi-bot ti-chi-bot bot requested a review from overvenus January 16, 2024 06:27
@@ -64,12 +64,12 @@ stage("Cover") {
export FAIL_POINT=1
export ROCKSDB_SYS_SSE=1
export CARGO_INCREMENTAL=0
export RUSTFLAGS="-Zinstrument-coverage"
export RUSTFLAGS="-C instrument-coverage"
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the difference

Copy link
Contributor Author

@glorv glorv Jan 16, 2024

Choose a reason for hiding this comment

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

-Zinstrument-coverage is not supported anymore. -Z is for unstable flags

Copy link
Contributor

@Connor1996 Connor1996 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

ti-chi-bot bot commented Jan 17, 2024

@Connor1996: changing LGTM is restricted to collaborators

In response to this:

LGTM

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.

Copy link

ti-chi-bot bot commented Jan 17, 2024

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

This pull request is updating the tikv_ghpr_coverage.groovy script by changing the RUSTFLAGS environment variable from "-Zinstrument-coverage" to "-C instrument-coverage". This change is made to fix the code coverage script.

Potential Problems:

The pull request does not mention any potential problems. However, the pull request description indicates that the script will not work until tikv updates the rust toolchain to a newer version.

Fixing Suggestions:

The pull request looks good, but the contributor should add more information about the issue that the pull request is solving. Also, the contributor should mention the new version of rust that is required for this script to work. Additionally, it would be helpful to mention how the code coverage script was failing before this change.

Copy link
Collaborator

@purelind purelind left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

ti-chi-bot bot commented Jan 17, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-01-17 09:47:48.791664744 +0000 UTC m=+349310.355962450: ☑️ agreed by purelind.

Copy link

ti-chi-bot bot commented Jan 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Connor1996, purelind

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 17, 2024
@ti-chi-bot ti-chi-bot bot merged commit 3cf73f3 into PingCAP-QE:main Jan 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants