Project

Profile

Help

Issue #6047

Story #5762: [Epic] CI Improvements

ansible-pulp CI builds "creates" the base molecule container images for every run

Added by mdepaulo@redhat.com over 1 year ago. Updated 10 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
CI/CD
Sprint:
Quarter:

Description

Every time ansible-pulp's CI is run, 3 container images (fedora, centos, etc) are created according to molecule/default/Dockerfile.j2. The actual roles get tested against them in each scenario. (the image is not re-built for every scenario fortunately.)

molecule_local/fedora 31
molecule_local/debian buster
molecule_local/centos 7

This takes up time, and could be optimized by building it according to a travis cronjob, and when a PR is opened that actually modifies the Dockerfile.j2. And then pushing it to quay.io.

In order to only build the image in a PR that actually modifies the Dockerfile.j2, some logic will need to be figured out. Like a tag based on the hashsum of the Dockerfile.j2 rather than just using "latest". This could be done in scripted commands if molecule cannot be configured to use a different image name. (e.g, retag molecule_local/centos:7 as quay.io/pulp/pulp-ci-molecule-centos:7-<7-digit-hash> after it is built, and push it to quay.io. And at the beginning of the run, check if the latter name exists and can be pulled, and if so, pull it and then re-tag it as the former name.)

Associated revisions

Revision 7df851d7 View on GitHub
Added by Fabricio Aguiar about 1 year ago

Prebuilding molecule images

https://pulp.plan.io/issues/6047 closes #6047

Revision 7df851d7 View on GitHub
Added by Fabricio Aguiar about 1 year ago

Prebuilding molecule images

https://pulp.plan.io/issues/6047 closes #6047

History

#1 Updated by mdepaulo@redhat.com over 1 year ago

  • Parent task changed from #5769 to #5762

#2 Updated by fao89 over 1 year ago

  • Triaged changed from No to Yes

#3 Updated by fao89 over 1 year ago

  • Tags CI/CD added

#4 Updated by fao89 about 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89

#5 Updated by pulpbot about 1 year ago

  • Status changed from ASSIGNED to POST

#6 Updated by Anonymous about 1 year ago

  • Status changed from POST to MODIFIED

#7 Updated by Anonymous about 1 year ago

#8 Updated by ttereshc 10 months ago

  • Sprint/Milestone set to 3.8.0

#9 Updated by ttereshc 10 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF