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

APICompat failures on Linux #40416

Closed
jkoritzinsky opened this issue Aug 5, 2020 · 13 comments
Closed

APICompat failures on Linux #40416

jkoritzinsky opened this issue Aug 5, 2020 · 13 comments

Comments

@jkoritzinsky
Copy link
Member

jkoritzinsky commented Aug 5, 2020

APICompat is causing failures in PRs that don't change library code on Linux.

/__w/1/s/src/libraries/shims/ApiCompat.proj(116,5): error : CannotRemoveAttribute : Attribute 'System.ComponentModel.TypeConverterAttribute' exists on 'System.ComponentModel.MarshalByValueComponent' in the contract but not the implementation.

Example: #40404

@jkoritzinsky jkoritzinsky added area-Infrastructure-libraries blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' labels Aug 5, 2020
@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Aug 5, 2020
@ghost
Copy link

ghost commented Aug 5, 2020

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

@safern
Copy link
Member

safern commented Aug 8, 2020

Finally I was able to get a repro on my private branch that is publishing the artifacts in question, now to investigate: 🎉

https://dnceng.visualstudio.com/_apis/resources/Containers/4784658/libraries_bin_Linux_arm64_Release?itemPath=libraries_bin_Linux_arm64_Release%2Flibraries_bin_Linux_arm64_Release.tar.gz

@jkotas
Copy link
Member

jkotas commented Aug 13, 2020

@safern @ericstj @danmosemsft This is taking down a large number of PRs. Can we prioritize getting it fixed?

@am11
Copy link
Member

am11 commented Aug 13, 2020

Made a similar fix for SuppressGCTransitionAttribute, by listing it in eng/DefaultGenApiDocIds.txt. Not sure if it is applicable to TypeConverterAttribute.

@safern
Copy link
Member

safern commented Aug 13, 2020

@safern @ericstj @danmosemsft This is taking down a large number of PRs. Can we prioritize getting it fixed?

This is my top priority, I added logging to APICompat and ran multiple builds from a branch using APICompat... now looking at the logs and trying to find the reason behind it. It seems like a race condition... if I can't fix this today I can baseline the errors temporarily until I found the fix.

Made a similar fix for SuppressGCTransitionAttribute, by listing it in eng/DefaultGenApiDocIds.txt. Not sure if it is applicable to TypeConverterAttribute.

We don't want to do this as that means that we don't check those attributes in between ref and implementation, so we would loose coverage for individual libraries.

@danmoseley
Copy link
Member

danmoseley commented Aug 13, 2020

. if I can't fix this today I can baseline the errors temporarily until I found the fix.

@safern what do you tihnk about putting up a PR to do this while you work on it? I think you could potentially direct-submit it if it's just an edit to the baseline and you build locally to check, since the risk is outweighed by the cost of these breaks.

@danmoseley
Copy link
Member

As a general rule if something hits CI it's good to immediately suppress the problem if we can, while we work on it. (?)

@safern
Copy link
Member

safern commented Aug 13, 2020

Yeah I guess that makes sense.

@ViktorHofer
Copy link
Member

@safern what's the status on this?

@Anipik
Copy link
Contributor

Anipik commented Aug 26, 2020

I didnt see this one reproing any more on official builds.

@ViktorHofer
Copy link
Member

Ok so let's close this for now. Thanks.

@safern
Copy link
Member

safern commented Aug 26, 2020

This is not reproing because I baselined the errors. We should still fix this. Will re-open, but I will mvoe to 6.0.0 and remove blocking-clean-ci.

@safern safern reopened this Aug 26, 2020
@safern safern modified the milestones: 5.0.0, 6.0.0 Aug 26, 2020
@safern safern removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Aug 26, 2020
@safern
Copy link
Member

safern commented Dec 2, 2020

The errors are no longer baselined since we moved APICompat to run against 5.0.0 and we haven't gotten a repro (really weird). Closing.

@safern safern closed this as completed Dec 2, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants