Skip to content

Comments

Pull latest Ruff image on upgrade-test#1843

Merged
jeremybeard merged 1 commit intomainfrom
pull-ruff
Apr 23, 2025
Merged

Pull latest Ruff image on upgrade-test#1843
jeremybeard merged 1 commit intomainfrom
pull-ruff

Conversation

@jeremybeard
Copy link
Contributor

Description

This change adds an image pull of the latest Ruff image before running it to lint the project. Without this the Ruff image will not update itself as new rules are added.

🧪 Functional Testing

  • Ran without the image locally, it pulls as already the case
  • Ran with the image locally, it pulls for the latest

📸 Screenshots

Screenshot 2025-04-21 at 4 23 32 PM Screenshot 2025-04-21 at 4 23 45 PM

📋 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

@@ -432,6 +432,10 @@ func (d *DockerImage) getRegistryToAuth(imageName string) (string, error) {
}

func (d *DockerImage) Pull(remoteImage, username, token 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.

this method feels slightly wrong to me right now. Mostly I had written it or reviewed it sometime in the past 🙈 . But thinking about it now, why do we even have two separate ways to pass image name?

This is not a blocker at all, just throwing a comment to stir a conversation on the right approach.

I think the right approach here might be to drop the remoteImage arg and force everyone to use the imageName from DockerImage, since the intention of the interface was to club the operation around an image.

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 image handler abstraction is unfortunately a wide mix of "handle one image" and "handle any image" so we'd need a separate effort to try to resolve that.

@jeremybeard jeremybeard merged commit 7f56005 into main Apr 23, 2025
3 of 4 checks passed
@jeremybeard jeremybeard deleted the pull-ruff branch April 23, 2025 14:51
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.

2 participants