-
Notifications
You must be signed in to change notification settings - Fork 20
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
Version 2.0 #18
Open
dzimine
wants to merge
39
commits into
master
Choose a base branch
from
version-2.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Version 2.0 #18
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- create/remove group - create/remove core_thing & details - structure unittests - bring in most utilities. - group_definition_version functionality in Entity.
State supports nested keys
Add Subscriptions
Only ‘create’ for now but happy to figure how to factor unit tests.
... and now it works end-to-end. While with that: logging level done right.
* Pretty-print State * Implement full-remove * Don’t fail if Lambda package zip not found, just warn
Add support for Lambdas
Python3 support for v2
... as I hit a bug that was difficult to fix under original structure.
v2 feature catch up with ML Inference demo
Match v1 checklistMain functions:
Below the cutting line, aka lost & found (things I am not motivated to hold the release of V2 for...)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To keep up with new AWS Greengrass features, Greengo needs a better, more modular structure, and ~80% unit test coverage. Some smaller refactoring ideas piled up, too. Now it's time to do it. I am breaking it to modules, adding unit tests, while trying to make it simple.
Refactor goals:
Notes on new design:
Entity
is a base class for Greengrass entities -Group
,Subscriptions
,Lambdas
, etc. It contains shared logic for pre- and post- create and remove. Soon it will implement basic dependency management, something like this:create
: if dependencies (parents) are not yet created, notify and exit.remove
: if dependent entities (children) are not yet removed, remove them first, then remove the entity (chop the whole branch). May be give an option of auto-remove.Concrete entities, like
Group
orSubscriptions
, implementdo_create
anddo_remove
methods, as well as declare their upstream and downstream dependencies.state
is responsible for managing the state.greengrass
module implements CLI commands. Support 1) create/remove the whole shebang; 2) create/remove individual entities 3) go beyond Greengrass for convinient dev flow, like create/remove Lambda functions of topic rules.