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

Icons should be exempted from Manifest-Metadata-Consistency check #177487

Open
mdanish-kh opened this issue Oct 3, 2024 · 5 comments
Open

Icons should be exempted from Manifest-Metadata-Consistency check #177487

mdanish-kh opened this issue Oct 3, 2024 · 5 comments
Labels
Area-Bots These issues are related to the bots assisting with automation Icon Related to icons Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@mdanish-kh
Copy link
Contributor

I'm assuming Icons: are injected somewhere in the publish package step as they are not accepted in the community repository. In that case, Manifest-Metadata-Consistency check should not check against Icons: field. It causes confusion for the PR author as they can't figure out why the bot is reporting a warning since they can't see Icons field in a previous manifest as well.

Some PR examples:

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Oct 3, 2024
@mdanish-kh
Copy link
Contributor Author

[Policy] Issue-Bug
[Policy] Area-Bots

@microsoft-github-policy-service microsoft-github-policy-service bot added Area-Bots These issues are related to the bots assisting with automation Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Oct 3, 2024
@denelon
Copy link
Contributor

denelon commented Oct 3, 2024

Good catch! Do you have any instances where the PR author said anything in comments?

@denelon
Copy link
Contributor

denelon commented Oct 3, 2024

I'm assuming Icons: are injected somewhere in the publish package step

Yes, we didn't want to create "extra" traffic for publishers or "extra" cost for the data transfer. They are captured during validation so we can store them on the CDN and add the metadata to the manifest based on the "installed" icon.

@mdanish-kh
Copy link
Contributor Author

mdanish-kh commented Oct 3, 2024

Good catch! Do you have any instances where the PR author said anything in comments?

I have not yet. That's probably because all the current example PRs are "automated" PRs, but I imagine a newcomer may feel confused if they contribute to a relevant package. You can filter the existing PRs where this check is applied incorrectly with this GitHub filter. Checks for "in:comments Icons"

https://github.com/microsoft/winget-pkgs/pulls?q=is%3Apr+label%3AManifest-Metadata-Consistency+in%3Acomments+Icons+

@denelon denelon added the Icon Related to icons label Oct 3, 2024
@denelon
Copy link
Contributor

denelon commented Oct 3, 2024

OK. The engineering team filed an internal bug to address it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Bots These issues are related to the bots assisting with automation Icon Related to icons Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants