Skip to content

X1536 freeze thaw#1203

Open
yoldas wants to merge 50 commits into
develfrom
x1536-freeze-thaw
Open

X1536 freeze thaw#1203
yoldas wants to merge 50 commits into
develfrom
x1536-freeze-thaw

Conversation

@yoldas

@yoldas yoldas commented Jun 15, 2026

Copy link
Copy Markdown
Member

Changes proposed in this pull request

  • freeze/thaw

Story: #1202

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

@yoldas yoldas force-pushed the x1536-freeze-thaw branch from 1fffcc1 to 6b6aaab Compare June 17, 2026 15:06
@yoldas

yoldas commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

rebased x1536-freeze-thaw branch to remove experimental Edit treatment types changes. Saved those commits to edit-treatment-types branch.

@yoldas yoldas marked this pull request as ready for review June 25, 2026 01:54
@yoldas yoldas requested review from khelwood and sabrine33 June 25, 2026 01:54
Comment thread src/components/labwareScanner/LabwareScanner.tsx Outdated
Comment thread src/components/labwareScanner/LabwareScanner.tsx Outdated
Comment thread src/lib/factories/labwareFactory.ts
Comment thread src/pages/OrientationQC.tsx Outdated
@yoldas

yoldas commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

test failure hotspots to check for xeniumAnalyser

Issue: onAdd looks called twice in LabwareScanner for some reason.
Issue: check use of composeLabwareCheck in frozen true and false cases
Issue: figure out why cy.findByText('No probe hybridisation recorded for STAN-3111') not working.
Issue: check msw; clearly mocking is not working.
Issue: leak between tests; a mock set earlier looks used in a later test (FindLatestOperation)
Issue: SGP number / uploaded file is leaking to other test as well.

@sabrine33

sabrine33 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

test failure hotspots to check for xeniumAnalyser

Issue: onAdd looks called twice in LabwareScanner for some reason. Issue: check use of composeLabwareCheck in frozen true and false cases Issue: figure out why cy.findByText('No probe hybridisation recorded for STAN-3111') not working. Issue: check msw; clearly mocking is not working. Issue: leak between tests; a mock set earlier looks used in a later test (FindLatestOperation) Issue: SGP number / uploaded file is leaking to other test as well.

would like me to have a look into those with you ? I wonder why the msw is not working in your case ?

@yoldas yoldas requested a review from sabrine33 July 6, 2026 20:12
@sabrine33

Copy link
Copy Markdown
Contributor

thanks @yoldas, this is quite piece of work.
Just a couple of notes:

  • default the scanner to stop frozen labware ( I thought we already agreed on this)
  • per convention, it is recommended to have one component/page per URL ( it is not big dealer really)
  • I tested personally - when moving from one operation to another (thraw, cryopreserve) , it does not clear out the scanned labware

Comment thread cypress/e2e/pages/xeniumAnalyser.cy.ts
Comment thread src/components/CellSegmentation/Segmentation.tsx Outdated

previousLabwareLengthRef.current = currentLabwareLength;
prevCleanedOutAddressesLengthRef.current = curCleanedOutAddressesLength;
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain what is the purpose of those changes, please

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used useRefs instead of consts. Instead of capturing from render, used the last seen value persisted across emissions and re-subscriptions and removed those refs from deps. I will check this again - one of the things I suspected during debugging: onAdd firing twice.

@yoldas

yoldas commented Jul 8, 2026

Copy link
Copy Markdown
Member Author
  • I tested personally - when moving from one operation to another (thraw, cryopreserve) , it does not clear out the scanned labware

Thanks. I have added key attribute to reset RecordInPlace for thaw and cryopreserve transitions.

@yoldas

yoldas commented Jul 8, 2026

Copy link
Copy Markdown
Member Author
  • per convention, it is recommended to have one component/page per URL ( it is not big dealer really)

Thanks. Yes, in this case the behaviour is the same aside from the operation type.
Story: "API: Use recordInPlace(request: InPlaceOpRequest!) with "Cryopreserve" or "Thaw" as the operation type."

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.

2 participants