Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aaron-prindle/29553ed2c902401566ca93fd2ff850c8 to your computer and use it in GitHub Desktop.

Select an option

Save aaron-prindle/29553ed2c902401566ca93fd2ff850c8 to your computer and use it in GitHub Desktop.
unable to repro skaffold test issue, works repeatedly
Listing files to watch...
- test-image
- base
- sample-app-backend-dev
- sample-app-frontend-dev
Generating tags...
- test-image -> gcr.io/aprindle-billing-test/test-image:v0.0.1-alpha.1-51-g2859606-dirty
- base -> gcr.io/aprindle-billing-test/base:v0.0.1-alpha.1-51-g2859606
- sample-app-backend-dev -> gcr.io/aprindle-billing-test/sample-app-backend-dev:v0.0.1-alpha.1-51-g2859606-dirty
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty
Checking cache...
- test-image: Found Remotely
- base: Found Remotely
- sample-app-backend-dev: Found Remotely
- sample-app-frontend-dev: Found Remotely
Starting test...
Testing images...
Running custom test command: "docker run $IMAGE ./hack/validate.sh"
+ kustomize build cmd/frontend/k8s/prod
+ kustomize build cmd/backend/k8s/prod
+ conftest test -p hack/policy ./backend-prod.yaml ./frontend-prod.yaml
8 tests, 8 passed, 0 warnings, 0 failures, 0 exceptions
Command finished successfully.
Running custom test command: "docker run $IMAGE go test"
PASS
ok github.com/viglesiasce/sample-app/backend 0.139s
Command finished successfully.
Tags used in deployment:
- test-image -> gcr.io/aprindle-billing-test/test-image:v0.0.1-alpha.1-51-g2859606-dirty@sha256:fe6b88f72ceb14eb97507ca19848b4451ed208bffb983d824120ff2048df21da
- base -> gcr.io/aprindle-billing-test/base:v0.0.1-alpha.1-51-g2859606@sha256:82587768024930a997107bc1c637f9f3971fcb1744f9237663a4e32d38dad2a2
- sample-app-backend-dev -> gcr.io/aprindle-billing-test/sample-app-backend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:a6555edf89acfaeea3a082c116bdf0153a2b071cdd58cc51be34e07c1f160684
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:65e6ee5a70a52aa9766375d51fa09ef2bbda9cdd0c0489e1f2476a046db2a513
Starting deploy...
- service/gceme-backend created
- deployment.apps/gceme-backend created
- service/gceme-frontend created
- deployment.apps/gceme-frontend created
Waiting for deployments to stabilize...
- deployment/gceme-backend: waiting for rollout to finish: 0 of 1 updated replicas are available...
- deployment/gceme-frontend: waiting for rollout to finish: 0 of 1 updated replicas are available...
- deployment/gceme-frontend is ready. [1/2 deployment(s) still pending]
- deployment/gceme-backend is ready.
Deployments stabilized in 11.288 seconds
time="2021-04-15T22:41:08-07:00" level=warning msg="could not map pods to service /gceme-frontend/8080: getting service /gceme-frontend: an empty namespace may not be set when a resource name is provided"
Press Ctrl+C to exit
Watching for changes...
[frontend] 2021/04/16 05:40:57 Frontend version aprindle-v2: dev
[frontend] [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[frontend]
[frontend] [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
[frontend] - using env: export GIN_MODE=release
[frontend] - using code: gin.SetMode(gin.ReleaseMode)
[frontend]
[frontend] [GIN-debug] Loaded HTML Templates (2):
[frontend] -
[frontend] - index.html
[frontend]
[frontend] [GIN-debug] GET / --> main.handleIndex (3 handlers)
[frontend] [GIN-debug] GET /version --> main.handleVersion (3 handlers)
[frontend] [GIN-debug] GET /healthz --> main.handleHealthz (3 handlers)
[frontend] [GIN-debug] Listening and serving HTTP on :8080
[frontend] [GIN] 2021/04/16 - 05:41:08 | 200 | 18.315µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[backend]
[backend] [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
[backend] - using env: export GIN_MODE=release
[backend] - using code: gin.SetMode(gin.ReleaseMode)
[backend]
[backend] [GIN-debug] GET / --> main.handleIndex (3 handlers)
[backend] 2021/04/16 05:40:56 Backend version: dev
[backend] [GIN-debug] GET /version --> main.handleVersion (3 handlers)
[backend] [GIN-debug] GET /healthz --> main.handleHealthz (3 handlers)
[backend] [GIN-debug] Listening and serving HTTP on :8080
[backend] [GIN] 2021/04/16 - 05:41:07 | 200 | 21.912µs | 10.44.0.1 | GET "/healthz"
Port forwarding service/gceme-frontend in namespace , remote port 8080 -> 127.0.0.1:8080
Generating tags...
- sample-app-backend-dev -> gcr.io/aprindle-billing-test/sample-app-backend-dev:v0.0.1-alpha.1-51-g2859606-dirty
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty
Checking cache...
- sample-app-backend-dev: Found Remotely
- sample-app-frontend-dev: Found Remotely
Starting test...
Testing images...
Running custom test command: "docker run $IMAGE go test"
PASS
ok github.com/viglesiasce/sample-app/backend 0.088s
Command finished successfully.
Tags used in deployment:
- test-image -> gcr.io/aprindle-billing-test/test-image:v0.0.1-alpha.1-51-g2859606-dirty@sha256:fe6b88f72ceb14eb97507ca19848b4451ed208bffb983d824120ff2048df21da
- base -> gcr.io/aprindle-billing-test/base:v0.0.1-alpha.1-51-g2859606@sha256:82587768024930a997107bc1c637f9f3971fcb1744f9237663a4e32d38dad2a2
- sample-app-backend-dev -> gcr.io/aprindle-billing-test/sample-app-backend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:a6555edf89acfaeea3a082c116bdf0153a2b071cdd58cc51be34e07c1f160684
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:65e6ee5a70a52aa9766375d51fa09ef2bbda9cdd0c0489e1f2476a046db2a513
Starting deploy...
Waiting for deployments to stabilize...
- deployment/gceme-backend is ready. [1/2 deployment(s) still pending]
- deployment/gceme-frontend is ready.
Deployments stabilized in 1.444 second
Watching for changes...
time="2021-04-15T22:41:18-07:00" level=warning msg="could not map pods to service /gceme-frontend/8080: getting service /gceme-frontend: an empty namespace may not be set when a resource name is provided"
Port forwarding service/gceme-frontend in namespace , remote port 8080 -> 127.0.0.1:8080
[backend] [GIN] 2021/04/16 - 05:41:27 | 200 | 23.359µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:41:28 | 200 | 25.069µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:41:37 | 200 | 24.014µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:41:38 | 200 | 41.794µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:41:47 | 200 | 49.98µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:41:48 | 200 | 24.538µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:41:57 | 200 | 24.219µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:41:58 | 200 | 24.224µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:42:07 | 200 | 37.365µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:42:08 | 200 | 27.853µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:42:17 | 200 | 24.374µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:42:18 | 200 | 27.989µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:42:27 | 200 | 23.207µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:42:28 | 200 | 35.77µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:42:37 | 200 | 26.271µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:42:38 | 200 | 26.886µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:42:47 | 200 | 23.292µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:42:48 | 200 | 24.863µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:42:57 | 200 | 47.465µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:42:58 | 200 | 25.774µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:43:07 | 200 | 41.726µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:43:08 | 200 | 24.338µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:43:17 | 200 | 47.896µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:43:18 | 200 | 25.117µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:43:27 | 200 | 27.157µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:43:28 | 200 | 24.814µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:43:37 | 200 | 31.681µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:43:38 | 200 | 31.971µs | 10.44.1.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:43:47 | 200 | 24.474µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:43:48 | 200 | 24.631µs | 10.44.1.1 | GET "/healthz"
Generating tags...
- test-image -> gcr.io/aprindle-billing-test/test-image:v0.0.1-alpha.1-51-g2859606-dirty
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty
Checking cache...
- test-image: Found. Tagging
- sample-app-frontend-dev: Found. Tagging
Starting test...
Testing images...
Running custom test command: "docker run $IMAGE ./hack/validate.sh"
+ kustomize build cmd/frontend/k8s/prod
+ kustomize build cmd/backend/k8s/prod
+ conftest test -p hack/policy ./backend-prod.yaml ./frontend-prod.yaml
8 tests, 8 passed, 0 warnings, 0 failures, 0 exceptions
Command finished successfully.
Tags used in deployment:
- test-image -> gcr.io/aprindle-billing-test/test-image:v0.0.1-alpha.1-51-g2859606-dirty@sha256:42e8048fe8b681a7ea131b1307e576e5d1e87412bb2bbeacd82ee357786a7772
- base -> gcr.io/aprindle-billing-test/base:v0.0.1-alpha.1-51-g2859606@sha256:82587768024930a997107bc1c637f9f3971fcb1744f9237663a4e32d38dad2a2
- sample-app-backend-dev -> gcr.io/aprindle-billing-test/sample-app-backend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:a6555edf89acfaeea3a082c116bdf0153a2b071cdd58cc51be34e07c1f160684
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:9723ced987d75824b85cf171c2ae00b66456ad8ec0f00bbef5a5797940f22343
Starting deploy...
- deployment.apps/gceme-frontend configured
Waiting for deployments to stabilize...
- deployment/gceme-backend is ready. [1/2 deployment(s) still pending]
- deployment/gceme-frontend: waiting for rollout to finish: 0 of 1 updated replicas are available...
- deployment/gceme-frontend is ready.
Deployments stabilized in 9.85 seconds
Watching for changes...
time="2021-04-15T22:44:18-07:00" level=warning msg="could not map pods to service /gceme-frontend/8080: getting service /gceme-frontend: an empty namespace may not be set when a resource name is provided"
Port forwarding service/gceme-frontend in namespace , remote port 8080 -> 127.0.0.1:8080
[backend] [GIN] 2021/04/16 - 05:44:27 | 200 | 27.696µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:44:27 | 200 | 47.108µs | 10.44.2.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:44:37 | 200 | 49.664µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:44:37 | 200 | 28.262µs | 10.44.2.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:44:47 | 200 | 52.073µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:44:47 | 200 | 29.509µs | 10.44.2.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:44:57 | 200 | 27.557µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:44:57 | 200 | 25.647µs | 10.44.2.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:45:07 | 200 | 23.035µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:45:07 | 200 | 29.033µs | 10.44.2.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:45:17 | 200 | 24.824µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:45:17 | 200 | 26.675µs | 10.44.2.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:45:27 | 200 | 35.596µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:45:27 | 200 | 35.022µs | 10.44.2.1 | GET "/healthz"
[backend] [GIN] 2021/04/16 - 05:45:37 | 200 | 23.77µs | 10.44.0.1 | GET "/healthz"
[frontend] [GIN] 2021/04/16 - 05:45:37 | 200 | 54.769µs | 10.44.2.1 | GET "/healthz"
Generating tags...
- test-image -> gcr.io/aprindle-billing-test/test-image:v0.0.1-alpha.1-51-g2859606-dirty
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty
Checking cache...
- test-image: Found. Tagging
- sample-app-frontend-dev: Found. Tagging
Starting test...
Testing images...
Running custom test command: "docker run $IMAGE ./hack/validate.sh"
+ kustomize build cmd/frontend/k8s/prod
+ kustomize build cmd/backend/k8s/prod
+ conftest test -p hack/policy ./backend-prod.yaml ./frontend-prod.yaml
8 tests, 8 passed, 0 warnings, 0 failures, 0 exceptions
Command finished successfully.
Tags used in deployment:
- test-image -> gcr.io/aprindle-billing-test/test-image:v0.0.1-alpha.1-51-g2859606-dirty@sha256:78e1618acbf765abec0dbbc04174405749ba76b254351dbc974d821fc1cc4394
- base -> gcr.io/aprindle-billing-test/base:v0.0.1-alpha.1-51-g2859606@sha256:82587768024930a997107bc1c637f9f3971fcb1744f9237663a4e32d38dad2a2
- sample-app-backend-dev -> gcr.io/aprindle-billing-test/sample-app-backend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:a6555edf89acfaeea3a082c116bdf0153a2b071cdd58cc51be34e07c1f160684
- sample-app-frontend-dev -> gcr.io/aprindle-billing-test/sample-app-frontend-dev:v0.0.1-alpha.1-51-g2859606-dirty@sha256:4546c5d8183f06de192da81ed88b4bd5946f567d31cd1a6726426debe8bf68a5
Starting deploy...
- deployment.apps/gceme-frontend configured
Waiting for deployments to stabilize...
- deployment/gceme-backend is ready. [1/2 deployment(s) still pending]
- deployment/gceme-frontend: creating container frontend
- pod/gceme-frontend-554b9b5554-x4g6j: creating container frontend
- pod/gceme-frontend-578fd9f76-546x9: container frontend terminated with exit code 2
> [gceme-frontend-578fd9f76-546x9 frontend] unable to retrieve container logs for docker://11ca085b40a183b6693c16ff5d55cfe5625b91aeb5e7e5c9de0082942c4411c5
- deployment/gceme-frontend failed. Error: creating container frontend.
time="2021-04-15T22:45:56-07:00" level=warning msg="Skipping deploy due to error: 1/2 deployment(s) failed"
Watching for changes...
Cleaning up...
- service "gceme-backend" deleted
- deployment.apps "gceme-backend" deleted
- service "gceme-frontend" deleted
- deployment.apps "gceme-frontend" deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment