Dashboard › craft › Distillation
be8cb271-6f11-4df1-9154-83efc80cce35["lore_tm_v1_16qRey_caJ7Tspn1e4KqOEZiSwq7NmvQu1Wx8rLOgLA","lore_tm_v1_sbVscHgxcZ73ibr-di6ToaUxZovdKVaVSylWcmv-DLk","lore_tm_v1_KDD2pNfLfsEqdge0DEaBbjiN2AmJeR9YaAGcTe1GZIk","lore_tm_v1_mSV-xwYU2tr0rvfyejEBJDLOuMLp9wUUzJPA998HcJk"]
Date: Sep 8, 2026
/home/byk/Code/getsentry/publish-workspace-acceptance/src/publish/__tests__/discover-location.js: imports afterEach, expect, test, and vi from vitest; requires discoverLocation and getWorkspaceNames from ../discover-location.js; afterEach() calls vi.restoreAllMocks().discover-location.js regression test "retains checkout-path behavior when the root config is absent" calls discoverLocation({ input: { path: "./packages/cli" }, repositoryDirectory: "__repo__", exists: () => false }) and expects { path: "./packages/cli" }."discovers exact workspace paths using the released Craft image" mocks execFile to return '["packages/CLI"]', calls discoverLocation() with input.path: "./packages/CLI", repositoryDirectory: "__repo__", and exists: () => true, expects { path: ".", workspace: "packages/CLI" }, and verifies docker is called with arguments containing "getsentry/craft:latest", "workspace", "list" and { encoding: "utf8" }."fails closed when Craft returns an invalid workspace list" mocks Craft output as "{}" and expects getWorkspaceNames() to throw "Craft workspace discovery returned an invalid workspace list."."fails closed when Craft returns no workspace output" mocks Craft output as "\n" and expects getWorkspaceNames() to throw "Craft workspace discovery returned an invalid workspace list."."." is never a workspace identity and therefore does not need workspace discovery; any non-root path will retain fail-closed workspace discovery.fix/root-location-bootstrap, configured to track origin/main; its HEAD is 7c60ddb (feat: accept workspace publish requests).