Skip to content

Try to recover (retry?) docker push/pull TLS handshake timeouts during builds #10989

Open

Description

@gtritchie

A significant portion of our failed builds are due to intermittment errors during docker pulls. Here's an example from this build

[2022-04-14T19:02:24.058Z] + docker pull 263245908434.dkr.ecr.us-east-1.amazonaws.com/jenkins/ide:centos7-x86_64-main
[2022-04-14T19:02:24.315Z] centos7-x86_64-main: Pulling from jenkins/ide
....
[2022-04-14T19:02:34.484Z] error pulling image configuration: Get "https://prod-us-east-1-starport-layer-bucket.s3.us-east-1.amazonaws.com/[omitted][](https://build.rstudioservices.com/blue/organizations/jenkins/IDE%2Fopen-source-pipeline/detail/main/1103/pipeline#step-868-log-77)": net/http: TLS handshake timeout

script returned exit code 1

This doesn't seem to be retried, even though we have made previous changes purporting to retry docker operations, e.g.:

container = pullBuildPush(image_name: 'jenkins/ide', dockerfile: "docker/jenkins/Dockerfile.versioning", image_tag: "rstudio-versioning", build_args: jenkins_user_build_args(), retry_image_pull: 5)

(see retry_image_pull: 5 near EOL)

Activity

  1. gtritchie commented on May 16, 2022

    @gtritchie
    MemberAuthor

    From @MariaSemple:

    That function comes from here: https://github.com/rstudio/jenkins-pipeline-libraries/blob/master/vars/pullBuildPush.groovy

    it looks like it only retries the pull, not the push (edited)

    I would file an issue on that repo
    or you could submit a PR for a bugfix

  2. changed the title [-]Try to recover (retry?) docker pull TLS handshake timeouts during builds[/-] [+]Try to recover (retry?) docker push TLS handshake timeouts during builds[/+] on May 17, 2022
  3. changed the title [-]Try to recover (retry?) docker push TLS handshake timeouts during builds[/-] [+]Try to recover (retry?) docker push/pull TLS handshake timeouts during builds[/+] on May 17, 2022
  4. gtritchie commented on May 17, 2022

    @gtritchie
    MemberAuthor
  5. added this to the Tech Debt milestone on Nov 29, 2022
  6. added
    tech debt
    on Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildstech debt

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions