You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/ci/job-template.yml
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -55,18 +55,15 @@ jobs:
55
55
container: ${{ parameters.container }}
56
56
57
57
steps:
58
-
# Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/1811
58
+
# Work around MacOS Homebrew image/environment bug: https://github.com/actions/virtual-environments/issues/2322#issuecomment-749211076
59
59
- ${{ if eq(parameters.pool.name, 'Hosted macOS') }}:
60
60
- script: |
61
-
brew uninstall openssl@1.0.2t |
62
-
brew uninstall python@2.7.17 |
63
-
brew untap local/openssl |
64
-
brew untap local/python2
61
+
rm -rf /usr/local/bin/2to3
65
62
displayName: MacOS Homebrew bug Workaround
66
63
continueOnError: true
67
64
# Extra MacOS step required to install OS-specific dependencies
68
65
- ${{ if eq(parameters.pool.name, 'Hosted macOS') }}:
VerifyCS.Diagnostic(ContractsCheckAnalyzer.DecodeMessageWithLoadContextDiagnostic.Rule).WithLocation(basis+39,41).WithArguments("CheckDecode","\"This message is suspicious\""),
42
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,24).WithMessage("'ICancelable' is inaccessible due to its protection level"),
43
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,67).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
42
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,24,752,35).WithMessage("'ICancelable' is inaccessible due to its protection level"),
43
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,67,752,77).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
44
44
};
45
45
46
46
vartest=newVerifyCS.Test
@@ -126,9 +126,9 @@ public async Task ContractsCheckFix()
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,24).WithMessage("'ICancelable' is inaccessible due to its protection level"),
130
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,67).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
131
-
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithLocation("Test1.cs",753,90).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
129
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,24,752,35).WithMessage("'ICancelable' is inaccessible due to its protection level"),
130
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,67,752,77).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
131
+
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",753,90,753,93).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
132
132
},
133
133
},
134
134
FixedState=
@@ -146,9 +146,9 @@ public async Task ContractsCheckFix()
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,24).WithMessage("'ICancelable' is inaccessible due to its protection level"),
150
-
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithLocation("Test1.cs",752,67).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
151
-
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithLocation("Test1.cs",753,90).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
149
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,24,752,35).WithMessage("'ICancelable' is inaccessible due to its protection level"),
150
+
newDiagnosticResult("CS0122",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",752,67,752,77).WithMessage("'ICancelable.IsCanceled' is inaccessible due to its protection level"),
151
+
newDiagnosticResult("CS1503",DiagnosticSeverity.Error).WithSpan("/0/Test1.cs",753,90,753,93).WithMessage("Argument 2: cannot convert from 'Microsoft.ML.Runtime.IHostEnvironment' to 'Microsoft.ML.Runtime.IExceptionContext'"),
0 commit comments