Skip to content

feat(api, shared-data): Expand Labware architecture to accommodate Lids #11961

feat(api, shared-data): Expand Labware architecture to accommodate Lids

feat(api, shared-data): Expand Labware architecture to accommodate Lids #11961

Triggered via pull request December 24, 2024 21:10
Status Failure
Total duration 3m 48s
Artifacts

ll-test-build-deploy.yaml

on: pull_request
labware library unit tests
3m 36s
labware library unit tests
labware library e2e tests
0s
labware library e2e tests
build labware library artifact
0s
build labware library artifact
deploy LL artifact to S3
0s
deploy LL artifact to S3
Fit to window
Zoom out
Zoom in

Annotations

2 errors
labware-library/src/labware-creator/__tests__/StackingOffsets.test.tsx: labware-library/src/labware-creator/__tests__/StackingOffsets.test.tsx#L20
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock ❯ labware-library/src/labware-creator/__tests__/StackingOffsets.test.tsx:20:25 Caused by: Caused by: Error: Failed to resolve import "../labware/definitions/2/opentrons_tough_pcr_auto_sealing_lid/1.json" from "shared-data/js/labware.ts". Does the file exist? Plugin: vite:import-analysis File: /home/runner/work/opentrons/opentrons/shared-data/js/labware.ts:115:54 111| import opentronsFlexDeckRiserV1Uncasted from "../labware/definitions/2/opentrons_flex_deck_riser/1.json"; 112| import opentronsFlexLidAbsorbancePlateReaderModuleV1Uncasted from "../labware/definitions/2/opentrons_flex_lid_absorbance_plate_reader_module/1.json"; 113| import opentronsToughPcrAutoSealingLidV1Uncasted from "../labware/definitions/2/opentrons_tough_pcr_auto_sealing_lid/1.json"; | ^ 114| import opentronsUniversalFlatAdapterV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter/1.json"; 115| import opentronsUniversalFlatAdapterCorning384Wellplate112UlFlatV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter_corning_384_wellplate_112ul_flat/1.json"; ❯ formatError node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50824:46 ❯ TransformContext.error node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:50818:19 ❯ normalizeUrl node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66141:33 ❯ node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66296:47 ❯ TransformContext.transform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:66217:13 ❯ Object.transform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:51133:30 ❯ loadAndTransform node_modules/vitest/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:53888:29 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { __vitest_rollup_error__: { plugin: 'vite:import-analysis', id: '/home/runner/work/opentrons/opentrons/shared-data/js/labware.ts', loc: { file: '/home/runner/work/opentrons/opentrons/shared-data/js/labware.ts', line: 115, column: 54 }, frame: '111| import opentronsFlexDeckRiserV1Uncasted from "../labware/definitions/2/opentrons_flex_deck_riser/1.json";\n112| import opentronsFlexLidAbsorbancePlateReaderModuleV1Uncasted from "../labware/definitions/2/opentrons_flex_lid_absorbance_plate_reader_module/1.json";\n113| import opentronsToughPcrAutoSealingLidV1Uncasted from "../labware/definitions/2/opentrons_tough_pcr_auto_sealing_lid/1.json";\n | ^\n114| import opentronsUniversalFlatAdapterV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter/1.json";\n115| import opentronsUniversalFlatAdapterCorning384Wellplate112UlFlatV1Uncasted from "../labware/definitions/2/opentrons_universal_flat_adapter_corning_384_wellplate_112ul_flat/1.json";' } }
labware library unit tests
Process completed with exit code 2.