Skip to content

Commit 0090857

Browse files
steveisokSteve Pfister
andauthored
[Linux-Bionic] Skip NamedPipeTest_UnixDomainSocket tests and move LB pipeline to runtime-extra-platforms (#75273)
Backport of #74621 Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
1 parent 2fae71b commit 0090857

3 files changed

Lines changed: 43 additions & 41 deletions

File tree

eng/pipelines/runtime-extra-platforms-other.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,47 @@ jobs:
412412
eq(variables['monoContainsChange'], true),
413413
eq(variables['isRollingBuild'], true))
414414
415+
#
416+
# Build the whole product using Mono for Android Linux with Bionic libc
417+
#
418+
- template: /eng/pipelines/common/platform-matrix.yml
419+
parameters:
420+
jobTemplate: /eng/pipelines/common/global-build-job.yml
421+
helixQueuesTemplate: /eng/pipelines/libraries/helix-queues-setup.yml
422+
buildConfig: Release
423+
runtimeFlavor: mono
424+
platforms:
425+
- Linux_bionic_arm64
426+
- Linux_bionic_x64
427+
variables:
428+
- ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest')) }}:
429+
- name: _HelixSource
430+
value: pr/dotnet/runtime/$(Build.SourceBranch)
431+
- ${{ if and(eq(variables['System.TeamProject'], 'public'), ne(variables['Build.Reason'], 'PullRequest')) }}:
432+
- name: _HelixSource
433+
value: ci/dotnet/runtime/$(Build.SourceBranch)
434+
- name: timeoutPerTestInMinutes
435+
value: 60
436+
- name: timeoutPerTestCollectionInMinutes
437+
value: 180
438+
jobParameters:
439+
testGroup: innerloop
440+
targetRid: Linux-bionic-x64
441+
nameSuffix: AllSubsets_Mono
442+
buildArgs: -s mono+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true
443+
timeoutInMinutes: 240
444+
condition: >-
445+
or(
446+
eq(dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true),
447+
eq(dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'], true),
448+
eq(dependencies.evaluate_paths.outputs['SetPathVars_installer.containsChange'], true),
449+
eq(variables['isRollingBuild'], true))
450+
# extra steps, run tests
451+
extraStepsTemplate: /eng/pipelines/libraries/helix.yml
452+
extraStepsParameters:
453+
creator: dotnet-bot
454+
testRunNamePrefixSuffix: Mono_$(_BuildConfig)_LinuxBionic
455+
415456
#
416457
# Build the whole product using Mono and run runtime tests
417458
# Build Mono release

eng/pipelines/runtime-staging.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -201,47 +201,6 @@ jobs:
201201
creator: dotnet-bot
202202
testRunNamePrefixSuffix: Mono_$(_BuildConfig)
203203

204-
#
205-
# Build the whole product using Mono for Android Linux with Bionic libc
206-
#
207-
- template: /eng/pipelines/common/platform-matrix.yml
208-
parameters:
209-
jobTemplate: /eng/pipelines/common/global-build-job.yml
210-
helixQueuesTemplate: /eng/pipelines/libraries/helix-queues-setup.yml
211-
buildConfig: Release
212-
runtimeFlavor: mono
213-
platforms:
214-
- Linux_bionic_arm64
215-
- Linux_bionic_x64
216-
variables:
217-
- ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest')) }}:
218-
- name: _HelixSource
219-
value: pr/dotnet/runtime/$(Build.SourceBranch)
220-
- ${{ if and(eq(variables['System.TeamProject'], 'public'), ne(variables['Build.Reason'], 'PullRequest')) }}:
221-
- name: _HelixSource
222-
value: ci/dotnet/runtime/$(Build.SourceBranch)
223-
- name: timeoutPerTestInMinutes
224-
value: 60
225-
- name: timeoutPerTestCollectionInMinutes
226-
value: 180
227-
jobParameters:
228-
testGroup: innerloop
229-
targetRid: Linux-bionic-x64
230-
nameSuffix: AllSubsets_Mono
231-
buildArgs: -s mono+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true
232-
timeoutInMinutes: 240
233-
condition: >-
234-
or(
235-
eq(dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true),
236-
eq(dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'], true),
237-
eq(dependencies.evaluate_paths.outputs['SetPathVars_installer.containsChange'], true),
238-
eq(variables['isRollingBuild'], true))
239-
# extra steps, run tests
240-
extraStepsTemplate: /eng/pipelines/libraries/helix.yml
241-
extraStepsParameters:
242-
creator: dotnet-bot
243-
testRunNamePrefixSuffix: Mono_$(_BuildConfig)_LinuxBionic
244-
245204
#
246205
# Build the whole product using Mono for Android and run runtime tests with Android devices
247206
#

src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.UnixDomainSockets.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class NamedPipeTest_UnixDomainSockets
1212
[Fact]
1313
[PlatformSpecific(TestPlatforms.AnyUnix)]
1414
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "iOS/tvOS blocks binding to UNIX sockets")]
15+
[SkipOnPlatform(TestPlatforms.LinuxBionic, "SElinux blocks UNIX sockets in our CI environment")]
1516
public void NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient()
1617
{
1718
string pipeName = Path.Combine(Path.GetTempPath(), "pipe-tests-corefx-" + Path.GetRandomFileName());
@@ -30,6 +31,7 @@ public void NamedPipeServer_Connects_With_UnixDomainSocketEndPointClient()
3031
[Fact]
3132
[PlatformSpecific(TestPlatforms.AnyUnix)]
3233
[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "iOS/tvOS blocks binding to UNIX sockets")]
34+
[SkipOnPlatform(TestPlatforms.LinuxBionic, "SElinux blocks UNIX sockets in our CI environment")]
3335
public async Task NamedPipeClient_Connects_With_UnixDomainSocketEndPointServer()
3436
{
3537
string pipeName = Path.Combine(Path.GetTempPath(), "pipe-tests-corefx-" + Path.GetRandomFileName());

0 commit comments

Comments
 (0)