Skip to content

Change code-mirror to use Ubuntu build agent#8449

Merged
mmitche merged 7 commits intomainfrom
mthalman-patch-1
Feb 14, 2022
Merged

Change code-mirror to use Ubuntu build agent#8449
mmitche merged 7 commits intomainfrom
mthalman-patch-1

Conversation

@mthalman
Copy link
Copy Markdown
Member

@mthalman mthalman commented Feb 9, 2022

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:

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
@mthalman mthalman requested a review from mmitche February 9, 2022 14:35
@mmitche
Copy link
Copy Markdown
Member

mmitche commented Feb 9, 2022

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,

@mmitche
Copy link
Copy Markdown
Member

mmitche commented Feb 9, 2022

@mmitche
Copy link
Copy Markdown
Member

mmitche commented Feb 9, 2022

@RikkiGibson RikkiGibson self-requested a review February 10, 2022 18:11
steps:
- task: PowerShell@1
- powershell: |
$gitHubRepo = "${{ parameters.GithubRepo }}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah. This is the recommended methodology for parameters.

@RikkiGibson
Copy link
Copy Markdown
Member

Any further concerns with this PR @mthalman @mmitche?

@mthalman
Copy link
Copy Markdown
Member Author

Any further concerns with this PR @mthalman @mmitche?

LGTM. Thanks for updates @mmitche

@mmitche mmitche merged commit 74db2ef into main Feb 14, 2022
@ghost
Copy link
Copy Markdown

ghost commented Feb 15, 2022

Looks like this borked the mirror: https://dev.azure.com/dnceng/internal/_build/results?buildId=1612783&view=results

Write-Error: Expected valid branch and GitHub repo in the form of owner/repo
##[error]PowerShell exited with code '1'.

I'm going to revert this for tonight and we can take a look at the failure in the morning

ghost pushed a commit that referenced this pull request Feb 15, 2022
@mthalman mthalman deleted the mthalman-patch-1 branch February 23, 2022 20:13
mmitche added a commit to mmitche/arcade that referenced this pull request Mar 24, 2022
* 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>
mmitche added a commit to mmitche/arcade that referenced this pull request Mar 24, 2022
* 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>
mmitche added a commit that referenced this pull request Mar 25, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants