Skip to content

feat(shared-data): add deck schema v6 #41661

feat(shared-data): add deck schema v6

feat(shared-data): add deck schema v6 #41661

Triggered via push January 10, 2025 20:19
Status Failure
Total duration 21m 2s
Artifacts
Determine build variant and type
0s
Determine build variant and type
Matrix: backend-unit-test
opentrons app frontend unit tests
20m 53s
opentrons app frontend unit tests
Matrix: build-app
Deploy built app artifacts to S3
0s
Deploy built app artifacts to S3
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getRunLabwareRenderInfo > returns run labware render info: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L140
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:140:7
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getRunLabwareRenderInfo > does not add labware to results array if the labware is on deck and the slot does not have a mating surface vector: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L157
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:157:7
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getRunLabwareRenderInfo > does add offdeck labware to the results array: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L166
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:166:7
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getRunLabwareRenderInfo > defaults labware x, y coordinates to 0,0 if slot position not found in deck definition: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L192
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:192:7
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getCurrentRunModuleRenderInfo > returns run module render info with nested labware: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L210
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:210:7
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getCurrentRunModuleRenderInfo > returns run module render info without nested labware: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L231
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:231:7
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getCurrentRunModuleRenderInfo > returns the correct x,y coords for a thermocycler that spans slots 7, 8, 10, and 11: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L248
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:248:7
app/src/organisms/InterventionModal/__tests__/utils.test.ts > getCurrentRunModuleRenderInfo > defaults module x,y coordinates to 0,0 if slot position not found in deck definition: app/src/organisms/InterventionModal/__tests__/utils.test.ts#L273
Error: [vitest] No "ot2DeckDefV5" export is defined on the "@opentrons/shared-data" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opentrons/shared-data"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ app/src/organisms/InterventionModal/__tests__/utils.test.ts:273:7
app/src/transformations/analysis/__tests__/getLabwareRenderInfo.test.ts > getLabwareRenderInfo > should gather labware coordinates: shared-data/js/fixtures.ts#L125
TypeError: Cannot read properties of undefined (reading 'robot') ❯ Module.getPositionFromSlotId shared-data/js/fixtures.ts:125:13 ❯ app/src/transformations/analysis/getLabwareRenderInfo.ts:56:28 ❯ Module.getLabwareRenderInfo app/src/transformations/analysis/getLabwareRenderInfo.ts:30:6 ❯ app/src/transformations/analysis/__tests__/getLabwareRenderInfo.test.ts:108:7
app/src/transformations/analysis/__tests__/getProtocolModulesInfo.test.ts > getProtocolModulesInfo > should gather protocol module info for temp, mag, and tc: shared-data/js/fixtures.ts#L125
TypeError: Cannot read properties of undefined (reading 'robot') ❯ Module.getPositionFromSlotId shared-data/js/fixtures.ts:125:13 ❯ app/src/transformations/analysis/getProtocolModulesInfo.ts:73:28 ❯ Module.getProtocolModulesInfo app/src/transformations/analysis/getProtocolModulesInfo.ts:35:33 ❯ app/src/transformations/analysis/__tests__/getProtocolModulesInfo.test.ts:255:7
Determine build variant and type
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636