-
Notifications
You must be signed in to change notification settings - Fork 6.4k
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Prevent new uses of old ztest API #46824
Comments
The docs likely need to be updated to use only newer methods as a first step for this. The docs at https://docs.zephyrproject.org/latest/develop/test/ztest.html still shows samples and such with what I guess should no longer be allowed. |
Process WG:
@yperess can you attend next week to discuss further if there's still something to handle here? |
This is for long migrations that take time. If we deprecate the old API our CI will break. We just want to prevent new uses.
Sure |
Sorry, I was stuck in another meeting. The idea of this workflow was to provide the following:
This issue was specific to the ztest API migration, and that's already got a lot of traction. I'm happy to just close this issue and ignore it, but I do think that this will come up again so it might be nice to have the mechanism in place. |
OK, I'lll close this for now and we can see if we need to reopen in the future. Thanks. |
Discussed in the TSC meeting, we need a way to prevent new uses of the ztest API.
I believe that the best way to do this will be to add a new check for PRs similar to a language filter that checks for inappropriate language. To do this we'd need:
zephyrproject-rtos/word-blocklist
a.
ztest_register_test_suite
b.
ztest_test_suite
I don't believe that we should block adding more tests to existing suites. That will automatically happen as people migrate to the V2 API.
Once we're done,
zephyrproject-rtos/word-blocklist
can remain and we can use this for other migrations. It's also possible that we can find an existing GitHub CI for profanity filter and simply fork it. I don't think it'll be a bad idea anyway to have a profanity filter.The text was updated successfully, but these errors were encountered: