Use floating tag for init of Airflow 3 Dockerfile by jeremybeard · Pull Request #1847 · astronomer/astro-cli

Conversation

@jeremybeard

Description

This changes the astro dev init Dockerfile for Airflow 3 to use the minor version floating tag instead of the exact patch tag (e.g. 3.0 instead of 3.0-1). This will mean that new patches of a minor version will automatically be picked up by the project.

📋 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

jeremybeard

Choose a reason for hiding this comment

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

Dropped this file because it seems to be interacting with Docker Hub and so can unreliably fail, and is anyway not really unit testing any of the CLI logic.

jeremybeard

err := airflowInit(cmd, args)
s.NoError(err)

b, _ := os.ReadFile(filepath.Join(s.tempDir, "Dockerfile"))

Choose a reason for hiding this comment

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

More non-unit unit testing, this time these fail because now that Airflow 3 is released the default Dockerfile does not contain this string.

1 participant

@jeremybeard