From 7894c4becf3e8a7ca97c7803dc4df2fc7a64653b Mon Sep 17 00:00:00 2001 From: jev forsberg Date: Wed, 16 Jul 2025 15:30:26 -0600 Subject: [PATCH] Fix: Resolve daggerbuild E2E path doubling issue - Extract just suite name from full path using filepath.Base() - Prevents doubled paths like './e2e/e2e/dashboards-suite/videos' - Resolves 'no spec files found' and 'no such file or directory' errors - GitHub Actions passes full paths like 'e2e/dashboards-suite' but run-suite script expects just 'dashboards-suite' --- pkg/build/e2e/main.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/build/e2e/main.go b/pkg/build/e2e/main.go index b97369d2331..8ce20b66864 100644 --- a/pkg/build/e2e/main.go +++ b/pkg/build/e2e/main.go @@ -6,6 +6,7 @@ import ( "fmt" "log" "os" + "path/filepath" "dagger.io/dagger" ) @@ -44,9 +45,11 @@ func main() { panic(err) } - videosDir := fmt.Sprintf("/src/e2e/%s/videos", *suite) + // Extract just the suite name from the path (e.g., "e2e/dashboards-suite" -> "dashboards-suite") + suiteName := filepath.Base(*suite) + videosDir := fmt.Sprintf("/src/e2e/%s/videos", suiteName) // *spec.ts.mp4 - c := RunSuite(d, svc, grafana, yarnCache, *suite) + c := RunSuite(d, svc, grafana, yarnCache, suiteName) c, err = c.Sync(ctx) if err != nil { log.Fatalf("error running dagger: %s", err)