Skip to content

Comments

improve the dag server upload url flow#1926

Merged
pgvishnuram merged 8 commits intomainfrom
feat/fix-dagserver-upload-url
Sep 2, 2025
Merged

improve the dag server upload url flow#1926
pgvishnuram merged 8 commits intomainfrom
feat/fix-dagserver-upload-url

Conversation

@pgvishnuram
Copy link
Contributor

@pgvishnuram pgvishnuram commented Aug 31, 2025

Description

Previously dag upload URL's were harded to fetch from the baseDomain, this will no longer work with 1.0 api and with this new change we look for dagserver url directly and if not exists it will reconstruct the url from airflow url in order to handle both old api version and new code changes

🎟 Issue(s)

🧪 Functional Testing

There is no change from the user prespective

astro deploy --dags will auto detect and use the upload url for respective clustered deployments

📸 Screenshots

with above code changes it auto detects the url from deployments without needing to use hardcoded base domain from the config
image

📋 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 Aug 31, 2025

Pull Request Test Coverage Report for Build ba408fae-39f6-4e8b-8280-d66e248b3e14

Details

  • 15 of 17 (88.24%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 39.385%

Changes Missing Coverage Covered Lines Changed/Added Lines %
software/deploy/deploy.go 15 17 88.24%
Totals Coverage Status
Change from base Build 21440717-7e2d-42a5-9a85-5252f5eaf87c: 0.01%
Covered Lines: 23659
Relevant Lines: 60071

💛 - Coveralls

@pgvishnuram pgvishnuram changed the title improved the dag server upload url flow improve the dag server upload url flow Sep 1, 2025
Comment on lines +424 to +426
if url.Type != houston.AirflowURLType {
continue
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

initially i added url.Type == houston.AirflowURLType
then start generating the urls
revive was recommending similar changes what i added currently

Copy link
Contributor

@ianbuss ianbuss left a comment

Choose a reason for hiding this comment

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

Looks ok to me. Left a nit.

@pgvishnuram pgvishnuram merged commit e253d2e into main Sep 2, 2025
5 of 6 checks passed
@pgvishnuram pgvishnuram deleted the feat/fix-dagserver-upload-url branch September 2, 2025 13:40
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.

4 participants