Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run nativeaot tests in helix #81439

Merged
merged 15 commits into from
Feb 6, 2023
Merged

Run nativeaot tests in helix #81439

merged 15 commits into from
Feb 6, 2023

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented Jan 31, 2023

This changes the existing NativeAot smoke test runs to run in helix. I changed the multi-module test run (only supported on windows) to run only in the checked configuration, to avoid having to add a separate windows build script invocation inside one of the yaml templates.

@ghost
Copy link

ghost commented Jan 31, 2023

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: sbomer
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

@agocke
Copy link
Member

agocke commented Jan 31, 2023

Hm, not sure how this works. Weren't we already running the smoke tests on the build machine? Does this disable that run? Or just add a new one?

@agocke
Copy link
Member

agocke commented Jan 31, 2023

(nvm didn't notice this was a draft)

- buildConfig casing
- Support uniform test filter syntax for bash/cmd
- Remove problematic quotes from testFilter argument
And remove broken os arg.

Also clean up:
- release config comment
- use of platform-specific test filter
- Pass args not recognized by build.cmd last
- Make native exe executable on unix
- Replace existing nativeaot smoke test jobs with
  helix versions
- Move BuildNativeAotFrameworkObjects out to runtime.yml, and only pass
it for checked windows job.
- Use nativeaot-post-build-steps to continue building
  nativeaot test apps
Also clean up name suffixes
@sbomer sbomer marked this pull request as ready for review February 4, 2023 00:52
@sbomer sbomer requested a review from trylek February 4, 2023 00:53
displayName: Build Tests

- ${{ if ne(parameters.runtimeFlavor, 'mono') }}:
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:LibrariesConfiguration=${{ parameters.buildConfig }} -ci os ${{ parameters.osGroup }} ${{ parameters.archType }} $(buildConfigUpper)
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) ${{ parameters.archType }} $(buildConfigUpper) ${{ parameters.testBuildArgs }} -ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we need the LibrariesConfiguration in this case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to use the buildConfig because libraries are always built in the Release configuration (the default) for these legs. If we ever want to use these templates with different libraries config, it's easy to add a parameter (I just didn't want to do it here to avoid changing the mono build legs).

Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

eng/pipelines/coreclr/nativeaot-post-build-steps.yml Outdated Show resolved Hide resolved
eng/pipelines/runtime.yml Outdated Show resolved Hide resolved
- Remove unnecessary parameters
- Clean up nameSuffix
@sbomer
Copy link
Member Author

sbomer commented Feb 6, 2023

Failures are #81123 and #75244

@sbomer sbomer merged commit 4d333e1 into dotnet:main Feb 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Mar 9, 2023
@sbomer sbomer deleted the nativeAotHelix branch November 3, 2023 18:37
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.

4 participants