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: generate tiflash config hash by combining tiflash config and proxy config #6027

Open
wants to merge 3 commits into
base: feature/v2
Choose a base branch
from

Conversation

fgksgf
Copy link
Contributor

@fgksgf fgksgf commented Jan 9, 2025

What problem does this PR solve?

What is changed and how does it work?

Code changes

  • Has Go code change
  • Has CI related scripts change

Tests

  • Unit test
  • E2E test
  • Manual test
  • No code

Side effects

  • Breaking backward compatibility
  • Other side effects:

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release Notes

Please refer to Release Notes Language Style Guide before writing the release note.


@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 53.09%. Comparing base (dadd7c5) to head (2ebfcf3).

Additional details and impacted files
@@              Coverage Diff               @@
##           feature/v2    #6027      +/-   ##
==============================================
+ Coverage       53.07%   53.09%   +0.01%     
==============================================
  Files             154      154              
  Lines            9445     9448       +3     
==============================================
+ Hits             5013     5016       +3     
  Misses           4432     4432              
Flag Coverage Δ
unittest 53.09% <81.81%> (+0.01%) ⬆️

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

@@ -24,3 +29,7 @@ func PersistentVolumeClaimName(tiflashName string, volIndex int) string {
// ref: https://github.com/pingcap/tidb-operator/blob/486cc85c8380efc4f36b3125a1abba9e3146a2c8/pkg/apis/pingcap/v1alpha1/helpers.go#L105
return fmt.Sprintf("data%d-%s", volIndex, tiflashName)
}

func combineConfigFile(cfg1, cfg2 v1alpha1.ConfigFile) v1alpha1.ConfigFile {
return v1alpha1.ConfigFile(strings.Join([]string{string(cfg1), string(cfg2)}, "\n"))
Copy link
Member

Choose a reason for hiding this comment

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

use a separator which will never appear in config file

@fgksgf fgksgf force-pushed the huaxi/fix-tiflash-config branch from 00a0a96 to 0ad7003 Compare January 9, 2025 14:32
@ti-chi-bot ti-chi-bot bot added size/S and removed size/M labels Jan 9, 2025
@liubog2008 liubog2008 added the v2 for operator v2 label Jan 10, 2025
@ti-chi-bot ti-chi-bot bot added size/L and removed size/S labels Jan 10, 2025
Copy link
Contributor

ti-chi-bot bot commented Jan 10, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liubog2008

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

@liubog2008
Copy link
Member

/run-pull-e2e-kind-v2

@ti-chi-bot ti-chi-bot bot removed the lgtm label Jan 10, 2025
Copy link
Contributor

ti-chi-bot bot commented Jan 10, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-01-10 02:42:07.951816823 +0000 UTC m=+494271.240648528: ☑️ agreed by liubog2008.
  • 2025-01-10 02:42:42.621529672 +0000 UTC m=+494305.910361377: ✖️🔁 reset by ti-chi-bot[bot].

Copy link
Contributor

ti-chi-bot bot commented Jan 10, 2025

New changes are detected. LGTM label has been removed.

Copy link
Contributor

ti-chi-bot bot commented Jan 10, 2025

@fgksgf: Your PR was out of date, I have automatically updated it for you.

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 ti-community-infra/tichi repository.

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.

3 participants