damccorm opened a new pull request, #41779:
URL: https://github.com/apache/beam/pull/41779

   Note: this PR was auto-generated by tooling. Before moving it out of draft, 
the author has done a full review of the PR, specifically evaluating it on the 
following criteria:
   
   - The PR is an appropriate fix for the issue (e.g. we're not changing a test 
to avoid a bug)
   - The PR is a simple fix to the issue (e.g. we're not adding infra when we 
could just modify a test)
   - The PR is not covering for other problems (e.g. if we're bumping timeouts, 
it is not because we're covering for a performance problem)
     
   Full details of the methodology of generation and review can be found here - 
https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing
   
   If you have concerns with the PR or with the underlying methodology used to 
generate this, please comment below - they will be addressed by the author not 
the tooling :)
   
   ## Summary
   
   Hardens `runners/spark/job-server/container/Dockerfile` against transient 
Ubuntu APT mirror outages (`security.ubuntu.com` / `archive.ubuntu.com` 
timeouts and HTTP 522s), which occurred 3 times in 7 days (runs 
https://github.com/apache/beam/actions/runs/46241988373, 
https://github.com/apache/beam/actions/runs/46242170006, and 
https://github.com/apache/beam/actions/runs/46425620452).
   
   ## Root Cause
   
   In https://github.com/apache/beam/actions/runs/46425620452 (build scan 
https://develocity.apache.org/s/aklqbi75vm2vw), `apt-get update` timed out 
across all 9 IPs of `security.ubuntu.com:80` and `archive.ubuntu.com:80` within 
~40s, exiting 0 with warnings so the subsequent `apt-get install -y libltdl7` 
failed immediately with exit code 100 (`E: Unable to locate package libltdl7`).
   
   ## Changes
   
   - `runners/spark/job-server/container/Dockerfile`: Wrap `apt-get update && 
apt-get install -y libltdl7` in a 5-attempt POSIX `/bin/sh` retry loop with 
linear backoff (`15s`, `30s`, `45s`, `60s`) and explicit `-o Acquire::Retries=3 
-o Acquire::http::Timeout=30`.
   
   ### Verification
   - Triggered `beam_Publish_Docker_Snapshots.yml` workflow run on branch: 
[`46452784065`](https://github.com/apache/beam/actions/runs/46452784065)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to