Skip to content

[EPIC] Schabowski: Fixes for bugs revealed by Coinlist, EthCapeTown, and EthNY hackathons#926

Merged
cygnusv merged 33 commits intomasterfrom
epic-schabowski
Jul 4, 2019
Merged

[EPIC] Schabowski: Fixes for bugs revealed by Coinlist, EthCapeTown, and EthNY hackathons#926
cygnusv merged 33 commits intomasterfrom
epic-schabowski

Conversation

@jMyles
Copy link
Contributor

@jMyles jMyles commented Apr 9, 2019


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.

@jMyles jMyles force-pushed the epic-schabowski branch from b63afec to b18a22d Compare April 9, 2019 13:48
@codecov
Copy link

codecov bot commented Apr 9, 2019

Codecov Report

Merging #926 into master will increase coverage by 1.11%.
The diff coverage is 75.47%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
nucypher/cli/characters/ursula.py 70.93% <100%> (+0.14%) ⬆️
nucypher/network/nodes.py 84.82% <100%> (+0.02%) ⬆️
nucypher/cli/main.py 88.52% <50%> (-2.71%) ⬇️
nucypher/network/server.py 86.99% <60%> (-0.97%) ⬇️
nucypher/characters/lawful.py 90% <80.55%> (+0.34%) ⬆️
nucypher/utilities/sandbox/blockchain.py 90.64% <0%> (+0.71%) ⬆️
nucypher/cli/characters/felix.py 69% <0%> (+9%) ⬆️
nucypher/characters/chaotic.py 75% <0%> (+31.94%) ⬆️

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 72977f0...a106af2. Read the comment docs.

@cygnusv
Copy link
Member

cygnusv commented Apr 25, 2019

Hey @jMyles, what about adding my fix to #245 here?
Here's the commit: a7d9d7c

@jMyles jMyles changed the title [WIP] [EPIC] Schabowski [WIP] [EPIC] Fixes for bugs revealed by Coinlist and EthCapeTown hackathons Apr 30, 2019
@KPrasch
Copy link
Member

KPrasch commented Apr 30, 2019

I think #941 Will also be fixed in a parallel effort (#951)

@jMyles jMyles force-pushed the epic-schabowski branch 3 times, most recently from 7f76846 to 55f6d53 Compare May 16, 2019 16:20
@cygnusv
Copy link
Member

cygnusv commented May 31, 2019

@jMyles Just bumping this:

Hey @jMyles, what about adding my fix to #245 here?
Here's the commit: a7d9d7c

@jMyles jMyles force-pushed the epic-schabowski branch 2 times, most recently from c9745d0 to ec682f4 Compare June 9, 2019 21:56
@jMyles jMyles force-pushed the epic-schabowski branch 2 times, most recently from c1804dc to 9997dd2 Compare June 22, 2019 05:14
@jMyles jMyles changed the title [WIP] [EPIC] Fixes for bugs revealed by Coinlist and EthCapeTown hackathons [EPIC] Fixes for bugs revealed by Coinlist and EthCapeTown hackathons Jun 29, 2019
@jMyles jMyles changed the title [EPIC] Fixes for bugs revealed by Coinlist and EthCapeTown hackathons [EPIC] Schabowski: Fixes for bugs revealed by Coinlist, EthCapeTown, and EthNY hackathons Jun 29, 2019
@jMyles jMyles requested review from KPrasch and cygnusv and removed request for cygnusv June 29, 2019 02:30
@jMyles jMyles force-pushed the epic-schabowski branch from 8fb06be to 523fde5 Compare June 29, 2019 03:13

assert plaintext == delivered_cleartexts[0]

# FIXME: Bob tries to retrieve again
Copy link
Member

Choose a reason for hiding this comment

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

👍


# Run an Ursula amidst the other configuration files
run_args = ('ursula', 'run', '--dry-run',
run_args = ('ursula', 'run', '--dry-run', '--interactive',
Copy link
Member

Choose a reason for hiding this comment

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

👍

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:
Copy link
Member

Choose a reason for hiding this comment

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

Another Side Channel... We are accumulating them!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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}")
Copy link
Member

Choose a reason for hiding this comment

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

OK..... haha - Perhaps an Issue #?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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

Choose a reason for hiding this comment

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

👍

# break Bob's retrieve endpoint.
# convo starts here: https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/564353305887637517

bad_label = '516d593559505355376d454b61374751577146467a47754658396d516a685674716b7663744b376b4b666a35336d'
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@tuxxy tuxxy left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@cygnusv cygnusv left a comment

Choose a reason for hiding this comment

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

Some minor comments, but overall all good!



@pytest.mark.skip("920")
def test_label_whose_b64_representation_is_invalid_utf8():
Copy link
Member

Choose a reason for hiding this comment

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

Why is this still skipped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a mistake.

# Users may decide to inject some market strategies here.
#
# TODO: #289
# TODO: 289
Copy link
Member

Choose a reason for hiding this comment

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

I think @KPrasch and you have been fighting a silent war: he puts the number sign in TODOs and you remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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


def __call__(self):
enrico = Enrico(policy_encrypting_key=enacted_federated_policy.public_key)
message = "Welcome to the flippering.".format(len(self.messages)).encode()
Copy link
Member

Choose a reason for hiding this comment

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

why are you doing .format(len(self.messages))? It seems to have no effect.

@cygnusv
Copy link
Member

cygnusv commented Jul 2, 2019

@jMyles Can you add a TODO in this line:

ursula = self.known_nodes[node_id]
, referencing issue #999 ?

@vepkenez
Copy link
Contributor

vepkenez commented Jul 3, 2019

I love this PR. I have personally been affected by many of these issues and I'm glad to see them gone! Yay! 💯 👍

@vepkenez vepkenez self-requested a review July 3, 2019 21:19
@cygnusv cygnusv merged commit a2cdafd into master Jul 4, 2019
@jMyles jMyles deleted the epic-schabowski branch August 22, 2019 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

5 participants