Skip to content

Comments

Fix astro remote deploy to consider client dependency files for installation during image build#1980

Merged
feluelle merged 1 commit intomainfrom
fix/remote-deploy-dependency-install
Nov 3, 2025
Merged

Fix astro remote deploy to consider client dependency files for installation during image build#1980
feluelle merged 1 commit intomainfrom
fix/remote-deploy-dependency-install

Conversation

@feluelle
Copy link
Member

@feluelle feluelle commented Nov 3, 2025

Description

Describe the purpose of this pull request.

This fixes the issue in the astro remote deploy command, where it does not consider the requirements-client.txt and packages-client.txt files for dependency installation into the image.

🎟 Issue(s)

Fixes: #1979

🧪 Functional Testing

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

❯ cat requirements-client.txt
apache-airflow-providers-amazon
❯ ../astro remote deploy
Authenticating with base image registry: images.astronomer.cloud
Building client image for host platform
...

Validated that the dependencies get installed correctly from client files:

❯ docker run --entrypoint pip ... list | grep amazon
...
apache-airflow-providers-amazon          9.16.0

📸 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

@coveralls-official
Copy link

coveralls-official bot commented Nov 3, 2025

Pull Request Test Coverage Report for Build 7f0a7e15-2c91-4ca8-996e-c2ca3b027c45

Details

  • 86 of 107 (80.37%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 38.641%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cloud/deploy/deploy.go 47 54 87.04%
pkg/fileutil/files.go 39 53 73.58%
Totals Coverage Status
Change from base Build 81faee59-a52f-4df7-ba5a-9ff72ec0e630: 0.07%
Covered Lines: 24283
Relevant Lines: 62842

💛 - Coveralls

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.

Left some tiny comments to squash, but otherwise LGTM

@feluelle feluelle force-pushed the fix/remote-deploy-dependency-install branch 2 times, most recently from 890a225 to c46e916 Compare November 3, 2025 12:44
@feluelle feluelle requested a review from neel-astro November 3, 2025 12:44
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

@feluelle feluelle force-pushed the fix/remote-deploy-dependency-install branch from c46e916 to 8323649 Compare November 3, 2025 12:54
- Introduced `ClientBuildContext` to manage temporary build directories for client deployments.
- Implemented `prepareClientBuildContext` to create a build context without modifying original project files.
- Added `setupClientDependencyFiles` to handle client-specific dependency files.
- Updated `DeployClientImage` to utilize the new build context for image building.
- Enhanced tests to cover new functionality and ensure proper handling of client dependency files.
@feluelle feluelle force-pushed the fix/remote-deploy-dependency-install branch from 8323649 to 9f0b14c Compare November 3, 2025 12:54
@feluelle feluelle merged commit f2b1d7b into main Nov 3, 2025
5 of 6 checks passed
@feluelle feluelle deleted the fix/remote-deploy-dependency-install branch November 3, 2025 13:02
feluelle added a commit that referenced this pull request Nov 3, 2025
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.

astro remote deploy incorrectly uses packages.txt and requirements.txt for installing dependencies

2 participants