Repository navigation
Fail a text check whose page stays unreadable to the deadline - #172
Merged
Merged
Conversation
#169 made a text check keep polling while the page cannot be read. Text still unreadable at the deadline was recorded as could_not_run, so --retries never repeated the test. It now fails the step with text_unreadable. Follow-up to #169, taking the remaining part of #165. Co-authored-by: Bagrat <bagrat@timeline.co> Amp-Thread-ID: https://ampcode.com/threads/T-8894897a-ba72-47ec-b40f-2aacd96b4545 Co-authored-by: Ignacio Gutierrez <nachojgutierrez@gmail.com>
|
Architecture Data flow Review ✨ Nothing flagged · reviewed Tip The diagrams are links. Click one to open it on the canvas, then press W or click play to walk through the change 🪧 More tips
Thanks for using PR Lens! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out on X, Bluesky, Mastodon, Reddit or LinkedIn |
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.
Why
#169 made a quoted-text check (
verify …,wait until the text … is shown) treat an unreadable page as "not yet" and keep polling. But if the text was still unreadable when the step timed out, the step was recorded as unsupported, so the test endedcould_not_runand--retriesnever repeated it.This is the part of #165 (thanks @bagrat) that #169 didn't already cover.
What changes
text_unreadable("The page text could not be read."), the same way absent text fails withtext_check.Testing
flow-runner/assertion-text.test.ts, using the fake-page harness from fix(core): keep polling text checks while the next page loads #165: a page whose text never becomes readable. The step polls to the deadline and recordsfailedwithtext_unreadable. It fails onmain(could_not_run) and passes with this change.npx tsc --noEmit -p packages/coreand eslint are clean,npx vitest run packages/corepasses (729), andflow-runner.steps.integration.test.tspasses withSEDUM_BROWSER_INTEGRATION=1(26).