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

add verbose and execute date to astro run #1330

Merged
merged 5 commits into from
Aug 2, 2023
Merged

add verbose and execute date to astro run #1330

merged 5 commits into from
Aug 2, 2023

Conversation

sunkickr
Copy link
Contributor

@sunkickr sunkickr commented Aug 1, 2023

Description

add verbose and execute date to astro run

🎟 Issue(s)

🧪 Functional Testing

List the functional testing steps to confirm this feature or fix.

📸 Screenshots

Add screenshots to illustrate the validity of these changes.

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation

@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Patch coverage: 83.33% and project coverage change: -0.01% ⚠️

Comparison is base (eacb540) 87.19% compared to head (7556eb5) 87.18%.
Report is 1 commits behind head on main.

❗ Current head 7556eb5 differs from pull request most recent head a9bf06c. Consider uploading reports for the commit a9bf06c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1330      +/-   ##
==========================================
- Coverage   87.19%   87.18%   -0.01%     
==========================================
  Files         114      114              
  Lines       13402    13409       +7     
==========================================
+ Hits        11686    11691       +5     
- Misses       1026     1027       +1     
- Partials      690      691       +1     
Files Changed Coverage Δ
airflow/container.go 69.11% <ø> (ø)
airflow/docker_image.go 85.21% <66.66%> (-0.51%) ⬇️
airflow/docker.go 86.08% <100.00%> (ø)
cmd/run.go 77.77% <100.00%> (+1.77%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@neel-astro neel-astro left a comment

Choose a reason for hiding this comment

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

LGTM, validated the new flags. Left a minor nit on mentioning the date format in the flag description.

cmd/run.go Outdated
@@ -30,6 +31,8 @@ func newRunCommand() *cobra.Command {
cmd.Flags().BoolVarP(&noCache, "no-cache", "", false, "Do not use cache when building container image")
cmd.Flags().StringVarP(&settingsFile, "settings-file", "s", "airflow_settings.yaml", "Settings file for importing Airflow objects")
cmd.Flags().StringVarP(&dagFile, "dag-file", "d", "", "(Optional) The file where your DAG is located. Use this flag to parse only the DAG file that has the DAG you want to run. You may get parsing errors related to other DAGs if you don't specify a DAG file")
cmd.Flags().StringVarP(&executionDate, "execution-date", "", "", "(Optional) Execution date for the dagrun. Defaults to now")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: might want to mention the acceptable date format, i.e. %Y-%m-%d, %Y-%m-%dT%H:%M:%S, %Y-%m-%d %H:%M:%S

@sunkickr sunkickr merged commit beca3f0 into main Aug 2, 2023
@sunkickr sunkickr deleted the astro-run-update branch August 2, 2023 15:11
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.

3 participants