Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix relative path resolution for dashboards on Windows #1881

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Nov 5, 2024

Changes

The file presence check for dashboard files was missing a filepath.ToSlash.

This means it didn't work on Windows unless the dashboard was located at a path without slashes (i.e. the bundle root).

Closes #1875.

Tests

  • Added a unit test to cover this case (failed before the fix).
  • Manually ran a dashboard deployment on Windows.

Copy link

github-actions bot commented Nov 5, 2024

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

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 1881
  • Commit SHA: 70f9f8115d2c0d0100cf5a3b46c32a5675f5f4a2

Checks will be approved automatically on success.

@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/11681295440

@pietern pietern added this pull request to the merge queue Nov 5, 2024
Merged via the queue into main with commit 26afab2 Nov 5, 2024
9 checks passed
@pietern pietern deleted the dashboards-windows-relative-path branch November 5, 2024 09:59
andrewnester added a commit that referenced this pull request Nov 6, 2024
CLI:
 * Clean host URL in the `auth login` command ([#1879](#1879)).

Bundles:
 * Fix bundle run when run interactively ([#1880](#1880)).
 * Fix relative path resolution for dashboards on Windows ([#1881](#1881)).

Internal:
 * Address goreleaser deprecation warning ([#1872](#1872)).
 * Update actions/github-script to v7 ([#1873](#1873)).
 * Use Go 1.23 ([#1871](#1871)).
 * [Internal] Always write message for manual integration test trigger ([#1874](#1874)).
 * Add `cmd-exec-id` to user agent ([#1808](#1808)).
 * Added E2E test to run Python wheels on interactive cluster created in bundle ([#1864](#1864)).

Dependency updates:
 * Bump github.com/hashicorp/terraform-json from 0.22.1 to 0.23.0 ([#1877](#1877)).
github-merge-queue bot pushed a commit that referenced this pull request Nov 6, 2024
CLI:
* Clean host URL in the `auth login` command
([#1879](#1879)).

Bundles:
* Fix bundle run when run interactively
([#1880](#1880)).
* Fix relative path resolution for dashboards on Windows
([#1881](#1881)).

Internal:
* Address goreleaser deprecation warning
([#1872](#1872)).
* Update actions/github-script to v7
([#1873](#1873)).
 * Use Go 1.23 ([#1871](#1871)).
* [Internal] Always write message for manual integration test trigger
([#1874](#1874)).
* Add `cmd-exec-id` to user agent
([#1808](#1808)).
* Added E2E test to run Python wheels on interactive cluster created in
bundle ([#1864](#1864)).


Dependency updates:
* Bump github.com/hashicorp/terraform-json from 0.22.1 to 0.23.0
([#1877](#1877)).
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.

Error when deploying dashboard from a folder
3 participants