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

Switch to Synapse >= 1.0 #4646

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

ulope
Copy link
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

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
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
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
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
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