-
Notifications
You must be signed in to change notification settings - Fork 9
compiler cutover #507
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
Closed
Closed
compiler cutover #507
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
03aecba
compiler cutover
nikhil-zlai 422b218
Merge branch 'main' into nikhil/compile_switch
david-zlai 77110b9
install rich
david-zlai 7c3e882
no emojis
david-zlai 6e924ad
fix conditional
david-zlai 98e7c3b
outputNamespace
david-zlai 43395b7
fix models compiling, explicitly importlib teams.py via file
david-zlai 98a7044
deprecate teams.json
david-zlai 6bdba7c
Only `add` to the compile tracker if the object successfully writes
david-zlai 13dd1eb
linting
david-zlai 8fb36f6
put this one back
david-zlai 9591d90
migrate away from `production` and to `compiled`
david-zlai 9bd7989
remove log
david-zlai 9aed948
linting
david-zlai 6917ecb
try to fix sample_bootstrap
david-zlai 91b240f
move file to fix tox test
david-zlai b7eee2f
glom
david-zlai 4e59371
Add chronon_root for testing
david-zlai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import click | ||
| import os | ||
|
|
||
| from ai.chronon.cli.compile.compile_context import CompileContext | ||
| from ai.chronon.cli.compile.compiler import Compiler | ||
|
|
||
|
|
||
| @click.command(name="compile") | ||
| @click.option( | ||
| "--chronon_root", | ||
| envvar="CHRONON_ROOT", | ||
| help="Path to the root chronon folder", | ||
| ) | ||
| def compile_v3(chronon_root): | ||
| if chronon_root: | ||
| chronon_root_path = os.path.expanduser(chronon_root) | ||
| os.chdir(chronon_root_path) | ||
|
|
||
| # check that a "teams.py" file exists in the current directory | ||
| if not (os.path.exists("teams.py") or os.path.exists("teams.json")): | ||
| raise click.ClickException( | ||
| ( | ||
| "teams.py or teams.json file not found in current directory." | ||
| " Please run from the top level of conf directory." | ||
| ) | ||
| ) | ||
|
|
||
| compile_context = CompileContext() | ||
| compiler = Compiler(compile_context) | ||
| compiler.compile(compile_context) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| compile_v3() |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,5 @@ sqlglot | |
| crcmod==1.7 | ||
| glom | ||
| boto3 | ||
| importlib-resources==6.5.2 | ||
| importlib-resources==6.5.2 | ||
| rich | ||
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Fix incomplete requirements comment.
The comment reference is incomplete.
📝 Committable suggestion