Skip to content

Enable Legacy Profiles/Config in Unified Mode#1240

Open
hectorcast-db wants to merge 18 commits intomainfrom
hectorcast-db/remove-is-x
Open

Enable Legacy Profiles/Config in Unified Mode#1240
hectorcast-db wants to merge 18 commits intomainfrom
hectorcast-db/remove-is-x

Conversation

@hectorcast-db
Copy link
Contributor

@hectorcast-db hectorcast-db commented Feb 2, 2026

What changes are proposed in this pull request?

This PR adds support for Legacy Profiles/Config in Unified Mode.

This allows us to test the detection/fallback logic and the changes happening to the legacy workspace logic.

How is this tested?

Run integration tests twice: one with unified flag and one without it.

@hectorcast-db hectorcast-db changed the title wip Enable Legacy Profiles/Config in Unified Mode Feb 3, 2026

def __set__(self, cfg: "Config", value: any):
cfg._inner[self.name] = self.transform(value)
if value is None:
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 is a bug fix. Before, this:

cfg.account_id = None

would actually set

cfg.account_id = "None"

continue
return environment
return get_environment_for_hostname(self.host)
if not self.experimental_is_unified_host:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We now resolve this once during new Config, not lazily. This ensures that we don't read the host after Config is created.

if self.azure_workspace_resource_id:
return True
return self.environment.cloud == Cloud.AZURE
return self.environment is not None and self.environment.cloud == Cloud.AZURE
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unified Hosts will return false on all 3 clouds.

return None
if self.cluster_id and self.warehouse_id:
raise ValueError("cannot have both cluster_id and warehouse_id")
headers = self.authenticate()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Extracted to a separate func

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 1240
  • Commit SHA: 1d19a12f22a9f78d2a8b30bf34ef22246178f449

Checks will be approved automatically on success.

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.

1 participant