Skip to content

Conversation

BarryWu0812
Copy link

What is this PR for?

Removal of the deprecated "subsystem metrics" code:
https://yunikorn.apache.org/docs/1.5.0/metrics/queue

What type of PR is it?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-3087

How should this be tested?

Unit Test:

image

Screenshots (if appropriate)

Questions:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

@wilfred-s
Copy link
Contributor

Kicked off the pre-commit checks

@pbacsko
Copy link
Contributor

pbacsko commented Jun 10, 2025

@BarryWu0812 please check the formatting by running "make lint" locally.

@BarryWu0812
Copy link
Author

Hi @pbacsko , I have fixed the issue.

Copy link

codecov bot commented Jun 13, 2025

Codecov Report

Attention: Patch coverage is 93.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.67%. Comparing base (bf04bd4) to head (e8a98bb).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
pkg/metrics/queue.go 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1023      +/-   ##
==========================================
- Coverage   82.69%   82.67%   -0.02%     
==========================================
  Files          98       98              
  Lines       15682    15658      -24     
==========================================
- Hits        12968    12946      -22     
+ Misses       2439     2437       -2     
  Partials      275      275              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

appMetricsLabel *prometheus.GaugeVec
// Deprecated - To be removed in 1.7.0. Replaced with queue label Metrics
appMetricsSubsystem *prometheus.GaugeVec
appMetricsLabel *prometheus.GaugeVec
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: now we only have a single metrics for apps, so rename this to appMetrics

Copy link
Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@pbacsko pbacsko 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
Contributor

@wilfred-s wilfred-s left a comment

Choose a reason for hiding this comment

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

LGTM +1
committing the change

@wilfred-s wilfred-s closed this in 1a07ad7 Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants