Skip to content

metric: add more lint rules for metric panels#58436

Merged
ti-chi-bot[bot] merged 2 commits intopingcap:masterfrom
D3Hunter:panel-lint
Dec 20, 2024
Merged

metric: add more lint rules for metric panels#58436
ti-chi-bot[bot] merged 2 commits intopingcap:masterfrom
D3Hunter:panel-lint

Conversation

@D3Hunter
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #58435

Problem Summary:

What changed and how does it work?

see issue

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 20, 2024
@tiprow
Copy link

tiprow bot commented Dec 20, 2024

Hi @D3Hunter. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Details

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-sigs/prow repository.

"refId": "M"
}
],
"title": "Probe Success",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this and below panel don't have a title, not sure what's it used for, I add a temporary title based on the expression

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's a large change because the first row is open previously

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 20, 2024
@codecov
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.5387%. Comparing base (bf7016d) to head (b168758).
Report is 6 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #58436        +/-   ##
================================================
- Coverage   73.5677%   73.5387%   -0.0290%     
================================================
  Files          1681       1681                
  Lines        463846     464294       +448     
================================================
+ Hits         341241     341436       +195     
- Misses       101784     102043       +259     
+ Partials      20821      20815         -6     
Flag Coverage Δ
integration 43.3489% <ø> (?)
unit 72.3274% <ø> (-0.0100%) ⬇️

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

Components Coverage Δ
dumpling 52.6910% <ø> (ø)
parser ∅ <ø> (∅)
br 45.7594% <ø> (-0.0300%) ⬇️

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@jackysp jackysp 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 lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Dec 20, 2024
@ti-chi-bot
Copy link

ti-chi-bot bot commented Dec 20, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-12-20 08:29:31.178146002 +0000 UTC m=+1204761.266948544: ☑️ agreed by hawkingrei.
  • 2024-12-20 08:57:46.27951902 +0000 UTC m=+1206456.368321548: ☑️ agreed by jackysp.

@ti-chi-bot
Copy link

ti-chi-bot bot commented Dec 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hawkingrei, jackysp, wjhuang2016

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Dec 20, 2024
@D3Hunter
Copy link
Contributor Author

/retest

@tiprow
Copy link

tiprow bot commented Dec 20, 2024

@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/retest

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-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot merged commit ac60120 into pingcap:master Dec 20, 2024
@D3Hunter D3Hunter deleted the panel-lint branch December 23, 2024 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

define more lint rules for tidb metric panels

4 participants