[DataPipe] Fixing map function signature validation#84279
[DataPipe] Fixing map function signature validation#84279NivekT wants to merge 3 commits intogh/nivekt/55/basefrom
map function signature validation#84279Conversation
[ghstack-poisoned]
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 161eca9 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
map function sigature validation
pmeier
left a comment
There was a problem hiding this comment.
Thanks Kevin for the quick fix. LGTM, if CI is green.
map function sigature validationmap function signature validation
|
Build failure unrelated (the |
|
@pytorchbot rebase |
|
@pytorchbot successfully started a rebase job. Check the current status here |
As pmeier [points out](#80267 (comment)), #80267 introduces a bug where an exception is thrown when a built-in function (or a function implemented in C) is used with `.map` because `inspect.signature(fn)` cannot find the function's signature. This PR skips over a function when its signature cannot be found. I believe this case is rare, and if the `fn` is truly incompatible with the usage of `input_col`/`output_col`, an exception will be raised at run time such that users will be able to examine what is wrong. [ghstack-poisoned]
|
Successfully rebased |
|
@pytorchbot merge |
Merge failedReason: Matched rule Core Maintainers, but PR #84279 was not reviewed yet by any of: ezyang, gchanan, soumith, dzhulgakov Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
|
Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea. |
|
@pytorchbot successfully started a merge job. Check the current status here. |
… to allow more appropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
…ppropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
Merge failedReason: View failures on hud. Refusing to merge as mandatory check(s) pull failed for rule superuser. Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot rebase |
|
@pytorchbot successfully started a rebase job. Check the current status here |
As pmeier [points out](#80267 (comment)), #80267 introduces a bug where an exception is thrown when a built-in function (or a function implemented in C) is used with `.map` because `inspect.signature(fn)` cannot find the function's signature. This PR skips over a function when its signature cannot be found. I believe this case is rare, and if the `fn` is truly incompatible with the usage of `input_col`/`output_col`, an exception will be raised at run time such that users will be able to examine what is wrong. [ghstack-poisoned]
|
Successfully rebased |
|
@pytorchbot merge |
|
@pytorchbot successfully started a merge job. Check the current status here. |
… to allow more appropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
…ppropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
… to allow more appropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
…ppropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
… to allow more appropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
…ppropriate messages to be raised first" Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." [ghstack-poisoned]
…messages to be raised first (#84359) Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) @janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." Pull Request resolved: #84359 Approved by: https://github.com/janeyx99, https://github.com/ZainRizvi, https://github.com/malfet
Summary: As pmeier [points out](#80267 (comment)), #80267 introduces a bug where an exception is thrown when a built-in function (or a function implemented in C) is used with `.map` because `inspect.signature(fn)` cannot find the function's signature. This PR skips over a function when its signature cannot be found. I believe this case is rare, and if the `fn` is truly incompatible with the usage of `input_col`/`output_col`, an exception will be raised at run time such that users will be able to examine what is wrong. Pull Request resolved: #84279 Approved by: https://github.com/pmeier, https://github.com/janeyx99 Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/cfb9d0d23314fd28be118b6ca280ded55364e71c Reviewed By: mehtanirav Differential Revision: D39213537 Pulled By: NivekT fbshipit-source-id: 58d176edb3877b0ed0ee74ef4b3a3e61950f7111
…messages to be raised first (#84359) (#84359) Summary: Changing the ordering in merge rules to allow more appropriate messages to be raised first. Context: [#84279](#84279 (comment)) janeyx99: "Approving to unblock, but modifying the merge rules to move the Core maintainers rule to last would be a good idea." Pull Request resolved: #84359 Approved by: https://github.com/janeyx99, https://github.com/ZainRizvi, https://github.com/malfet Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/d648375f13b4a4efd4cd35247098679fce5d4bcd Reviewed By: mehtanirav Differential Revision: D39214439 Pulled By: NivekT fbshipit-source-id: 0fbff5b4aacb9365bdced9d7bbe28bd7c7815a55
Stack from ghstack (oldest at bottom):
mapfunction signature validation #84279As @pmeier points out, #80267 introduces a bug where an exception is thrown when a built-in function (or a function implemented in C) is used with
.mapbecauseinspect.signature(fn)cannot find the function's signature.This PR skips over a function when its signature cannot be found. I believe this case is rare, and if the
fnis truly incompatible with the usage ofinput_col/output_col, an exception will be raised at run time such that users will be able to examine what is wrong.