Skip to content

Switch to Synapse >= 1.0#4646

Merged
LefterisJP merged 1 commit into
raiden-network:developfrom
ulope:feature/synapse-1.x
Oct 1, 2019
Merged

Switch to Synapse >= 1.0#4646
LefterisJP merged 1 commit into
raiden-network:developfrom
ulope:feature/synapse-1.x

Conversation

@ulope
Copy link
Copy Markdown
Collaborator

@ulope ulope commented Aug 19, 2019

(Not mergable currently because of #4634. Temporarily uses the base64 solution mentioned in the issue.)

This updates our testing dependency to matrix-synapse 1.2.1.

The Synapse config files generated by the integration tests have been updated to align with new / changed options.

Additionally this no longer uses local TLS certificates speeding up tests.

Fixes: #3387
Required for: #4292
Blocked by: #4634

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 19, 2019

Codecov Report

Merging #4646 into develop will decrease coverage by 0.03%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4646      +/-   ##
===========================================
- Coverage    80.71%   80.68%   -0.04%     
===========================================
  Files          120      120              
  Lines        14597    14605       +8     
  Branches      2262     2263       +1     
===========================================
+ Hits         11782    11784       +2     
- Misses        2151     2158       +7     
+ Partials       664      663       -1
Impacted Files Coverage Δ
raiden/network/transport/matrix/utils.py 85.98% <100%> (+0.53%) ⬆️
raiden/network/transport/matrix/transport.py 80.57% <50%> (-0.37%) ⬇️
raiden/waiting.py 81.71% <0%> (-4%) ⬇️
raiden/utils/http.py 72.59% <0%> (-2.97%) ⬇️
raiden/tasks.py 67.88% <0%> (-2.19%) ⬇️
raiden/utils/echo_node.py 67.79% <0%> (-1.7%) ⬇️
raiden/transfer/channel.py 89.65% <0%> (+0.22%) ⬆️
raiden/network/transport/matrix/client.py 70.12% <0%> (+0.32%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4fabaa...acfb515. Read the comment docs.

@pirapira
Copy link
Copy Markdown
Contributor

@ulope I think this PR is the right place to remove the cache hack https://github.com/raiden-network/raiden/pull/4665/files#diff-1d37e48f9ceff6d8030570cd36286a61R183 we introduced.

(Not mergable currently because of raiden-network#4634. Temporarily uses the base64
solution mentioned in the issue.)

This updates our testing dependency to matrix-synapse 1.2.1.

The Synapse config files generated by the integration tests have been
updated to align with new / changed options.

Additionally this no longer uses local TLS certificates speeding up
tests.

Fixes: raiden-network#3387
Required for: raiden-network#4292
@ulope ulope force-pushed the feature/synapse-1.x branch from 4633a64 to acfb515 Compare September 30, 2019 17:51
@ulope ulope marked this pull request as ready for review October 1, 2019 08:43
@auto-assign auto-assign Bot requested a review from LefterisJP October 1, 2019 08:43
recovered = recover(
data=user.user_id.encode(), signature=Signature(decode_hex(displayname))
)
if DISPLAY_NAME_HEX_RE.match(displayname):
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.

Is this new if check covered by any unit test?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, invalid signatures are already being tested for. This is just an optimization to skip ecrecover on obviously invalid values.

Copy link
Copy Markdown
Contributor

@LefterisJP LefterisJP left a comment

Choose a reason for hiding this comment

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

Anyway this looks good to me

@LefterisJP LefterisJP merged commit 4cf077e into raiden-network:develop Oct 1, 2019
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.

Investigate Matrix 1.0 / Synapse 0.99, 1.0 changes

3 participants