Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Revert "Enable json serializer in crossbar router" #4656

Merged
merged 2 commits into from
Sep 13, 2019

Conversation

etam
Copy link
Contributor

@etam etam commented Aug 28, 2019

This reverts commit 51d8a97.

This was introduced in #3926, but it's not needed anymore.

@etam etam self-assigned this Aug 28, 2019
@etam etam requested review from shadeofblue and kmazurek August 28, 2019 12:05
@shadeofblue
Copy link
Contributor

@etam please rebase that against develop -> it's not important for this release

@etam etam force-pushed the revert_crossbar_json_serializer branch from 4cc02d5 to fdb7b09 Compare August 30, 2019 07:30
@etam etam requested a review from Krigpl as a code owner August 30, 2019 07:30
@etam etam changed the base branch from b0.20 to develop August 30, 2019 07:31
@etam
Copy link
Contributor Author

etam commented Aug 30, 2019

rebased

@Krigpl Krigpl removed their request for review August 30, 2019 07:35
@etam etam force-pushed the revert_crossbar_json_serializer branch from fdb7b09 to c9c5088 Compare September 10, 2019 13:47
Copy link
Contributor

@kmazurek kmazurek left a comment

Choose a reason for hiding this comment

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

keanu_ok

@codecov
Copy link

codecov bot commented Sep 10, 2019

Codecov Report

Merging #4656 into develop will increase coverage by 1.18%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #4656      +/-   ##
===========================================
+ Coverage    89.08%   90.27%   +1.18%     
===========================================
  Files          211      211              
  Lines        19717    19667      -50     
===========================================
+ Hits         17565    17754     +189     
+ Misses        2152     1913     -239

@etam
Copy link
Contributor Author

etam commented Sep 11, 2019

Somehow this change is making integration tests fail with ReactorAlreadyInstalledError. I can reproduce this on my PC.

@etam
Copy link
Contributor Author

etam commented Sep 11, 2019

It fails, because I removed importing golem.rpc.router from golemapp.py. Which is totally weird and it shouldn't behave like that.

This reverts commit 51d8a97.

This was introduced in #3926, but it's not needed anymore.
@etam
Copy link
Contributor Author

etam commented Sep 12, 2019

I pinned down a bit this twisted weird behavior: In golem/network/hyperdrive/client.py there is from twisted.web.client import readBody, which internally does from twisted.internet import [...] reactor. This installs default reactor. Somehow importing golem.rpc.router in golemapp.py inhibits installing reactor.

Edit: import golem.rpc.router can be replaced by more precise import crossbar.personality.

@mfranciszkiewicz
Copy link
Contributor

@etam Also from twisted.web.client import readBody can be safely converted to a local import in _async_request

@etam etam force-pushed the revert_crossbar_json_serializer branch from c9c5088 to 7f6e502 Compare September 13, 2019 07:48
@etam
Copy link
Contributor Author

etam commented Sep 13, 2019

@etam Also from twisted.web.client import readBody can be safely converted to a local import in _async_request

This seems to be not enough. I've made a workaround for now. Let's resolve this in a separate task.

@etam etam merged commit 78aa5e9 into develop Sep 13, 2019
@etam etam deleted the revert_crossbar_json_serializer branch September 13, 2019 08:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants