-
Notifications
You must be signed in to change notification settings - Fork 447
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
Add a source-build smoke test for native debug symbols #16488
Add a source-build smoke test for native debug symbols #16488
Conversation
Hm, tests are failing because |
IMO, these dependencies should be added to build buildtools-prereqs container. |
The dependencies are needed by dotnet/installer#16488
70332ee
to
ce5bfc5
Compare
Test is working correctly now and fails due to dotnet/sdk-container-builds#440 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@baronfel - is dotnet/sdk-container-builds#440 something that will be fixed soon? If not, @omajid, what do you think about adding an exclusion for containerize
so that we can merge this PR to ensure no more regressions are submitted.
} | ||
} | ||
|
||
Assert.False(foundIssue); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The UX when the Assert fails requires the user to wade through the test output to find the source of the failure. This is a bit burdensome. This could be improved by capturing the issues in a StringBuilder variable and including it in the userMessage of the Assert.False method.
|
||
private ScanResult ScanFile(string fileName) | ||
{ | ||
string readelfSStdOut = ExecuteHelper.ExecuteProcessValidateExitCode("eu-readelf", $"-S {fileName}", OutputHelper); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see eu-readelf
and file
were added utils to the centos stream 8 image in dotnet/dotnet-buildtools-prereqs-docker@b15dff8. This dependency is going to be required for all of the other distros/images we run in CI - https://github.com/dotnet/installer/blob/main/eng/pipelines/templates/stages/vmr-build.yml#L16.
This leads me to think we should document these native dependencies in the test's readme - https://github.com/dotnet/installer/blob/main/src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/README.md
@MichaelSimons there's a PR by @vlada-shubina that should solve it, just gotta get it green |
4ef5517
to
050cd97
Compare
050cd97
to
ffe4d74
Compare
Not sure where this error is coming from:
I filed #16648 to update Fedora 36 to Fedora 38, and the Fedora 38 containers include |
@eerhardt - See #16488 (comment) |
@sbomer any idea on the above error?
@mthalman @omajid - is there a binlog of the build with this error? |
It's the same error that came up in dotnet/source-build#3490 - which if the root cause is the same should be fixed by dotnet/runtime#87071. Is that runtime fix included in the bits which produced the error? |
Oh yes, sorry about that. @omajid, these errors are expected currently in the main branch. Should be resolved once #16621 gets merged and incorporated in the VMR. |
This is a new error:
Anyone seen this before? |
This same error is appearing in dotnet/source-build#3528 when building smoke-tests |
The VMR Source-Build Fedora38_Offline_CurrentSourceBuiltSdk_x64 leg is failing because of dotnet/source-build#3515. |
35f01ff
to
f4e4dfd
Compare
1a48b13
to
f00fee1
Compare
@omajid, looks like the tests passed. When convenient, revert the changes to validate in PR validation. |
This test runs `file` to find ELF binaries, and then `eu-readelf` against it to find if all the indicators for native debug symbols are present. The technique was explained to me by Mark Wielaard ages ago. This test currently fails. It will continue to fail until dotnet/sdk-container-builds#440 is fixed. Contributes to dotnet/source-build#3462
e9afb75
to
db9fc52
Compare
This test runs
file
to find ELF binaries, and theneu-readelf
against it to find if all the indicators for native debug symbols are present.The technique was explained to me by Mark Wielaard ages ago.
This test currently fails. It will continue to fail until dotnet/sdk-container-builds#440 is fixed.
Contributes to dotnet/source-build#3462