Skip to content
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

Serialize warnings #45

Merged
merged 20 commits into from Apr 18, 2019
Merged

Serialize warnings #45

merged 20 commits into from Apr 18, 2019

Conversation

ecpeterson
Copy link
Contributor

@ecpeterson ecpeterson commented Mar 27, 2019

Closes #43: captures Server-side warnings and re-raises them on the Client side.


;; send the client response, whether success or failure
(%push-raw-request receiver identity empty-frame (serialize reply)))))
(handler-case
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Emacs reindented this for me, but the real change is the handler-bind and the :|warnings| slot initializers.

@ecpeterson ecpeterson marked this pull request as ready for review March 27, 2019 13:17
@ecpeterson ecpeterson requested a review from a team as a code owner March 27, 2019 13:17
rpcq/_utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@stylewarning stylewarning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small things; looks fine overall.

rpcq/_utils.py Outdated Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
src/server.lisp Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
rpcq/_utils.py Outdated Show resolved Hide resolved
rpcq/_client.py Outdated Show resolved Hide resolved
src/rpcq.lisp Outdated Show resolved Hide resolved
src/rpcq.lisp Outdated
(defmethod %serialize ((payload cons))
(loop :for elt :in payload :collect (%serialize elt)))
(map 'vector #'%serialize payload))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we nix serializing conses altogether?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you were to ask me: yes. If you were to ask someone else with more principles about backwards compatibility: no, or not yet.

src/rpcq.lisp Outdated Show resolved Hide resolved
(defmethod %deserialize ((payload cons))
(loop :for elt :in payload :collect (%deserialize elt)))
(map 'vector #'%deserialize payload))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question here

src/server.lisp Outdated Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
src/server.lisp Outdated Show resolved Hide resolved
@stylewarning
Copy link
Contributor

This LGTM. What changes ripple through the stack?

@ecpeterson
Copy link
Contributor Author

AFAICT, this is the only ripple: quil-lang/quilc#188 .

@stylewarning
Copy link
Contributor

let's merge after the weekend

@stylewarning
Copy link
Contributor

Weekend is done; anybody want to merge? (I'm not a CODEOWNER.)

rpcq/_utils.py Outdated Show resolved Hide resolved
rpcq/_utils.py Outdated Show resolved Hide resolved
rpcq/_spec.py Show resolved Hide resolved
rpcq/_utils.py Outdated Show resolved Hide resolved
@caryan
Copy link
Contributor

caryan commented Apr 16, 2019

Only serious concern is whether this will swallow warnings in the server logs.

@ecpeterson
Copy link
Contributor Author

ty everyone

@ecpeterson ecpeterson merged commit 283eca5 into master Apr 18, 2019
@karalekas karalekas deleted the serialize-warnings branch April 18, 2019 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warnings over the wire
4 participants