Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Refactor DockerCPU[Config, Runtime, Environment] for easier inheritance #4620

Merged
merged 2 commits into from
Aug 22, 2019

Conversation

mfranciszkiewicz
Copy link
Contributor

Deriving DockerCPU* is now a bit more flexible. Changes were picked from the DockerGPUEnvironment branch and will now serve as a base branch for that PR (https://github.com/golemfactory/golem/pull/4618).

List of changes:

  • DockerCPUConfig is now a dataclass
  • uses container instead of host config arg in DockerCPURuntime.__init__
  • it is possible to provide a custom logger for DockerCPU[Environment|Runtime]
  • uses self._logger instead of logger in DockerCPURuntime
  • uses self._logger instead of logger in DockerCPUEnvironment
  • splits DockerCPUEnvironment.runtime into separate methods

Refactor: DockerCPURuntime __init__ arguments
Refactor: Make it possible to provide a custom logger in DockerCPUEnvironment.__init__
Refactor: use self._logger instead of logger in DockerCPURuntime
Refactor: use self._logger instead of logger in DockerCPUEnvironment
Refactor: split DockerCPUEnvironment.runtime into methods
@codecov
Copy link

codecov bot commented Aug 19, 2019

Codecov Report

Merging #4620 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #4620      +/-   ##
===========================================
+ Coverage     90.3%   90.32%   +0.02%     
===========================================
  Files          227      227              
  Lines        20126    20132       +6     
===========================================
+ Hits         18174    18185      +11     
+ Misses        1952     1947       -5

@jiivan jiivan merged commit e7f61ab into develop Aug 22, 2019
mfranciszkiewicz added a commit that referenced this pull request Aug 29, 2019
Refactor DockerCPU[Config, Runtime, Environment] for easier inheritance
@etam etam deleted the docker_cpu_env_refactor branch December 9, 2019 14:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants