Repository navigation
fix: remove the causes of the top web e2e flakes - #1815
Merged
Merged
Conversation
While the node's answer for a round's paths is pending, the session sync coordinator built the catalog from its own previous answers. After a project was registered those predate it, so the next publish drew the new project at its bare path without the repository's tabs, beside the old project, and put it under No agents until the answer arrived. The creation already installed answers that place it; the coordinator now builds from those when its own cannot place a registration of this machine.
…selection waitForTerminal read the strip's selected tab and expected the canvas to draw it, but the canvas can draw a new tab while the strip still selects the one before, so the expectation was the old tab. Every caller now names the tab Herdr created (createdTabs) and the helper waits for the page to select and draw that one.
A dependency graph mounts its cards anew when the layout worker places them, so a box read before that was of a removed card (null). The record button shows on hover or focus; a row that moved under a still pointer lost the hover, so the specs now focus the row.
… signals for new tabs and placed graphs
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.
Closes with-hide/hide-private#147
Closes with-hide/hide-private#270
Closes with-hide/hide-private#161
Closes with-hide/hide-private#122
Closes with-hide/hide-private#168
Closes with-hide/hide-private#172
Closes with-hide/hide-private#195
Closes with-hide/hide-private#197
Summary
Five of the most frequent web e2e flakes are fixed at their cause, and one of them was a product race.
When a folder inside a repository was added as a project, one update could draw it apart from its repository, with no tabs and under "No agents", for about 10 ms.
The core now builds that update from path answers that already place the new project.
The other four were tests that waited on the wrong thing, and four more issues with the same tab failure close with them.
#287 needed no code, because its spec was deleted with Factory in #1437.
스크린샷 없음: no
web/src,site/ordesign/change; the only product change is in the core's catalog build.Review
showProjectRowis unchanged.LAYOUT_TIMEOUT_MS(3000 ms), so a click in that window can be lost. This PR only makes the test wait forlayered; the product defect is with-hide/hide-private#317.focus-within), so it checks the focus path and no longer checks the hover reveal.herdr-core/src/session_sync/coordinator.rs, the catalog build on the session-sync thread (high-frequency path). The change only chooses between two path indexes already in hand. When the coordinator's own answers place every registration (the usual case), nothing changes.knows()lookup per local registration on at most two indexes, with no new reads, timers or fan-out.Evidence
Verification record
Issues
paths_to_build_fromin the coordinatorboundingBox()read a removed card (null)data-dependency-layout="layered"(placedBoxes); mission-map had the same readwaitForTerminaltook the strip's selected tab as the expectation; the canvas drew the new tab while the strip still selected the old onecreatedTabs), all 9 callersExpected: old tab / Received: new tabsignature, same helperfocus-within)Repeat run (c2)
scripts/verify-web.sh web e2e e2e/plan-review.spec.ts e2e/mission-map.spec.ts e2e/checkout-owner.spec.ts e2e/s4.spec.ts e2e/session-work-ledger.spec.ts e2e/herdr-coexistence.spec.ts e2e/last-tab-leaves-checkout.spec.ts e2e/s2.spec.ts --grep "<the 8 tests>" --repeat-each 20#270 probe (not committed)
no_agent_projectsfrom wire frames, with the real test's Git setup.registeredat its bare path with 0 tabs besidefixtureand under No agents. One batch was counted exactly: 2 of 20.Static checks
verify-cargo.sh test -p herdr-core --lib:catalog_path_tests::a_pending_answer_builds_from_the_paths_that_place_every_registrationpasses.web typecheck,web lint(e2e size budget included) andcargo fmt --checkpass.CI on 7d6ee3b