devops

Python pytest in Azure DevOps – ModuleNotFoundError: No module named 'core'

Python pytest in Azure DevOps – ModuleNotFoundError: No module named 'core' Question: I have my DevOps pipeline which is using pytest to execute unit tests found in Python code. I’m using a root folder called "core" for the main python functionality, and reference it using the following format: import unittest from core.objects.paragraph import Paragraph from …

Total answers: 2

Docker stuck frozen in "running" status

Docker stuck frozen in "running" status Question: I have a Docker container running python code on an ubuntu 20 image, the host is also ubuntu 20. Inconsistently sometimes the container just gets stuck / freezes. Logs stop being added to the console, the docker’s status is "running". Even when I try to kill the process …

Total answers: 1

How to stop gracefully a Pulumi up command

How to stop gracefully a Pulumi up command Question: I am trying to develop a couple of Helm Charts on Minikube. To do that I am running pulumi up on a Minikube environment. import pulumi from pulumi_kubernetes.helm.v3 import Chart, ChartOpts, FetchOpts, RepositoryOptsArgs import pulumi_kubernetes as k8s config = pulumi.Config() is_minikube = config.require_bool("isMinikube") datahub_prerequisites = Chart( …

Total answers: 3

Greenlet runtime error and deployed app in docker keeps booting all the workers

Greenlet runtime error and deployed app in docker keeps booting all the workers Question: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObject And all the workers are being booted. 2020-09-28T14:09:41.864089908Z [2020-09-28 14:09:41 +0000] [31] [INFO] Booting worker with pid: 31 2020-09-28T14:09:43.933141974Z [2020-09-28 14:09:43 +0000] [32] [INFO] …

Total answers: 2