-
Notifications
You must be signed in to change notification settings - Fork 49
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
Concurrency issue when running multiple HtmlSanityCheck tasks in parallel #211
Comments
oops - I just recently re-implemented Didn't take that kind of parallel usage into account - any idea for a resolution? |
Seems we have to bite the bullet and refactor to configuration INSTANCES instead of a REGISTRY again. I'll try that on a branch off 1.0.0-RC-2. |
If it's fine adding other dependencies to the plugin (Guice?), with dependency injection maybe? It would not require passing the configuration around (not explicitly/manually at least). |
…ks fine locally)... don't want to debug Travis-CI, so I remove 503 from the list of statuscodes to be tested...
@thc202, could you possibly supply a regression test for it? The class 'HtmlSanityCheckTaskFunctionalTest' might provide an idea... I'm currently refactoring Configuration back to instance-based (instead of registry-based). |
should be fixed with 1.0.0-RC-2, which I just published to gradle plugin portal... could you please verify? thx |
When running Gradle with
--parallel
flag and with multiple subprojects configured with HtmlSanityCheck it might happen that the configurations of one subproject end up being used by other, for example:(The plugin was tweaked to print the source being used, to show the issue more easily.)
The second task
:addons:browserView:htmlSanityCheck
should be using its own source directory (/zap-extensions/addons/browserView/src/main/resources
) instead of the one from the other subproject.From an initial investigation this seems to be caused by the
Configuration
being a singleton, so configurations set by one task might be used/overridden by others.The text was updated successfully, but these errors were encountered: