Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: clean up and compact test result storage #156834

Merged
merged 2 commits into from Aug 2, 2022

Conversation

connor4312
Copy link
Member

@connor4312 connor4312 commented Aug 1, 2022

This PR does several chore things around test results:

  • Removes the persistence of test messages, which should reduce the
    size of stored results significantly (we only keep the state). This
    is the same as what IntelliJ does with some cursory testing, and I
    think it makes sense.
  • Brings back some of the notion of 'outdated' tests, so previously
    executed tests are shown in a more muted color. This is useful since
    they no longer are "full" results, and are instead just messages.
  • Previous results are no longer 'restored' to the extension host on
    boot, which directly fixes Invalid string length + Unknown actor MainThreadTerminal Service #151147
  • Compacts the storage of terminal output: we'll now only keep the first
    100 bytes of any terminal output associated with the test, and read
    from the disk on-demand when the full message is viewed.

Later I want to make terminal messages fancier (see the #terminal channel).

Fixes #154204 as well

This PR does several chore things around test results:

- Removes the persistence of test messages, which should reduce the
  size of stored results significantly (we only keep the state). This
  is the same as what IntelliJ does with some cursory testing, and I
  think it makes sense.
- Brings back some of the notion of 'outdated' tests, so previously
  executed tests are shown in a more muted color. This is useful since
  they no longer are "full" results, and are instead just messages.
- Previous results are no longer 'restored' to the extension host on
  boot, which directly fixes #151147
- Compacts the storage of terminal output: we'll now only keep the first
  100 bytes of any terminal output associated with the test, and read
  from the disk on-demand when the full message is viewed.

Later I want to make terminal messages fancier (see the #terminal channel).
@connor4312 connor4312 added this to the August 2022 milestone Aug 1, 2022
@connor4312 connor4312 self-assigned this Aug 1, 2022
@connor4312 connor4312 merged commit a3d2c53 into main Aug 2, 2022
@connor4312 connor4312 deleted the testing/results-cleanup branch August 2, 2022 15:27
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce amount of stored test information Invalid string length + Unknown actor MainThreadTerminal Service
2 participants