Skip to content

Change code-mirror to use Ubuntu build agent - #8449

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

mmitche merged 7 commits into
mainfrom
mthalman-patch-1

Conversation

@mthalman

@mthalman mthalman commented Feb 9, 2022

Copy link
Copy Markdown
Member

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

mmitche commented Feb 9, 2022

Copy link
Copy Markdown
Member

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

mmitche commented Feb 9, 2022

Copy link
Copy Markdown
Member

@mmitche

mmitche commented Feb 9, 2022

Copy link
Copy Markdown
Member

@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

ghost commented Feb 15, 2022

Copy link
Copy Markdown

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>

Co-authored-by: Matt Thalman <[email protected]>
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