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

create systemd dir when use systemd user mode #2373

Merged
merged 4 commits into from
Jan 31, 2024
Merged

Conversation

Yujie-Xie
Copy link
Collaborator

What problem does this PR solve?

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has exported function/method change
  • Has exported variable/fields change
  • Has interface methods change
  • Has persistent data change

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

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

Release notes:

NONE

@ti-chi-bot ti-chi-bot bot requested a review from nexustar January 29, 2024 10:24
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 29, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (271d5ea) 55.77% compared to head (b56adbe) 45.74%.

❗ Current head b56adbe differs from pull request most recent head 117bd13. Consider uploading reports for the commit 117bd13 to get more accurate results

Files Patch % Lines
pkg/cluster/manager/builder.go 0.00% 3 Missing ⚠️
pkg/cluster/manager/deploy.go 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2373       +/-   ##
===========================================
- Coverage   55.77%   45.74%   -10.03%     
===========================================
  Files         329      329               
  Lines       35020    35024        +4     
===========================================
- Hits        19531    16020     -3511     
- Misses      13145    17052     +3907     
+ Partials     2344     1952      -392     
Flag Coverage Δ
cluster 30.91% <0.00%> (-14.37%) ⬇️
dm 19.30% <0.00%> (-6.26%) ⬇️
tiup 33.60% <ø> (ø)
unittest 22.24% <0.00%> (-<0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 30, 2024
// Delete systemd directory when use systemd user mode
if gOpts.SystemdMode == spec.UserMode {
for host := range instCount {
if err := DeleteSystemdDir(ctx, host, gOpts); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

don't delete it, user may have some custom service

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

get

@ti-chi-bot ti-chi-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 30, 2024
Copy link
Collaborator

@kaaaaaaang kaaaaaaang left a comment

Choose a reason for hiding this comment

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

/lgtm

@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 30, 2024
@kaaaaaaang
Copy link
Collaborator

/approve

@ti-chi-bot ti-chi-bot bot added the approved label Jan 31, 2024
@kaaaaaaang kaaaaaaang added this to the v1.15.0 milestone Jan 31, 2024
@ti-chi-bot ti-chi-bot bot removed the lgtm label Jan 31, 2024
Copy link
Contributor

ti-chi-bot bot commented Jan 31, 2024

@Yujie-Xie: 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.

@kaaaaaaang
Copy link
Collaborator

/lgtm

@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 31, 2024
Copy link
Contributor

ti-chi-bot bot commented Jan 31, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-01-30 08:27:22.359203846 +0000 UTC m=+1467683.923501551: ☑️ agreed by kaaaaaaang.
  • 2024-01-31 03:14:59.982112057 +0000 UTC m=+1535341.546409937: ✖️🔁 reset by ti-chi-bot[bot].
  • 2024-01-31 03:24:37.873761732 +0000 UTC m=+1535919.438059437: ☑️ agreed by kaaaaaaang.

@kaaaaaaang
Copy link
Collaborator

/approve

Copy link
Contributor

ti-chi-bot bot commented Jan 31, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaaaaaaang

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 merged commit c72f4e0 into master Jan 31, 2024
19 checks passed
@ti-chi-bot ti-chi-bot bot deleted the create-systemd-dir branch January 31, 2024 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants