-
Notifications
You must be signed in to change notification settings - Fork 724
Add profiling pipeline #7961
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
Add profiling pipeline #7961
Conversation
import { EOL } from 'os'; | ||
import { LogOutputChannel } from 'vscode'; | ||
|
||
export function getProfilingEnvVars(outputChannel: LogOutputChannel): NodeJS.ProcessEnv { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Ensure the profiling output folder exists, otherwise the outputs will not get written. | ||
fs.mkdirSync(path.join(outPath, 'profiling'), { recursive: true }); | ||
|
||
await runIntegrationTest( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now we just run the C# integration tests. The devkit ones seem to be slightly less stable. We can consider expanding this in the future.
Most of the data should be the same regardless (minus a few service broker entry points)
} | ||
|
||
// Function to spawn a tool | ||
function spawnTool(command: string, args: string[], warnOnError = false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the same as https://devdiv.visualstudio.com/DevDiv/_git/vs-green?path=/azure-pipelines/profiling/mibc.yml&version=GBmain&_a=contents&line=95&lineStyle=plain&lineEnd=96&lineStartColumn=1&lineEndColumn=1 (internal) but converted from powershell
export const basicSlnTestProject = 'slnWithCsproj'; | ||
export const integrationTestProjects = [basicSlnTestProject]; | ||
|
||
export async function runDevKitIntegrationTests( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything here is just moved basically unchanged.
Passing run which produced mibc
https://dnceng.visualstudio.com/internal/_build/results?buildId=2634936&view=results (internal)