Skip to content

Serialize warnings#45

Merged
ecpeterson merged 20 commits intomasterfrom
serialize-warnings
Apr 18, 2019
Merged

Serialize warnings#45
ecpeterson merged 20 commits intomasterfrom
serialize-warnings

Conversation

@ecpeterson
Copy link
Copy Markdown
Contributor

@ecpeterson ecpeterson commented Mar 27, 2019

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

Comment thread src/server.lisp

;; send the client response, whether success or failure
(%push-raw-request receiver identity empty-frame (serialize reply)))))
(handler-case
Copy link
Copy Markdown
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
Comment thread src/messages.lisp
Comment thread src/messages.lisp
Comment thread rpcq/_utils.py Outdated
Comment thread rpcq/_utils.py
Copy link
Copy Markdown
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.

Comment thread rpcq/_utils.py Outdated
Comment thread src/server.lisp Outdated
Comment thread src/server.lisp
Comment thread src/server.lisp Outdated
Comment thread src/server.lisp Outdated
Comment thread rpcq/_utils.py Outdated
Comment thread rpcq/_client.py Outdated
Comment thread src/rpcq.lisp Outdated
Comment thread src/rpcq.lisp Outdated

(defmethod %serialize ((payload cons))
(loop :for elt :in payload :collect (%serialize elt)))
(map 'vector #'%serialize payload))
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread src/rpcq.lisp Outdated
Comment thread src/rpcq.lisp

(defmethod %deserialize ((payload cons))
(loop :for elt :in payload :collect (%deserialize elt)))
(map 'vector #'%deserialize payload))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same question here

Comment thread src/server.lisp Outdated
Comment thread src/server.lisp Outdated
Comment thread src/server.lisp Outdated
Comment thread src/server.lisp Outdated
Comment thread src/server.lisp Outdated
Comment thread src/server.lisp Outdated
@stylewarning
Copy link
Copy Markdown
Contributor

This LGTM. What changes ripple through the stack?

@ecpeterson
Copy link
Copy Markdown
Contributor Author

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

@stylewarning
Copy link
Copy Markdown
Contributor

let's merge after the weekend

@stylewarning
Copy link
Copy Markdown
Contributor

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

Comment thread rpcq/_utils.py Outdated
Comment thread rpcq/_utils.py
Comment thread rpcq/test/test_rpc.py
Comment thread rpcq/_utils.py Outdated
Comment thread rpcq/_spec.py
Comment thread rpcq/_utils.py Outdated
@caryan
Copy link
Copy Markdown
Contributor

caryan commented Apr 16, 2019

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

@ecpeterson
Copy link
Copy Markdown
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