Skip to content

Conversation

@asnare
Copy link

@asnare asnare commented Nov 19, 2025

Changes

This PR fixes a panic during databricks labs install --offline=true if the release cache can't be loaded. (Preliminary support for offline installs was introduced by #2049.)

Why

This is easy to hit during offline installation if the archive hasn't been unpacked into the location expected by the code. When this happens the code should not panic but rather propagate the error.

Tests

Tested manually, and via some additional tests that cover loading the release cache in offline mode:

  • A test for the happy path (already covered indirectly)
  • A new test for the error handling (that would have revealed the panic).

Introduce tests for the offline-mode code paths.
@asnare asnare requested review from alexott and nfx as code owners November 19, 2025 12:41
@github-actions
Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 3955
  • Commit SHA: 6283885f1e595ffaf1a713e9565c5787261ae90f

Checks will be approved automatically on success.

Copy link
Contributor

@pietern pietern left a comment

Choose a reason for hiding this comment

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

Looks good, thanks.

I'll merge when the unit tests come back green.

@pietern pietern added the labs issues related to `labs` command group (assign to @nfx) label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

labs issues related to `labs` command group (assign to @nfx)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants