-
Notifications
You must be signed in to change notification settings - Fork 68
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
Astro Run Command #776
Astro Run Command #776
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…into astro-test
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov ReportBase: 87.19% // Head: 87.20% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #776 +/- ##
==========================================
+ Coverage 87.19% 87.20% +0.01%
==========================================
Files 107 108 +1
Lines 9107 9294 +187
==========================================
+ Hits 7941 8105 +164
- Misses 688 700 +12
- Partials 478 489 +11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
overall LGTM ❤️, this would add a lot of value for our users so thanks for all the effort. Have left a few minor nitpicks, let me know once those are addressed and the --task-logs
logic has been added.
airflow/docker_image.go
Outdated
@@ -276,6 +276,91 @@ func (d *DockerImage) TagLocalImage(localImage string) error { | |||
return nil | |||
} | |||
|
|||
func (d *DockerImage) Run(dagID, envFile, settingsFile, containerName string, taskLogs bool) error { | |||
// delete container |
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.
// delete container |
nit: is it still relevant, or else we can drop it?
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.
yes we need to delete the container here just in case on exists and wasn't deleted before for some reason
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.
yeah, but the comment over here does not fit any purpose to have it at the start of Run
function, makes sense to have it where we are deleting the container but that is already there
Co-authored-by: Neel Dalsania <neel.dalsania@astronomer.io>
…into astro-test
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.
LGTM 👍 , but we would still need to fix the breaking unit tests before merging
airflow/docker_image.go
Outdated
@@ -276,6 +276,91 @@ func (d *DockerImage) TagLocalImage(localImage string) error { | |||
return nil | |||
} | |||
|
|||
func (d *DockerImage) Run(dagID, envFile, settingsFile, containerName string, taskLogs bool) error { | |||
// delete container |
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.
yeah, but the comment over here does not fit any purpose to have it at the start of Run
function, makes sense to have it where we are deleting the container but that is already there
@neel-astro I moved the comment |
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.
looks good but need to bump coverage.
for more information, see https://pre-commit.ci
…into astro-test
for more information, see https://pre-commit.ci
Description
new astro run command
inlcudes dags and changes to the docker file that are for testing purposes only. These changes will be removed once the command is merged
🎟 Issue(s)
🧪 Functional Testing
Added tests for new functions
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft