Skip to content

Add missing ClusterEventType enum values to fix deserialization failures#301

Merged
memoryz merged 3 commits into
masterfrom
copilot/add-missing-cluster-event-types
Feb 16, 2026
Merged

Add missing ClusterEventType enum values to fix deserialization failures#301
memoryz merged 3 commits into
masterfrom
copilot/add-missing-cluster-event-types

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

The ClusterEventType enum was incomplete, causing deserialization failures when the Databricks API returned certain cluster events.

Changes

  • Added 10 missing enum values to ClusterEventType:

    • NODE_BLACKLISTED, PINNED, UNPINNED
    • NODE_EXCLUDED_DECOMMISSIONED, ADD_NODES_FAILED
    • AUTOSCALING_BACKOFF, AUTOMATIC_CLUSTER_UPDATE, AUTOSCALING_FAILED
    • DECOMMISSION_STARTED, DECOMMISSION_ENDED
  • Added deserialization test covering all new event types

These values are documented in the Databricks API specification for cluster events. With this change, the client can now properly handle all cluster event types returned by the API.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • docs.databricks.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>ClusterEventType does not include all possible values, causing deserialization to fail.</issue_title>
<issue_description>The flowing values:
NODE_BLACKLISTED, PINNED, UNPINNED, NODE_EXCLUDED_DECOMMISSIONED, ADD_NODES_FAILED, AUTOSCALING_BACKOFF, AUTOMATIC_CLUSTER_UPDATE, AUTOSCALING_FAILED, DECOMMISSION_STARTED, DECOMMISSION_ENDED

are missing form ClusterEventType enum.
See the documentation: https://docs.databricks.com/api/workspace/clusters/events</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 16, 2026 09:16
Added 10 missing enum values to ClusterEventType:
- NODE_BLACKLISTED
- PINNED
- UNPINNED
- NODE_EXCLUDED_DECOMMISSIONED
- ADD_NODES_FAILED
- AUTOSCALING_BACKOFF
- AUTOMATIC_CLUSTER_UPDATE
- AUTOSCALING_FAILED
- DECOMMISSION_STARTED
- DECOMMISSION_ENDED

This fixes deserialization failures when the Databricks API returns these event types.
All existing tests pass (192 tests).

Co-authored-by: memoryz <6992432+memoryz@users.noreply.github.com>
Added test to verify that all 10 new ClusterEventType values can be deserialized correctly:
- NODE_BLACKLISTED
- PINNED
- UNPINNED
- NODE_EXCLUDED_DECOMMISSIONED
- ADD_NODES_FAILED
- AUTOSCALING_BACKOFF
- AUTOMATIC_CLUSTER_UPDATE
- AUTOSCALING_FAILED
- DECOMMISSION_STARTED
- DECOMMISSION_ENDED

All tests pass (193 tests).

Co-authored-by: memoryz <6992432+memoryz@users.noreply.github.com>
@memoryz memoryz marked this pull request as ready for review February 16, 2026 09:20
Copilot AI changed the title [WIP] Add missing values to ClusterEventType enum Add missing ClusterEventType enum values to fix deserialization failures Feb 16, 2026
Copilot AI requested a review from memoryz February 16, 2026 09:21
@memoryz memoryz merged commit 0a5fe34 into master Feb 16, 2026
5 of 6 checks passed
@memoryz memoryz deleted the copilot/add-missing-cluster-event-types branch February 16, 2026 09:22
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.

ClusterEventType does not include all possible values, causing deserialization to fail.

2 participants