Skip to content

Add download retry mechanism#1144

Merged
sachintu47 merged 4 commits intomainfrom
downloadRetry
Feb 23, 2026
Merged

Add download retry mechanism#1144
sachintu47 merged 4 commits intomainfrom
downloadRetry

Conversation

@sachintu47
Copy link
Copy Markdown
Member

@sachintu47 sachintu47 commented Feb 19, 2026

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Content Update

Category

  • zopen build framework
  • zopen package manager
  • Documentation
  • CI/CD
  • Tools

Description

See Augement PR summary #1144 (comment)

Related Issues

  • Related Issue #
  • Closes #

[optional] Are there any post-deployment tasks or follow-up actions required?

@sachintu47
Copy link
Copy Markdown
Member Author

augment review

@augmentcode
Copy link
Copy Markdown

augmentcode bot commented Feb 19, 2026

🤖 Augment PR Summary

Summary: This PR improves tarball download robustness in bin/zopen-build by introducing a retrying curl wrapper and basic post-download validation.

Changes:

  • Adds attemptDownload (curl with redirects, retries, timeouts, and HTTP-fail behavior) and validateDownload (size check + HTML error-page detection).
  • Updates downloadTarBall to try the primary URL and an optional mirror URL, stopping on the first successful validated download.
  • Removes the prior “warm-up” header-only curl request and relies on curl retry behavior instead.
  • Refactors dependency assembly in checkEnv into implicitDeps (download/extract tools) vs langDeps (compiler checks + optional zoslib/ccache).
  • Adjusts --get-source behavior to only install implicit download/extract dependencies.
  • Introduces ZOPEN_VENDORD and sets ZOPEN_VENDOR in setEnv, removing the ad-hoc defaulting in generateZOSLIBHooks.

Technical Notes: Validation aims to catch common “download succeeded but content is an error page” cases before extraction/patching proceeds.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 3 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@sachintu47
Copy link
Copy Markdown
Member Author

augment review

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@sachintu47
Copy link
Copy Markdown
Member Author

augment review

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 4 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

@sachintu47
Copy link
Copy Markdown
Member Author

augment review

@sachintu47 sachintu47 changed the title Download retry Add download retry mechanism Feb 23, 2026
Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Copy link
Copy Markdown

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

Copy link
Copy Markdown
Member

@IgorTodorovskiIBM IgorTodorovskiIBM left a comment

Choose a reason for hiding this comment

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

LGTM!

I wonder if we should have a mirror capability like in brew:
https://github.com/Homebrew/homebrew-core/blob/f7be98ed3187412b517582b097c8c7bbfe080c79/Formula/g/gmp.rb#L5-L6 (as a future item)

@sachintu47 sachintu47 merged commit eeaae2f into main Feb 23, 2026
1 of 2 checks passed
@sachintu47 sachintu47 deleted the downloadRetry branch February 23, 2026 15:23
@v1gnesh
Copy link
Copy Markdown
Collaborator

v1gnesh commented Feb 24, 2026

Than you @sachintu47, glad you're finding Augment's suggestions useful/relevant.
Totally get that it can feel nitpick-y when a bot comes along to say fix this this etc., especially when we have to go and fix it up lol.

@IgorTodorovskiIBM
Copy link
Copy Markdown
Member

Than you @sachintu47, glad you're finding Augment's suggestions useful/relevant. Totally get that it can feel nitpick-y when a bot comes along to say fix this this etc., especially when we have to go and fix it up lol.

Thanks @v1gnesh for getting us the access!

@sachintu47
Copy link
Copy Markdown
Member Author

Than you @sachintu47, glad you're finding Augment's suggestions useful/relevant. Totally get that it can feel nitpick-y when a bot comes along to say fix this this etc., especially when we have to go and fix it up lol.

It really helped. Thanks for suggesting it.

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.

3 participants