Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizations to reduce the CI run duration (Prepull images) #779

Merged
merged 2 commits into from Oct 27, 2017

Conversation

ksatchit
Copy link
Member

The CI integration suite is ever expanding and we need to make the run as efficient as possible.
Currently, we are running 3-4 applications and the run is seen to take around ~80 min.

Some ways to approach this are provided below :

  • Increase the number of retries and decreasing poll interval while waiting on pod status changes
    post creation/deletion etc., during the testcase (Fix for issue #569  #626)
  • Use test images wherever possible instead of building the image during the course of a testcase (Fixes for issues #618 and #619  #623)
  • Increasing the resources on the vagrant VMs being used in the kubernetes cluster (Update resources for CI test suite #636)
  • PrePull test images into test harness and load into kubernetes nodes upon bringup

Together, these changes have been observed to reduce the CI run time to ~45 min.

This commit provides the code changes needed to perform the PrePull test images. Changes include :

  • Ansible role and playbook to pull test images specified by a list (maintains images as versioned tarballs)
  • Ansible role and playbook to load this into test k8s nodes (vagrantVM /baremetal)
  • Updates to ci.yml to include load images step
  • Bash script that will run on test/jenkins harness to invoke the pull image role
  • Updates to jenkins cron file to include the bash script run

Further optimizations will be taken up as in subsequent releases

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #463

Special notes for your reviewer:

-------------------------------------------

The CI integration suite is ever expanding and we need to make the run as efficient as possible.
Currently, we are running 3-4 applications and the run is seen to take around ~80 min.

Some ways to approach this are provided below :

- Increase the number of retries and decreasing poll interval while waiting on pod status changes
  post creation/deletion etc., during the testcase (openebs#626)

- Use test images wherever possible instead of buildin the image during the course of a testcase (openebs#623)

- Increasing the resources on the vagrant VMs being used in the kubernetes cluster (openebs#636)

- PrePull test images into test harness and load into kubernetes nodes upon bringup

Together, these changes have been observed to reduce the CI run time to ~45 min.

This commit provides the code changes needed to perform the PrePull test images. Changes include :

a) Ansible role and playbook to pull test images specified by a list (maintains images as versioned tarballs)
b) Ansible role and playbook to load this into test k8s nodes (vagrantVM /baremetal)
c) Updates to ci.yml to include load images step
d) Bash script that will run on test/jenkins harness to invoke the pull image role
e) Updates to jenkins cronfile to include the bash script run

Fixes issue openebs#463

Further optimizations will be taken up as in subsequent releases
@ksatchit ksatchit requested review from yudaykiran and kmova and removed request for yudaykiran October 27, 2017 12:17
@ksatchit ksatchit self-assigned this Oct 27, 2017
@ksatchit ksatchit added this to the 0.5 milestone Oct 27, 2017
Copy link
Contributor

@yudaykiran yudaykiran left a comment

Choose a reason for hiding this comment

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

LGTM

@yudaykiran yudaykiran merged commit 5ef5704 into openebs:master Oct 27, 2017
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.

PrePull test images to reduce the time taken for integration test suite triggered by jenkins
2 participants