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

fix[test] integration tests #213

Merged

Conversation

DanielSchiavini
Copy link
Collaborator

@DanielSchiavini DanielSchiavini commented May 8, 2024

@DanielSchiavini DanielSchiavini force-pushed the fix/integration-tests branch from 745cf77 to 18ab5b6 Compare May 10, 2024 08:15
@DanielSchiavini DanielSchiavini marked this pull request as ready for review May 10, 2024 08:26
@@ -45,6 +45,12 @@ class StackTrace(list):
def __str__(self):
return "\n\n".join(str(x) for x in self)

@property
def dev_reason(self) -> str | None:
if isinstance(self.last_frame, str):
Copy link
Member

Choose a reason for hiding this comment

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

oof, when can this happen?

Copy link
Collaborator Author

@DanielSchiavini DanielSchiavini May 10, 2024

Choose a reason for hiding this comment

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

a few lines later:

[f"<Unknown location in unknown contract {computation.msg.code_address.hex()}>"]

@@ -76,9 +82,9 @@ def _handle_child_trace(computation, env, return_trace):
else:
child_trace = child_obj.stack_trace(child)

if child_trace.last_frame.dev_reason and not return_trace.last_frame.dev_reason:
if child_trace.dev_reason and not return_trace.dev_reason:
Copy link
Member

Choose a reason for hiding this comment

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

this change looks spooky. maybe we should check if last_frame is not None?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ditto

Copy link
Member

Choose a reason for hiding this comment

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

we should still test for is not None, as you could have an empty dev reason (which is valid)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

the return value of dev_reason could still be an empty string!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

boa/network.py Outdated Show resolved Hide resolved
@charles-cooper charles-cooper merged commit 1bf16f9 into vyperlang:master May 10, 2024
9 checks passed
@DanielSchiavini DanielSchiavini deleted the fix/integration-tests branch May 10, 2024 16:40
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.

Catch HTTPError where applicable
2 participants