-
Notifications
You must be signed in to change notification settings - Fork 22
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
Better performance when running specified test. Function to exclude tests #130
Conversation
Translate into da
Thanks for the pull request, and welcome! I'll come back with a review shortly. |
This seems like a nice feature! Though I have few nits to pick. First, we're only using the git master branch as a reference to the last release. We do all development on the develop branch. If you could rebase these changes onto the develop branch and change the target branch of the pull request to develop, that would be great. (You'll notice that we accidentally merged stuff into the master branch since last release and fixed it up by adding revert commits. Take care not to carry over those commits to the develop branch when rebasing. I'm sorry for the inconvenience.) Second, the Third, in my opinion the level of documentation is really good. USING.md should probably be updated with this new option. If you want to you can make a suggestion for such an update. But you don't have to. @sandoche2k, could you advice here? |
The document uses the basic module as an example. That is probably a bad example since the basic module will always be run even if not selected. Module basic could probably not be excluded. |
@lowinger42, I suggest that you rebase your branch on the develop branch. Your proposal should probably handle the basic module specially since the engine will always run the basic module. |
All good suggestions, I'll get back with some updated code, in the correct branch. |
Good catch! Actually, the special handling of Basic is implemented in I think both The The If Thoughts on this? @vlevigneron, @matsduf, @sandoche2k, @lowinger42. I'm sorry @lowinger42 if you already started down a different path, and I fully understand if you don't feel like cleaning up old design flaws of ours. If that's the case, just say so and we'll take care of this. Otherwise, I'll be happy to guide you through any weeds :) |
@vlevigneron, can you take a look at this and the suggestions from @mattias-p? |
The ideas are planned to be included in #359. |
This PR is superseded by #359. |
Thank you @lowinger42 for raising this issue! |
Sometimes it is desired to skip some tests, for example in an Anycast DNS setup where all servers are in the same AS.
When running multiple test with --test, the performance is not that good since a Zonemaster::Engine->zone( $domain ) object is created for each specified test. This fixes this by only creating this object once