Uh oh!
There was an error while loading. Please reload this page.
[v8.x backport] util: expand test coverage for util.deprecate - #16430
[v8.x backport] util: expand test coverage for util.deprecate#16430akaila wants to merge 1 commit into
Conversation
akaila
commented
Oct 24, 2017
Merge in other dependent changes as well. |
trivikr
commented
Oct 24, 2017
@akaila Can you rebase instead of merge? |
MylesBorins
commented
Oct 24, 2017
@akaila where did you get 8ea3698 from |
akaila
commented
Oct 24, 2017
@trivikr I did a cherry pick as required in backporting. This is not a merge or rebase. |
akaila
commented
Oct 24, 2017
FYI this is the test failure without the fix: python tools/test.py -J --mode=release parallel/test-internal-util-assertCrypto |
apapirovski
commented
Oct 24, 2017
You shouldn't include anything that is not directly related to the specific PR you're backporting, even if tests are failing. That can be solved in a separate PR if necessary. That said, error changes are semver-major so that fix doesn't seem applicable to v8.x anyway. |
akaila
commented
Oct 24, 2017
Ok I took out that commit. The only commit now is my test and its dependent code. |
@apapirovski the error change in 8ea3698 is in a test, not in core... so it wouldn't be semver major I too am very confused as to how that is passing on master edit: @apapirovski my bad, I'm seeing that the change to error codes is in the backport. |
apapirovski
commented
Oct 24, 2017
@MylesBorins The issue I'm seeing is with a07981d811e2c22c57dbaf614a1caa94a34f30d4 being included here |
MylesBorins
commented
Oct 24, 2017
@akaila we cannot land a07981d in v8.x as it is a semver major change. As it would appear that the backport requires the error change I'm going to go ahead and close this My apologies for the miscommunication, thank you so much for taking the time to open this |
apapirovski
commented
Oct 24, 2017
@MylesBorins I think this all got very confused. 😭 This should still be open, the issue is that it includes a07981d (incorrect) alongside 82134aa (correct) Maybe I'm missing something though... |
The real solution here should be to backport that test but change the error being tested for, since the error is different. `code`argumentmustbeastringWithout using the internal errors. |
akaila
commented
Oct 24, 2017
I get it now. I will revert and modify the test and update the PR. Thanks |
MylesBorins
commented
Oct 24, 2017
hey all... common.expectsError is only for testing internal/error objects... as such I don't think this makes sense to continue with. It will be in 9.x, and the expanded coverage doesn't make sense for 8. I will avoid closing again but I advise that we close this |
targos
commented
Oct 24, 2017
|
@MylesBorins Is there downside to having an extra test for |
MylesBorins
commented
Oct 24, 2017
@targos gtk Sorry for being a party pooper, please safely ignore me |
Test for invalid argument types passed to code on util.deprecate. PR-URL: #16305 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
akaila
commented
Oct 24, 2017
Backported the test and corrected the error message and removed the error code. Verified it passes. |
8ec47e5 to
61413c2Compareb183192 to
fc8acc8CompareTest for invalid argument types passed to code on util.deprecate. PR-URL: #16305 Backport-PR-URL: #16430 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Test for invalid argument types passed to code on util.deprecate. PR-URL: #16305 Backport-PR-URL: #16430 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Backporting: #16305
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
util