Project

General

Profile

Actions

action #101210

closed

coordination #90086: [epic] Refactor container tests

Merge `podman_image.pm` and `docker_image.pm` into single module "image.pm"

Added by jlausuch over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2021-10-20
Due date:
% Done:

0%

Estimated time:

Description

The only meaningful diff between these 2 files is:

podman_image.pm:

install_podman_when_needed($host_distri);

docker_image.pm :

install_docker_when_needed($host_distri);
...
scc_apply_docker_image_credentials() if (get_var('SCC_DOCKER_IMAGE'));
...
scc_restore_docker_image_credentials();

Since we have the variable CONTAINER_RUNTIME, which can have docker, podman or docker,podman, it doesn't make sense to keep duplicated code doing the same thing.


Related issues 3 (0 open3 closed)

Related to Containers - action #101213: Merge `podman_3rd_party_images.pm` and `docker_3rd_party_images.pm` into single module "3rd_party_images.pm"Resolvedilausuch2021-10-20

Actions
Related to Containers - action #101454: Merge `podman.pm` and `docker.pm` into single module "container_runtime.pm"Resolvedilausuch2021-10-25

Actions
Related to Containers - action #101451: Allow running both runtimes in the same job using main_containers scheduleResolvedilausuch2021-10-25

Actions
Actions #1

Updated by ybonatakis over 2 years ago

  • Status changed from New to In Progress
  • Assignee set to ybonatakis

i assigned to myself as i have already done some work in this direction. https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/13370
just help me clarify the name. I renamed podman_image and docker_image to container_images. the ticket suggests image.pm. i still looking for a better one.

Actions #3

Updated by jlausuch over 2 years ago

  • Status changed from In Progress to Blocked
Actions #5

Updated by jlausuch over 2 years ago

  • Related to action #101213: Merge `podman_3rd_party_images.pm` and `docker_3rd_party_images.pm` into single module "3rd_party_images.pm" added
Actions #6

Updated by jlausuch over 2 years ago

  • Related to action #101454: Merge `podman.pm` and `docker.pm` into single module "container_runtime.pm" added
Actions #8

Updated by ybonatakis over 2 years ago

  • Assignee deleted (ybonatakis)
Actions #9

Updated by ybonatakis over 2 years ago

  • Status changed from Blocked to In Progress
  • Assignee set to ybonatakis

https://progress.opensuse.org/issues/101442 is resolved. taking as i have already some code ready for it

Actions #11

Updated by ybonatakis over 2 years ago

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/13891 is implemented as part of this and is merged.
Now there is no dependency on YAML_SCHEDULE and all container jobs are going through main_container. This will help to no break anything when we merge the two modules from this ticket

Actions #12

Updated by ybonatakis over 2 years ago

  • Status changed from In Progress to Blocked
  • Assignee deleted (ybonatakis)

i found another blocking issue. And we need to decide how to proceed. in additional there will be bigger changes than the one in the PR so in case that we want to break down the tasks i will mark it again as blocked for the time being

Actions #15

Updated by ilausuch over 2 years ago

  • Related to action #101451: Allow running both runtimes in the same job using main_containers schedule added
Actions #16

Updated by ilausuch over 2 years ago

  • Status changed from Blocked to In Progress
  • Assignee set to ilausuch
Actions #18

Updated by ilausuch over 2 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF