Skip to content

Add metrics for compute type used#2879

Merged
andrewnester merged 5 commits intomainfrom
track-compute-metrics
May 14, 2025
Merged

Add metrics for compute type used#2879
andrewnester merged 5 commits intomainfrom
track-compute-metrics

Conversation

@andrewnester
Copy link
Copy Markdown
Contributor

Changes

Add metrics for compute type used

Why

This allows us to track which compute (serverless or classic and which type) is used in bundle tasks.

Tests

Added acceptance test

Comment thread acceptance/bundle/telemetry/deploy-compute-type/output.txt Outdated
@andrewnester andrewnester requested a review from denik May 14, 2025 12:04
@andrewnester andrewnester enabled auto-merge May 14, 2025 12:43
@andrewnester andrewnester added this pull request to the merge queue May 14, 2025
@denik denik removed this pull request from the merge queue due to a manual request May 14, 2025
Comment thread bundle/metrics/track_used_compute.go Outdated
if task.ExistingClusterId != "" {
hasClassicInteractiveCompute = true
continue
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This block is duplicated.

@denik denik temporarily deployed to test-trigger-is May 14, 2025 13:37 — with GitHub Actions Inactive
@denik denik enabled auto-merge May 14, 2025 13:37
@andrewnester andrewnester disabled auto-merge May 14, 2025 13:38
@andrewnester andrewnester merged commit 25cc7d9 into main May 14, 2025
9 of 10 checks passed
@andrewnester andrewnester deleted the track-compute-metrics branch May 14, 2025 13:44
trace $CLI bundle deploy -t one
trace $CLI bundle deploy -t two
trace $CLI bundle deploy -t three
trace $CLI bundle deploy -t four
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The test was killed with timeout on CI: https://github.com/databricks/cli/actions/runs/15022764995/job/42215860250

You can raise timeout or break it into individual tests instead.

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.

2 participants