Skip to content

Add template test to confirm the output when uv is not found#3240

Merged
pietern merged 3 commits intomainfrom
fail-missing-uv
Jul 15, 2025
Merged

Add template test to confirm the output when uv is not found#3240
pietern merged 3 commits intomainfrom
fail-missing-uv

Conversation

@pietern
Copy link
Copy Markdown
Contributor

@pietern pietern commented Jul 11, 2025

Why

We should provide installation instructions when uv is not found when we try to execute it. This test confirms the baseline to improve.

@pietern pietern temporarily deployed to test-trigger-is July 11, 2025 10:08 — with GitHub Actions Inactive
cd output/fail_missing_uv
trace $CLI bundle validate

# Dynamically find the directory containing 'uv' and remove it from PATH
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.

can we do something simpler? would set PATH to empty string work?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The command is executed via the shell and it still needs to find the shell.

@eng-dev-ecosystem-bot
Copy link
Copy Markdown
Collaborator

eng-dev-ecosystem-bot commented Jul 11, 2025

Run: 16218411658

Env ✅‌pass ❌‌FAIL 💥‌PANIC 🔄‌flaky 🙈‌skip 🤯‌MISS
❌‌ aws linux 287 8 1 413 4
❌‌ aws windows 294 1 6 412
✅‌ aws-ucws linux 408 313
✅‌ aws-ucws windows 409 312
✅‌ azure linux 302 412
✅‌ azure windows 303 411
✅‌ azure-ucws linux 410 310
✅‌ azure-ucws windows 411 309
✅‌ gcp linux 301 414
✅‌ gcp windows 302 413
16 failing tests:
Test Name aws linux aws windows
TestAccept ❌‌FAIL ✅‌pass
TestAccept/bundle/resources/pipelines/DATABRICKS_CLI_DEPLOYMENT=direct-exp ✅‌pass 🔄‌flaky
TestAccept/bundle/resources/pipelines/DATABRICKS_CLI_DEPLOYMENT=terraform ✅‌pass 🔄‌flaky
TestAccept/selftest/record_cloud/workspace-file-io ❌‌FAIL ✅‌pass
TestAccept/selftest/record_cloud/workspace-file-io/DATABRICKS_CLI_DEPLOYMENT=terraform ❌‌FAIL ✅‌pass
TestFetchRepositoryInfoAPI_FromRepo ❌‌FAIL ❌‌FAIL
TestSyncEnsureRemotePathIsUsableIfRepoDoesntExist 🤯‌MISS ✅‌pass
TestSyncEnsureRemotePathIsUsableIfRepoExists 🤯‌MISS 🔄‌flaky
TestSyncEnsureRemotePathIsUsableInWorkspace 🤯‌MISS ✅‌pass
TestSyncFullFileSync ❌‌FAIL ✅‌pass
TestSyncIncrementalFileOverwritesFolder ❌‌FAIL ✅‌pass
TestSyncIncrementalSyncFileToPythonNotebook 💥‌PANIC 🔄‌flaky
TestSyncIncrementalSyncPythonNotebookDelete 🤯‌MISS ✅‌pass
TestSyncIncrementalSyncPythonNotebookToFile ❌‌FAIL ✅‌pass
TestSyncNestedFolderDoesntFailOnNonEmptyDirectory ✅‌pass 🔄‌flaky
TestSyncNestedFolderSync ❌‌FAIL 🔄‌flaky

@pietern pietern temporarily deployed to test-trigger-is July 11, 2025 10:59 — with GitHub Actions Inactive
@pietern pietern requested a review from denik July 11, 2025 11:23
@pietern pietern enabled auto-merge July 11, 2025 11:23
# Dynamically find the directory containing 'uv' and remove it from PATH
uv_dir=$(dirname "$(command -v uv 2>/dev/null || which uv 2>/dev/null)")
if [ -n "$uv_dir" ]; then
export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v "^$uv_dir$" | paste -sd: -)
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.

would prefer small Python script there as a more cross-platform and readable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agree that would be more readable. This works now, though, and we don't have other call sites.

@pietern pietern disabled auto-merge July 15, 2025 14:13
@pietern pietern merged commit afc345f into main Jul 15, 2025
12 of 13 checks passed
@pietern pietern deleted the fail-missing-uv branch July 15, 2025 14:13
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