Change code-mirror to use Ubuntu build agent#8449
Conversation
The idea here is to improve throughput of code-mirror runs by switching from a Windows-based agent to a Linux-based agent. Linux-based agents provision faster. So this should reduce the overall time for a GitHub commit to reach the AzDO repo. I haven't tested this change since I don't have the necessary permissions or git understanding to fix something that might get screwed up. Fixes dotnet/core-eng#15402
|
This won't work without additional changes. The script itself needs to be converted over to core. IIRC the powershell v1 task is classic powershell only, |
|
@mthalman addition changes made, test build works: https://dev.azure.com/dnceng/internal/_build/results?buildId=1603308&view=results |
| steps: | ||
| - task: PowerShell@1 | ||
| - powershell: | | ||
| $gitHubRepo = "${{ parameters.GithubRepo }}" |
There was a problem hiding this comment.
Checking my grasp on AzDO YAML... this is changing from reading a variable during script execution, to doing a template substitution before script execution begins, right?
There was a problem hiding this comment.
Yeah. This is the recommended methodology for parameters.
|
Looks like this borked the mirror: https://dev.azure.com/dnceng/internal/_build/results?buildId=1612783&view=results I'm going to revert this for tonight and we can take a look at the failure in the morning |
* Change code-mirror to use Ubuntu build agent The idea here is to improve throughput of code-mirror runs by switching from a Windows-based agent to a Linux-based agent. Linux-based agents provision faster. So this should reduce the overall time for a GitHub commit to reach the AzDO repo. I haven't tested this change since I don't have the necessary permissions or git understanding to fix something that might get screwed up. Fixes dotnet/core-eng#15402 * Update PowerShell tasks to use PowerShell Core * Test test * Add parameters * Add parameters * Add parameters * Add working directory to second powershell command Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
* Change code-mirror to use Ubuntu build agent The idea here is to improve throughput of code-mirror runs by switching from a Windows-based agent to a Linux-based agent. Linux-based agents provision faster. So this should reduce the overall time for a GitHub commit to reach the AzDO repo. I haven't tested this change since I don't have the necessary permissions or git understanding to fix something that might get screwed up. Fixes dotnet/core-eng#15402 * Update PowerShell tasks to use PowerShell Core Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
* Change code-mirror to use Ubuntu build agent The idea here is to improve throughput of code-mirror runs by switching from a Windows-based agent to a Linux-based agent. Linux-based agents provision faster. So this should reduce the overall time for a GitHub commit to reach the AzDO repo. I haven't tested this change since I don't have the necessary permissions or git understanding to fix something that might get screwed up. Fixes dotnet/core-eng#15402 * Update PowerShell tasks to use PowerShell Core Co-authored-by: Matt Mitchell <mmitche@microsoft.com> Co-authored-by: Matt Thalman <mthalman@microsoft.com>
The idea here is to improve throughput of code-mirror runs by switching from a Windows-based agent to a Linux-based agent. Linux-based agents provision faster. So this should reduce the overall time for a GitHub commit to reach the AzDO repo.
I haven't tested this change since I don't have the necessary permissions or git understanding to fix something that might get screwed up.
Fixes https://github.com/dotnet/core-eng/issues/15402
To double check: