Skip to content

Tsserver tests can be baselined #44326

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 3 commits into from
Jun 2, 2021
Merged

Tsserver tests can be baselined #44326

merged 3 commits into from
Jun 2, 2021

Conversation

sheetalkamat
Copy link
Member

Also ensures inferred and auto import projects have name per project service so they are same across any type of runs
This is the PR I had started as part of #41004 and is partially done but nothing wrong with merging this without converting many more tests to baselines. That can be done as and when needed.

Also ensures inferred and auto import projects have name per project service
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels May 29, 2021
@sheetalkamat
Copy link
Member Author

Can i get review on this so i can baseline #41004 on top of main after merging this.

Copy link
Member

@amcasey amcasey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea, but I only skimmed the actual code change.

hasLevel: returnTrue,
loggingEnabled: returnTrue,
info: s => logger.logs.push(
s.replace(/Elapsed::?\s*\d+(?:\.\d+)?ms/g, "Elapsed:: *ms")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some way we can detect that a baseline change includes something that looks like a duration and direct the author to this code? It seems like adding new log statements could be confusing otherwise (accept baselines locally, fail in CI, re-invent sanitization?).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cant think of anything.. we do this in multiple places but in most cases i have realized it as part of just running tests

@sheetalkamat sheetalkamat merged commit d2516fa into main Jun 2, 2021
@sheetalkamat sheetalkamat deleted the tsserverTestsBaselines branch June 2, 2021 18:22
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.

3 participants