[EPIC] Schabowski: Fixes for bugs revealed by Coinlist, EthCapeTown, and EthNY hackathons#926
[EPIC] Schabowski: Fixes for bugs revealed by Coinlist, EthCapeTown, and EthNY hackathons#926
Conversation
Codecov Report
@@ Coverage Diff @@
## master #926 +/- ##
==========================================
+ Coverage 82.13% 83.25% +1.11%
==========================================
Files 68 68
Lines 9081 9103 +22
==========================================
+ Hits 7459 7579 +120
+ Misses 1622 1524 -98
Continue to review full report at Codecov.
|
7f76846 to
55f6d53
Compare
c9745d0 to
ec682f4
Compare
c1804dc to
9997dd2
Compare
…against this Capsule before.
…el. A good-enough compromise for now I guess.
…t, on which test assertion relies.
|
|
||
| assert plaintext == delivered_cleartexts[0] | ||
|
|
||
| # FIXME: Bob tries to retrieve again |
|
|
||
| # Run an Ursula amidst the other configuration files | ||
| run_args = ('ursula', 'run', '--dry-run', | ||
| run_args = ('ursula', 'run', '--dry-run', '--interactive', |
| enrico = Enrico(policy_encrypting_key=enacted_federated_policy.public_key) | ||
| message_kit, _signature = enrico.encrypt_message(b"Welcome to the flippering.") | ||
| return message_kit, enrico | ||
| class _CapsuleSideChannel: |
There was a problem hiding this comment.
Another Side Channel... We are accumulating them!
There was a problem hiding this comment.
This is a replacement; we are net zero side channels here. :-)
| # Async Sentinel | ||
| except Exception as e: | ||
| log.critical(str(e)) | ||
| log.critical(f"This exception really needs to be handled differently: {e}") |
There was a problem hiding this comment.
OK..... haha - Perhaps an Issue #?
There was a problem hiding this comment.
It's not a specific issue; it's just that any exception that makes it this far needs to be handled differently.
|
|
||
| if already_retrieved: | ||
| if cache: | ||
| must_do_new_retrieval = False |
| # break Bob's retrieve endpoint. | ||
| # convo starts here: https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/564353305887637517 | ||
|
|
||
| bad_label = '516d593559505355376d454b61374751577146467a47754658396d516a685674716b7663744b376b4b666a35336d' |
cygnusv
left a comment
There was a problem hiding this comment.
Some minor comments, but overall all good!
|
|
||
|
|
||
| @pytest.mark.skip("920") | ||
| def test_label_whose_b64_representation_is_invalid_utf8(): |
| # Users may decide to inject some market strategies here. | ||
| # | ||
| # TODO: #289 | ||
| # TODO: 289 |
There was a problem hiding this comment.
I think @KPrasch and you have been fighting a silent war: he puts the number sign in TODOs and you remove it.
There was a problem hiding this comment.
tests/fixtures.py
Outdated
|
|
||
| def __call__(self): | ||
| enrico = Enrico(policy_encrypting_key=enacted_federated_policy.public_key) | ||
| message = "Welcome to the flippering.".format(len(self.messages)).encode() |
There was a problem hiding this comment.
why are you doing .format(len(self.messages))? It seems to have no effect.
|
@jMyles Can you add a TODO in this line: nucypher/nucypher/characters/lawful.py Line 650 in c613bcd |
|
I love this PR. I have personally been affected by many of these issues and I'm glad to see them gone! Yay! 💯 👍 |
--debug(Fixes Finnegan's Wake demo... only works with --debug. #941)Named for Günter Schabowski, the somewhat hapless spokesperson for the Sozialistische Einheitspartei Deutschlands who announced on 9 Nov 1989 that travel restrictions from East to West Berlin had been lifted effective immediately - he was supposed to announce that they were going to be slowly lifted over several months. His announcement led to a surge of many thousands of people to the wall - many with hammers and chisels - and, a few hours later, into West Berlin for the first time in decades.
Runner-up name: Ginger, based on what @jMyles was drinking when he opened it.