-
Notifications
You must be signed in to change notification settings - Fork 32
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
Feat (deploy): Port localhost deployment code #2258
Conversation
9604d73
to
9854546
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super excited for this one
@@ -154,7 +154,7 @@ def __init__(self, logger: logging.Logger, dump_dir: Optional[Path] = None) -> N | |||
|
|||
self.resets = 0 | |||
self.logger = logger | |||
self.dump_dir = dump_dir or Path("/tm_state") | |||
self.dump_dir = dump_dir or Path(os.environ["TMSTATE"] or "/tm_state") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this to the docs somewhere btw?
Also would be nice to able to set an alias for the agent.
It's in aea fetch AGENT --alias
command group
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! do you know any good place to add the docs? I'm guessing the docstring of def create_server()
?
9854546
to
8e9a19b
Compare
3c1f5aa
to
2d752cf
Compare
ef6e9ed
to
11e525f
Compare
a399f62
to
325972c
Compare
tendermint_node.start() | ||
return jsonify({"message": "Reset successful.", "status": True}), 200 | ||
except Exception as e: # pylint: disable=W0703 | ||
return jsonify({"message": f"Reset failed: {e}", "status": False}), 200 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's already open-source bro what are you talking about?1
return jsonify({"app_hash": app_hash_}), res.status_code | ||
except Exception as e: # pylint: disable=W0703 | ||
return ( | ||
jsonify({"error": f"Could not get the app hash: {str(e)}"}), |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
tendermint_node.start() | ||
return jsonify({"message": "Reset successful.", "status": True}), 200 | ||
except Exception as e: # pylint: disable=W0703 | ||
return jsonify({"message": f"Reset failed: {e}", "status": False}), 200 |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
32a9115
to
5e209b3
Compare
Signed-off-by: OjusWiZard <[email protected]>
Signed-off-by: OjusWiZard <[email protected]>
Signed-off-by: OjusWiZard <[email protected]>
Signed-off-by: OjusWiZard <[email protected]>
Signed-off-by: OjusWiZard <[email protected]>
5e209b3
to
1b98b1c
Compare
Signed-off-by: OjusWiZard <[email protected]>
Proposed changes
Porting the code from Pearl to here that runs an agent on local host system without docker.
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an
x
in the box that appliesChecklist
Put an
x
in the boxes that apply.main
branch (left side). Also you should start your branch off ourmain
.Further comments