skaffold icon indicating copy to clipboard operation
skaffold copied to clipboard

Custom Test infinite loop

Open iskyd opened this issue 3 years ago • 0 comments

Actual behavior

Custom Test will run in an infinite loop of building -> testing.

Information

  • Skaffold version: v1.36.0
  • Operating system: macOs
  • Installed via: skaffold.dev
  • Contents of skaffold.yaml:
apiVersion: skaffold/v2beta27
kind: Config
metadata:
  name: playlife-sso
build:
  artifacts:
  - image: playlife/sso
    docker:
      dockerfile: Dockerfile
test:
  - image: playlife/sso
    custom:
      - command: pytest
deploy:
  kubectl:
    manifests:
    - manifest.yaml

Steps to reproduce the behavior

  1. skaffold dev --no-prune=false --cache-artifacts=false --port-forward (or just skaffold dev)

this will result in an infinite loop. Skaffold will build the image, execute the test, than re-build the image and re-execute the test, forever.

iskyd avatar Sep 20 '22 15:09 iskyd