Skip to content

Handles time on vfs and write non empty shadowed files in baseline even if they were not read #48703

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

Merged
merged 7 commits into from
Apr 21, 2022

Conversation

sheetalkamat
Copy link
Member

@sheetalkamat sheetalkamat commented Apr 14, 2022

Change includes

  • time on vfs is now a number that gets incremented on every operation instead of using current date. This helps with consistent baselines.
  • Time is frozen on readonly fs to ensure that files that were not read don't get time > when fs was made readonly because of lazy population of contents
  • Baseline also emits the contents of files that were not read from the shadow, to ensure we can see the contents of the unread file in the baseline.
  • Some of the places where we were not baselining buildinfo now baselines it for readability
    Note this is in preparation for storing some of the timestamps in buildinfo

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Apr 14, 2022
@sheetalkamat sheetalkamat requested a review from rbuckton April 15, 2022 21:29
@sheetalkamat
Copy link
Member Author

Ping @rbuckton

@amcasey
Copy link
Member

amcasey commented Apr 20, 2022

@sandersn Does this affect your VFS work?

@amcasey
Copy link
Member

amcasey commented Apr 20, 2022

The baselines certainly look better. If Ron and Nathan are happy, then I'm happy.

@sheetalkamat
Copy link
Member Author

It’s unrelated to @sandersn ’s vfs work since that uses virtual file system with watch (which is what we use to test for watch related or server related things )

@sheetalkamat sheetalkamat merged commit ab2523b into main Apr 21, 2022
@sheetalkamat sheetalkamat deleted the moreBaselines branch April 21, 2022 18:50
Jack-Works pushed a commit to Jack-Works/TypeScript that referenced this pull request Apr 22, 2022
…en if they were not read (microsoft#48703)

* Use fixed time for vfs so baselining is consistent

* Baseline buildinfos

* Write new file text in baseline even if the file wasnt read on the shadow

* Remove unnecessary debugger statement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants