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

Metainfo file validation failing #59

Closed
rffontenelle opened this issue May 17, 2023 · 5 comments
Closed

Metainfo file validation failing #59

rffontenelle opened this issue May 17, 2023 · 5 comments

Comments

@rffontenelle
Copy link
Contributor

Spotted with meson test

data/com.vixalien.sticky.appdata.xml: FAILED:
• attribute-invalid     : <screenshot> width (422) too small [https://raw.githubusercontent.com/vixalien/sticky/v0.1.1/data/resources/screenshots/note.png] minimum is 624px
• style-invalid         : <image> has vertical padding [https://raw.githubusercontent.com/vixalien/sticky/v0.1.1/data/resources/screenshots/note.png]
• style-invalid         : <image> has horizontal padding [https://raw.githubusercontent.com/vixalien/sticky/v0.1.1/data/resources/screenshots/note.png]
• attribute-invalid     : <screenshot> width (422) too small [https://raw.githubusercontent.com/vixalien/sticky/v0.1.1/data/resources/screenshots/notes.png] minimum is 624px
• style-invalid         : <image> has vertical padding [https://raw.githubusercontent.com/vixalien/sticky/v0.1.1/data/resources/screenshots/notes.png]
• style-invalid         : <image> has horizontal padding [https://raw.githubusercontent.com/vixalien/sticky/v0.1.1/data/resources/screenshots/notes.png]
• style-invalid         : <ul> cannot start a description [(null)]
• style-invalid         : Not enough <p> tags for a good description [0/1]
stderr:
Validation of files failed
@vixalien
Copy link
Owner

oh well.

I think most of the errors are because the image is too small and that the images have padding (i.e the space between the window and the image's borders)

I think we don't want to make the images larger, as usually sticky notes are meant to be small. The padding is also put there by GNOME's screenshot tool, which allows to show the drop shadow. Other GNOME app's screenshots also have the padding.

For the other errors, I'll make sure to fix them

@rffontenelle
Copy link
Contributor Author

Then you might want appstream validation to be lax (validate -> validate-relax), so running meson test in CLI or adding run-tests: true to flatpak/flatpak-github-actions action doesn't fail.

test('Validate appstream file', appstream_util, args: ['validate', appstream_file])

@rffontenelle
Copy link
Contributor Author

rffontenelle commented May 19, 2023

Would you be interested in this kind of annotation of appstream-util output? This is possible adding a problem-matcher rule that matches appstream-util's output. So, instead of having to enter the log to view the error message, they are annotated in the Summary page of the workflow run.

Captura de tela de 2023-05-19 11-08-44

@vixalien
Copy link
Owner

vixalien commented May 19, 2023 via email

@vixalien
Copy link
Owner

vixalien commented Jun 1, 2024

should be fixed by #110

@vixalien vixalien closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants