-
Notifications
You must be signed in to change notification settings - Fork 74
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
fix error-code #1646
fix error-code #1646
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1646 +/- ##
=======================================
Coverage 86.76% 86.77%
=======================================
Files 114 114
Lines 16693 16697 +4
=======================================
+ Hits 14483 14488 +5
Misses 1323 1323
+ Partials 887 886 -1 ☔ View full report in Codecov by Sentry. |
airflow/docker.go
Outdated
@@ -703,13 +707,13 @@ func (d *DockerCompose) versionTest(testHomeDirectory, currentAirflowVersion, de | |||
return nil | |||
} | |||
|
|||
func (d *DockerCompose) dagTest(testHomeDirectory, newAirflowVersion, newDockerFile, customImage, buildSecretString string) error { | |||
func (d *DockerCompose) dagTest(testHomeDirectory, newAirflowVersion, newDockerFile, customImage, buildSecretString string) (string, error) { |
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 return an int instead of a string?
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.
The exit code is parsed from the docker logs so it ends up as a string
Description
upgrade-test command doesn't return an exit code of 1 when the DAG parse test fails. This makes it so the failures doesn't stop their CI/CD pipeline
🎟 Issue(s)
🧪 Functional Testing
manual testing
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft