Skip to content

Conversation

@mnoah1
Copy link
Collaborator

@mnoah1 mnoah1 commented May 6, 2025

This change will persist the prior list of test cases as part of the workspace state, and restore this data when the test explorer relaunches. This avoids a wait for the full BSP build target request before test cases become visible:

  • Update the test case store to cache the build targets result and each target sources result. When a refresh runs, the latest version of these get stored.
  • Before registering the handlers, there is now an additional step to pull these stored test cases and re-add them back to the test explorer.
  • These get processed through the usual test case creation logic, so that a test explorer tree created from a restored result or a new one from the build server will behave the same way.
  • The refresh run always clears out any cached values, so these are only used when restoring the window, and an actual refresh run is always guaranteed to contain the latest results from the build server.

@mnoah1 mnoah1 force-pushed the reload-existing-targets branch from 2cd1a6d to f7c316a Compare May 7, 2025 14:47
@mnoah1 mnoah1 merged commit 9dfb140 into uber:main May 8, 2025
4 checks passed
@mnoah1 mnoah1 deleted the reload-existing-targets branch May 8, 2025 16:21
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