-
Notifications
You must be signed in to change notification settings - Fork 8
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
metadatapath
analyzer is being skipped
#101
Comments
Just to give some more information, it happens because I don't have any screenshots, so it returns nil here
Which then forces plugin-validator/pkg/runner/runner.go Line 83 in 6da5c1c
|
Hi @eh-am thanks for the bug report. Do you have a plugin archive file I can use to test this? It seems the loop you mention seems to be indeed the problem but just removing it might bring problems for other validators so I want to check first the case and see if we can fix it somehow else. |
Hi @academo, here's an example. grafana-datasource-plugin-1.2.0.zip I disabled all analyzers except As I mentioned in the previous message (#101 (comment)) the problem seems to come from the screenshot analyzer, which returns This is |
Thanks @eh-am I'll take a look. You should also feel free to open a PR if you want to fix this issue. Be mindful that removing the loop might not be the best option. My idea so far is to return an empty array in the screenshots analyzer. Generally speaking I don't like our current use of |
Hi, the reviewer caught this error when I submitted to grafana, but I expected it to be caught way earlier in my ci lint step:
Which seems to be analyzed by
metadatapath
:plugin-validator/pkg/analysis/passes/metadatapaths/metadatapaths.go
Line 113 in facec49
Debugging a little bit, I found that it was simply not being run!
For illustration, use the following
config.yaml
file:I also found that removing the following loop "fixes" the issue:
plugin-validator/pkg/runner/runner.go
Lines 82 to 86 in facec49
I didn't look too much so I don't know how that affects other places.
The text was updated successfully, but these errors were encountered: