Skip to content

[MSYS2] Disable download timeout (test)#11455

Closed
MVoz wants to merge 69 commits intomicrosoft:masterfrom
MVoz:disable-download-timeout
Closed

[MSYS2] Disable download timeout (test)#11455
MVoz wants to merge 69 commits intomicrosoft:masterfrom
MVoz:disable-download-timeout

Conversation

@MVoz
Copy link
Copy Markdown
Contributor

@MVoz MVoz commented May 20, 2020

test

@MVoz
Copy link
Copy Markdown
Contributor Author

MVoz commented May 22, 2020

@BillyONeal

???

2020-05-22_135052

New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" -Name AllowDevelopmentWithoutDevLicense -Value 1 -PropertyType DWORD -Force

# Disable UAC
Write-Host "Disabling UAC"
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.

This doesn't do anything: the builders run as LOCAL SERVICE.


Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "SymlinkLocalToLocalEvaluation" -Value "1" -Force

if( Test-Path D:\downloads\tools\msys2 )
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.

This is always false because the D drive is destroyed when a VM reboots. (It's the azure temp disk)

if( Test-Path D:\downloads\tools\msys2 )
{
$acl = Get-Acl D:\downloads\tools
$AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("BUILTIN\Users","FullControl","Allow")
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.

I don't believe BUILTIN\Users will affect the agents.

$acl | Set-Acl D:\downloads\tools\msys2 | Out-Null
}

#Invoke-Expression -Command "icacls D:\downloads\tools\msys2 /grant BUILTIN\Users:'(OI)(CI)F' /T" -Verb
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.

We shouldn't check in commented out code.


Write-Host "Enable long path behavior"
# See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#maximum-path-length-limitation
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value "1" -Force
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.

Are there specific ports tripping over this right now? If not I'd prefer to leave this turned off because we want to discourage adding ports requiring that setting.

# See https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#maximum-path-length-limitation
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value "1" -Force

Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "SymlinkLocalToLocalEvaluation" -Value "1" -Force
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.

I believe this is the default? On a clean system I get:

C:\Users\billy>fsutil behavior query SymlinkEvaluation
Local to local symbolic links are enabled.
Local to remote symbolic links are enabled.
Remote to local symbolic links are disabled.
Remote to remote symbolic links are disabled.

@BillyONeal
Copy link
Copy Markdown
Member

That's indeed very strange, I don't know why CI didn't run on this. But given that CI keeps getting broken every time something that touches msys runs I'd prefer one of those other PRs get merged soon...

@MVoz
Copy link
Copy Markdown
Contributor Author

MVoz commented May 22, 2020

@BillyONeal
commented out code

@BillyONeal
Copy link
Copy Markdown
Member

@voskrese Can you try:

git fetch origin
git rebase origin/master
git push -f

to strip off a bunch of unrelated commits? That might make Azure Pipelines less confused but I'm ot positive

@BillyONeal
Copy link
Copy Markdown
Member

Looks like that got it unstuck. We'll see if this wedges the builders like everything else that's touched msys as of late

@MVoz MVoz closed this May 23, 2020
@MVoz MVoz deleted the disable-download-timeout branch May 23, 2020 10:03
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.

2 participants