Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dev): intermediate composition states have noisy errors (#1956)
### notes - the way we're composing subgraphs with `dev --supergraph-config` means that there are intermediate states of composition, and sometimes those intermediate states fail composition because they require other subgraphs to be present - lots of errors show up, but they're only ephemeral - fixes those errors by waiting until we've at least as many subgraphs loaded in as are represented by the supergraph.yaml, running composition only when we've at least those many - #1919 ### before: <img width="730" alt="Screenshot 2024-07-03 at 4 51 44 PM" src="https://github.com/apollographql/rover/assets/26738844/8429a155-8c23-49fe-b7e4-da16fe33d71c"> ### after <img width="708" alt="Screenshot 2024-07-03 at 4 50 15 PM" src="https://github.com/apollographql/rover/assets/26738844/084b5bf7-9182-42c9-944e-409c1582ba64"> ### testing I added three new subgraphs to the supergraph example; there's a branch with the same code as this one (`aaron/fix-intermediate-composition-errors-testing`), but with those new subgraphs added. Comment out the subgraph length check to see the failure; from within the examples directory, run `cargo r -- dev --supergraph-config ./supergraph.yaml`. You might have to run it a couple times to see the failure because of the thread pool
- Loading branch information