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
🏗 Update packages used in validator
and validator/nodejs
#15443
🏗 Update packages used in validator
and validator/nodejs
#15443
Conversation
/to @Gregable @honeybadgerdontcare Seems like upgrading
|
@rsimha why would this change the order of attributes in the protoascii? |
Ahh, this is the minified version, so closure is doing something odd to the protoasciis. we only care about the ordering of the attributes for the non-minified version, maybe we can move these tests to the non-minified version. |
@honeybadgerdontcare Can do. Are the minified tests in a different file? Or a different section of Edit: I just realized that four kinds of tests are failing with the new version of
Let me know if these are expected, and if not, how they can be mitigated. |
Let me take a closer look on Monday. I think we want all these tests against the un-minified protoascii. |
Blocked by #15509 |
@honeybadgerdontcare I've updated this PR to run
Any idea what's missing? |
/cc @erwinmombay, who might know what's going on in #15443 (comment) |
To see why the
|
@rsimha I'm going to guess that validator_rules_test.js still needs validator.js. Note that validator_gen_js.py is what provides these requires in validator_rules_test.js:
|
Oh, unless |
@honeybadgerdontcare Yeah, I'm not sure what's going on here. In case someone else knows what's missing, here's how I'm invoking closure compiler (with |
@honeybadgerdontcare @Gregable I have some new info after chatting offline with @erwinmombay. It turns out that with the way Since the problem I'm trying to solve right now is the few tests that are failing, particularly the "order of attributes" test, I wanted to propose this plan:
WDYT? Is this acceptable for now? (given that we're not running any tests in |
That sounds OK to me. |
@rsimha The only reason we're not running those tests is because they were split out as a result of these changes. So I don't view that as a good reason to start ignoring tests. I suggest we undo the split and not run the attributes in order test with the TODO. |
@Gregable @honeybadgerdontcare @twifkak This is now ready for review. Closure compiler updated, several tests fixed, and one test skipped (with a TODO). |
@honeybadgerdontcare Can do. I assume I should just move the tests back to |
@rsimha yes that is where it split from. thx! |
@honeybadgerdontcare Done in final commit. Verified that we're still running the same number of tests. Thanks for all the patient reviews! |
The packages used in
validator
andvalidator/nodejs
have gone out of date. The following security / deprecation warnings are seen during the installation step ofgulp validator
:This PR does the following:
validator
andvalidator/nodejs
google-closure-compiler
andgoogle-closure-library
from20160517
to20180506
package-lock.json
so that the versions are locked down during testing on Travisvalidator_rules_test.js
back tovalidator_test.js
attrs not sorted alphabetically by name
) withTODO(#15443)
This increases the number of tests run by
gulp validator
from 537 to 5425