Cloning from GitHub randomly timed out resulting in failed tests

Open
#381 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
git, shell
Domain
devops, testing-qa

Research direction

Start with the nightly Ruby container tests named run_s2i_build and test_from_dockerfile_s2i, then trace how their GitHub repositories are cloned. Verify the retry behavior against the intermittent timeout cases for ruby-hello-world and rails-ex; done means transient clone failures no longer fail the tests immediately.

Written by the indexing model from the issue text.

Description

Container platform

No response

Version

No response

OS version of the container image

No response

Bugzilla, Jira

No response

Description

In recent nightly tests, Ruby containers failed on RHEL 8 and RHEL 9.

The problem is git clone timing out. This seems like random/intermittent issue.

It happened with 2 different Ruby versions, in different tests cloning different repos, so it shouldn't be an issue with the container itself.

1 failure was with Ruby 2.5 'db' run_s2i_build' https://github.com/openshift/ruby-hello-world.git/ , and second was with Ruby 3.1 'from_dockerfile' test_from_dockerfile_s2i pulling rails-ex https://github.com/sclorg/rails-ex.git/ .

Rest of the Ruby container test suite for other version and where other cloning happens finished OK.

Trying to clone in a loop to should prevent an intermittent timeout failing the tests.

Relevant excerpts from logs:
RHEL9 Ruby 'from_dockerfile' test_from_dockerfile_s2i:

fatal: unable to access 'https://github.com/sclorg/rails-ex.git/': Failed to connect to [github.com](http://github.com/) port 443: Connection timed out
ERROR: Git repository https://github.com/sclorg/rails-ex.git@master cannot be cloned into app-src.
Terminating the Dockerfile build.
Test for image 'ubi9/ruby-31:1' FAILED (exit code: 1)
Test for image 'ubi9/ruby-31:1' FAILED (exit code: 1)

RHEL 8 Ruby db' run_s2i_build:

fatal: unable to access 'https://github.com/openshift/ruby-hello-world.git/': Failed to connect to [github.com](http://github.com/) port 443: Connection timed out
/var/tmp/daily_scl_tests/rhel8-test/plans/nightly-container-rhel8/data/s2i-ruby-container/2.5
cp: cannot stat '/var/tmp/daily_scl_tests/rhel8-test/plans/nightly-container-rhel8/data/s2i-ruby-container/2.5/test/db-test-app/.': No such file or directory
Reproducer

No response

Dominant language
Shell
Stars
25
Forks
45
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sclorg/container-common-scripts

All issues in sclorg/container-common-scripts

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.