Skip to content

ENH: Add more automatic tests #2194

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Aug 9, 2025

Move filename checks from bash script executed by CircleCI to Python script executed by GitHub actions for consistency and to be able to run on Windows. Moved the unstable pre-commit json file schema check to the other extension validation checks.

Added tests:

  • check that the extension description file name matches the project name in the CMakeLists.txt file
  • check that the extension can be git cloned
  • check that a license file can be found in the extension's repository
  • check that extension category is in the allowed list
  • check that the extension icon and screenshot URLs are valid image files

Show repository URL, CMakeLists.txt, license file in a report in the pull request. This makes quick review of extension submissions a bit easier.

@lassoan lassoan requested a review from jcfr August 9, 2025 18:49
@lassoan lassoan self-assigned this Aug 9, 2025
@lassoan lassoan force-pushed the add-more-automatic-tests branch 2 times, most recently from 5aba0b7 to d5ba1d4 Compare August 9, 2025 18:59
@jcfr
Copy link
Member

jcfr commented Aug 9, 2025

I just removed the requirements to have the Circle tests & I also just updated the associated CircleCI project to "disable" the webhook.

@jcfr jcfr force-pushed the add-more-automatic-tests branch from d5ba1d4 to 9f8dce8 Compare August 9, 2025 19:17
Move filename checks from bash script executed by CircleCI to Python script executed by GitHub actions for consistency and to be able to run on Windows.

Added tests:
- check that the extension description file name matches the project name in the CMakeLists.txt file
- check that the extension can be git cloned
- check that a license file can be found in the extension's repository
- check that extension category is in the allowed list
- check that the extension icon and screenshot URLs are valid image files

Show repository URL, CMakeLists.txt, license file in a report in the pull request. This makes quick review of extension submissions a bit easier.
@lassoan lassoan force-pushed the add-more-automatic-tests branch from 9f8dce8 to 89ed9f1 Compare August 9, 2025 20:31
@jcfr
Copy link
Member

jcfr commented Aug 9, 2025

@lassoan Thanks for working on this 🙏 This will greatly improve the reviewer experience 💯

I added a few tweaks that should hopefully simplify the maintenance.

Did you have a chance to test against a fork ?

@lassoan
Copy link
Contributor Author

lassoan commented Aug 11, 2025

Thank you for the updates @jcfr.

It seems that you have tried to enable commenting from a fork, but it does not appear to work (see the Extension Validation check failure above.

The failing Lint check above is a good example that the json schema check still sometimes fails. It may be easier to just disable it, since the schema is checked in the Extension Validation check anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants