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

fix error-code #1646

Merged
merged 5 commits into from
May 10, 2024
Merged

fix error-code #1646

merged 5 commits into from
May 10, 2024

Conversation

sunkickr
Copy link
Contributor

@sunkickr sunkickr commented May 9, 2024

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

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

Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 86.77%. Comparing base (5e0cdac) to head (98890f9).

Files Patch % Lines
airflow/docker.go 66.66% 4 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@sunkickr sunkickr marked this pull request as ready for review May 9, 2024 18:39
@@ -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) {
Copy link
Contributor

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?

Copy link
Contributor Author

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

@sunkickr sunkickr merged commit 3483791 into main May 10, 2024
3 of 5 checks passed
@sunkickr sunkickr deleted the error-code branch May 10, 2024 15:12
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.

None yet

2 participants