Skip to content

Conversation

@timmartin-stripe
Copy link
Contributor

Context

This test was very slow and irritating me when running tests. Made the metrics collection interval configurable so that we could turn it down.

Checklist

  • ./gradlew build compiles code correctly
  • Added new tests where applicable
  • ./gradlew test passes all tests
  • Extended README or added javadocs where applicable

This test was very slow and irritating me when running tests.  Made the
metrics collection interval configurable so that we could turn it down.
@github-actions
Copy link

Test Results

152 files  ±0  152 suites  ±0   7m 32s ⏱️ - 1m 59s
661 tests ±0  650 ✅ +2  11 💤 ±0  0 ❌  - 2 
661 runs   - 1  650 ✅ +1  11 💤 ±0  0 ❌  - 2 

Results for commit c2395eb. ± Comparison against base commit 48e024a.

final MantisMasterGateway masterClientApi,
final AutoScaleMetricsConfig autoScaleMetricsConfig,
final JobAutoscalerManager jobAutoscalerManager,
final int metricsIntervalSeconds) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why does this need to be on WorkerMetricHandler? looks it only used in stageMetricDataOperator?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My thought process was that WorkerMetricHandler is responsible for instantiating the StageMetricDataOperator. The alternative would be to pass it in directly via the initAndGetMetricDataObserver method.

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