Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Use .Open queues in public PRs, non-open in internal - #43135

Merged
carlossanlop merged 9 commits into
dotnet:release/3.1from
carlossanlop:dev/carlossanlop/RemoveOpen
Mar 14, 2022
Merged

carlossanlop merged 9 commits into
dotnet:release/3.1from
carlossanlop:dev/carlossanlop/RemoveOpen

Conversation

@carlossanlop

@carlossanlop carlossanlop commented Mar 3, 2022 •

Copy link
Copy Markdown

Fixes dotnet/runtime#65741

I had to update some queues based on the platforms supported for 3.1:

  • Windows 19H1 to 20H2
  • MacOS 1013 and 1014 to 1015 and 1100

Made sure all the queue names matched something that existed here: https://helix.dot.net/

The sample run is here: https://dev.azure.com/dnceng/internal/_build/results?buildId=1641884&view=results

Kudos to @hoyosjs for helping me find the right places to change.

@carlossanlop

Copy link
Copy Markdown
Author

My knowledge about this is very limited. I assume it's expected to see the CI failing, here and in the internal run.

Comment thread eng/pipelines/linux.yml Resolved
Comment thread eng/pipelines/linux.yml Resolved
@MattGal

MattGal commented Mar 3, 2022 •

Copy link
Copy Markdown
Member

My knowledge about this is very limited. I assume it's expected to see the CI failing, here and in the internal run.

If you expect and ignore CI failures you should probably just remove testing since testing costs time and money and you're saying it's normal to be ignoring the outcome of such testing.

The errors are actually interesting and should likely be investigated. Specifically it's complaining about not finding https://dnceng.visualstudio.com/public/_artifacts/feed/dotnet-eng/NuGet/Microsoft.DotNet.Helix.Sdk/2.0.0-beta.21552.6/overview despite https://github.com/dotnet/corefx/blob/release/3.1/NuGet.config#L20 containing a reference to this feed. I'd guess something might be overriding which nuget.config file is used.

EDIT: This is an AzDO outage, from the logs:

The HTTP request to 'GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/flat2/microsoft.dotnet.helix.sdk/index.json' has timed out after 100000ms.
Retrying 'FindPackagesByIdAsync' for source 'https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/flat2/microsoft.dotnet.helix.sdk/index.json'.
Response status code does not indicate success: 500 (Internal Server Error - Maximum waiter thread limit 500 is reached. Throwing exception to avoid thread exhaustion. (DevOps Activity ID: 5AD5BDCF-9E23-45A3-BD21-13199A4EAFF8)).

... so retry should work.

@carlossanlop

Copy link
Copy Markdown
Author

If you expect and ignore CI failures

I did not say we should ignore the failures. I said seeing failures might be expected, based on how complicated the servicing process for 3.1 has been and there are many issues piled one on top of another.

you should probably just remove testing since testing costs time and money

Not sure why that is being suggested. Is that something that is being planned? Regardless, it's outside the scope of this PR that I was asked to work on.

and you're saying it's normal to be ignoring the outcome of such testing.

Once again, I never said ignore.

@hoyosjs

hoyosjs commented Mar 3, 2022 •

Copy link
Copy Markdown
Member

If you expect and ignore CI failures you should probably just remove testing since testing costs time and money and you're saying it's normal to be ignoring the outcome of such testing.

Nope, this is for internal PRs (MSRC testing).

Sadly, the internal run didn't test the codepath being tested. For this to run we need eq(${{ parameters.isOfficialBuild }}, False) and we have ${{ and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest')) }}. For manual builds, we get:

Evaluating: and(ne(variables['System.TeamProject'], 'public'), notIn(variables['Build.Reason'], 'PullRequest'))
Expanded: and(ne('internal', 'public'), notIn('Manual', 'PullRequest'))
Result: True

So, for this to actually use those queues we need isOfficialBuild = False. The only way to achieve that is to create a PR. This is also going to hit one other snag. HelixApiAccessToken needs to be set, and we set it only for official builds here

${{ if eq(parameters.isOfficialBuild, 'true') }}:
officialBuildId: $(Build.BuildNumber)
helixToken: $(HelixApiAccessToken)

I would relax this condition to be if running on internal, make the helix token available, and we need to remove creator in the next line on internal (instead of isOfficialBuild only set it on public)

@hoyosjs

hoyosjs commented Mar 11, 2022

Copy link
Copy Markdown
Member

Sample build: https://dev.azure.com/dnceng/internal/_build/results?buildId=1658409&view=results

@mmitche Given this is to enable MSRC PR testing, what's the timeline for this one?

@ericstj @jeffhandley any idea who could help with a review here? There's some changes that will probably need scrutiny (Several of the old queues were dead, and this can have testing fallout)

@hoyosjs

hoyosjs commented Mar 11, 2022

Copy link
Copy Markdown
Member

For macOS:

For Linux-musl: this one is scary - a lot of Http test failures.

For Windows:

*nix in general:

Comment thread eng/pipelines/linux.yml Resolved
Comment thread eng/pipelines/windows.yml Resolved
Comment thread eng/pipelines/linux.yml Resolved
Comment thread eng/pipelines/windows.yml
- windowsArmQueue: Windows.10.Arm64.Open

- ${{ if eq(parameters.fullMatrix, 'false') }}:
- netcoreappWindowsQueues: Windows.7.Amd64.Open+Windows.81.Amd64.Open+Windows.10.Amd64.Client21H1.Open

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.

Before had an ES build, which I assume means the OS is in Spanish. After does not.

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.

There's no client queue with ES anymore

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.

That's... unfortunate. But, if that's just where things are, then I guess we have to take what we can get.

Comment thread eng/pipelines/windows.yml Resolved
@bartonjs

Copy link
Copy Markdown
Member

Some System.Io failures. These one seem legitimate, but can't tell.

I don't see them now (maybe I looked in the wrong place). If they were all System.IO.Ports.Tests.OpenDevices.OpenDevices01 failing with "unknown error 5", that's a known issue that needs a test-only backport to 3.1 (with a backport issue opened somewhere).

@bartonjs

Copy link
Copy Markdown
Member

If we can get the two lines added back to restore the Nano testing, LGTM.

@hoyosjs

hoyosjs commented Mar 11, 2022

Copy link
Copy Markdown
Member

@bartonjs

Copy link
Copy Markdown
Member

Ah. Those IO failures look like dotnet/runtime#20986, which means we probably need to backport the fix (@dotnet/area-system-io). Not sure why it isn't failing in the .Open versions.

@bartonjs

Copy link
Copy Markdown
Member

@wfurt Can you look at the HTTP failures in https://dev.azure.com/dnceng/internal/_build/results?buildId=1658409&view=ms.vss-test-web.build-test-results-tab&runId=45680330&resultId=154547&paneView=debug and say if any of them are reasons that we should hold off on accepting these helix queue changes? I didn't see similar issues/failures in dotnet/runtime.

@bartonjs

Copy link
Copy Markdown
Member

https://dev.azure.com/dnceng/internal/_build/results?buildId=1658409&view=ms.vss-test-web.build-test-results-tab is probably the more useful link for the HTTP test failures. (GetAsyncVersion11_BadResponseVersion_ThrowsOr00 and maybe some friends)

@tarekgh

tarekgh commented Mar 11, 2022

Copy link
Copy Markdown
Member

@hoyosjs

Some Globalization IDNA conformance test failed in macOS 11.00 and Alpine. They probably use a newer version of Unicode helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-corefx-refs-pull-43135-merge-1b06bc9361344aa19e/System.Globalization.Extensions.Tests/1/console.806b00c1.log?sv=2019-07-07&se=2022-03-31T11%3A33%3A39Z&sr=c&sp=rl&sig=CS9s6NRnA4wQva%2BdE3lXxKCEaprF2nesy3NJrmvmtos%3D This was fixed in RT, see dotnet/runtime#29224. @tarekgh Tarek Mahmoud Sayed FTE does this need to be ported?

My Understanding is Alpine enable the Globalization Invariant Mode which I expect the IDN will not work perfectly. I agree this is most properly because the Unicode test file version used. If porting the fix here will help, please try it. I can help looking if this is didn't help.

@wfurt

wfurt commented Mar 12, 2022

Copy link
Copy Markdown
Member

he test failures looks weird. I don't remember seeing anything like this. Do we know if everything looks green on other PRs or the release build? This was the "PlatformHandler" e.g. when we integrate with libcurl. We dump that I think around 5.0 so we did not touch it for very long time.

On. side done, adding new queues should not impact Linux runs. So what ever that I feel it is not caused by this PR.

@bartonjs

Copy link
Copy Markdown
Member

Sounds to me like we can merge this as-is, and clean up any other test debt on the other side of the merge.

@carlossanlop
carlossanlop merged commit eb5f6e9 into dotnet:release/3.1 Mar 14, 2022
@carlossanlop
carlossanlop deleted the dev/carlossanlop/RemoveOpen branch March 14, 2022 17:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants