Repository navigation
test(e2e): cover the slow-runner timeout and reconcile message - #112
Merged
Merged
Conversation
The 840s UI bound keeps the live progress view alive on routine deploys, but when a provision response is still lost or expired the app re-reads the project and reports which classes actually landed instead of leaving the user on a dead-end. These browser tests drive the real provisioning transport against a stalled mocked runner at a millisecond bound and render the reconcile outcome through the real terminal renderer, locking in that the timeout is UNCONFIRMED — never a fabricated failure — and that the modal names the project and a next step.
Contributor
|
This PR does not match any of the 1 configured review trigger rule. |
Comment on lines
+99
to
+107
| await page.route("**/exportCode", async (route) => { | ||
| await route.fulfill({ | ||
| status: 200, | ||
| contentType: "application/json", | ||
| body: JSON.stringify({ | ||
| value: { project_zip: await projectZipWithClassLanded() }, | ||
| }), | ||
| }); | ||
| }); |
Contributor
There was a problem hiding this comment.
🔍 Reconciliation fixture skips the initial project state
The export always contains GaugeModel, while the hook receives no remoteFiles. A real deploy reads that export first and skips provisioning an existing class. Model the class appearing after the stalled request to exercise the claimed journey.
Was this helpful? React with 👍 or 👎 to provide feedback.
Comment on lines
+151
to
+156
| window.__CCC_RENDER_DEPLOY_TERMINAL__({ | ||
| success: false, | ||
| unconfirmed: true, | ||
| targetIdentity, | ||
| error: message, | ||
| }); |
Contributor
There was a problem hiding this comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds e2e/deploy-timeout-reconcile.spec.js covering: a provisioning that outlives the UI bound is UNCONFIRMED (never a fabricated failure), and after the bound the reconcile re-read reports which classes actually landed instead of a dead-end 'go check yourself'.
Why
Commit 5231e76 raised the deploy UI bound to 840s and added reconcileUnconfirmedProvision, which re-reads the project and reports what landed. These browser tests lock that behavior in: the timeout path stays reachable in test time by stalling the mocked runner and shortening the bound to milliseconds (not 840 real seconds), and the reconcile message is rendered through the real
__CCC_RENDER_DEPLOY_TERMINAL__entry point.Tests
npx playwright test deploy-timeout-reconcile.spec.js— 2 passed.node --test src/*.test.js— 399 passed.npx playwright test stu380-deploy.spec.js— runs, but 6 pre-existing failures: stu380's project-source-cache tests countexportCallsand were not updated for the new reconcile re-read that commit 5231e76 introduced (reconcile now makes an extraexportCodecall on unconfirmed provisioning). Those tests/semantics are owned by the app.js workstream; I did not touch them.