-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Catch Runtime errors during open-pr
and push-tag
#143
Conversation
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e5cddaa11b1a1a Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/variables/MESSAGE",
"value": "Hello, Test!"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:97905e52a81139d4f9789a6730fa9e4fcb015ed3e53c23232f00baec1aade27b"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e5d24fbd494e32 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/variables/MESSAGE",
"value": "Hello, Test!"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment successfully completed for PR-143! 🎉Runtime errors:
View in HumanitecDeployment ID: 17e5d2f9089d5256 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/variables/MESSAGE",
"value": "Hello, Test!"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment successfully completed for PR-143! 🎉Runtime errors:
View in HumanitecDeployment ID: 17e5d3392a83185b Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/variables/MESSAGE",
"value": "Hello, Test!"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment failed for PR-143! ❌Errors:null
Errors detailsErrors details:[]
Runtime errors:
View in HumanitecDeployment ID: 17e5d398a2a531f6 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/variables/MESSAGE",
"value": "Hello, Test!"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment failed for PR-143! ❌Runtime errors:
View in HumanitecDeployment ID: 17e5d42465709164 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/variables/MESSAGE",
"value": "Hello, Test!"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment failed for PR-143! ❌Deployment Errors:no matching resource definition found for the resource 'k8s-cluster.default#k8s-cluster' in 'orgs/mabenoit/apps/my-sample-app/envs/pr-143?envType=development': resource definition <no-resource-def-id> - resource k8s-cluster.default#k8s-cluster
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17e5d4b2d25c3cea",
"env_id": "pr-143",
"org_id": "mabenoit"
},
"status": {
"code": "RES-002",
"error_type": "",
"message": "no matching resource definition found for the resource 'k8s-cluster.default#k8s-cluster' in 'orgs/mabenoit/apps/my-sample-app/envs/pr-143?envType=development': resource definition \u003cno-resource-def-id\u003e - resource k8s-cluster.default#k8s-cluster",
"object_id": "",
"scope": "environment",
"summary": "Cannot resolve resource type"
}
}
]
Runtime errors:
View in HumanitecDeployment ID: 17e5d4b2d25c3cea Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/variables/MESSAGE",
"value": "Hello, Test!"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
|
Deployment failed for PR-143! ❌Runtime errors:
View in HumanitecDeployment ID: 17e5d505bb131f35 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:64be4818af789c483cc6803bde6865c124531a291e076537677e57f49afba3c1"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
open-pr
and push-tag
Deployment failed for PR-143! ❌Runtime errors:
View in HumanitecDeployment ID: 17e5d590529828a0 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:f40569ae2a427314629a15311b44bf6fbfec49990f11b1f7487e28c63d8375c2"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment failed for PR-143! ❌View in HumanitecDeployment ID: 17e5d7a6688d26f7 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:b416c341aab043b1ca15fbf5e9b297430263ae979cb176582dd4289dbb31294e"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment failed for PR-143! ❌View in HumanitecDeployment ID: 17e5d862b61b8e1b Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:86aed61a107a4ecaddbbb6a11cd4c396fece1dbaa140c72b769d38bcbd52e57a"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment failed for PR-143! ❌View in HumanitecDeployment ID: 17e60fd253621ad5 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:1b6dffbb5490a444b73cf8145b6e69e12b1efcf3000fca2b59b3c121e4316470"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e612469a6c8a46 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:bc4810d750f3e31c116b9507643dc7e2bab5bc5eb98d1e3391edc0f81ff42d9f"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e617737f607ebf Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:e1d58b4191bc20f7813698e336e366f2989ab3b73cc1a3d3c5a0459a8cd94a08"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e617f97f371e42 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:b4a482cd576b274f2ecd10f8c48f01956ba4625d14e7c1ab2b2c2fef4e65f43d"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:
|
Deployment failed for PR-143! ❌Deployment Errors:workload status: False. Reason: WorkloadRolloutError. Message: Error: reconciling workload my-sample-workload: applying resource of kind Deployment: Apply failed with 1 conflict: conflict with "kubectl-edit" using apps/v1: .spec.template.spec.containers[name="my-sample-container"].image
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17e618588853ba0b",
"env_id": "pr-143",
"org_id": "mabenoit"
},
"status": {
"code": "OPR-001",
"error_type": "",
"message": "workload status: False. Reason: WorkloadRolloutError. Message: Error: reconciling workload my-sample-workload: applying resource of kind Deployment: Apply failed with 1 conflict: conflict with \"kubectl-edit\" using apps/v1: .spec.template.spec.containers[name=\"my-sample-container\"].image",
"object_id": "my-sample-workload",
"scope": "workload",
"summary": "Humanitec Operator error"
}
}
]
Runtime errors:
View in HumanitecDeployment ID: 17e618588853ba0b Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:10b2a1e69f12ea29da1c2e04759b67f7fed66e1d908dcbab04cbbc15d594e0ee"
}
]
}
},
"shared": null
}
|
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e618ac2db0a399 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
},
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:10b2a1e69f12ea29da1c2e04759b67f7fed66e1d908dcbab04cbbc15d594e0ee"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:Use a Graphviz viewer for a visual representation.
|
To avoid hitting this error #143 (comment) or #143 (comment), id: custom
name: Custom deploy pipeline
on:
deployment_request: {}
concurrency:
group: default-deploy-${{ inputs.env_id }}
jobs:
deploy:
name: Deploy
steps:
- if: ${{ ! inputs.set_id }}
name: Create Deployment Set
id: create-deployment-set
uses: actions/humanitec/apply@v1
with:
delta_id: ${{ inputs.delta_id }}
env_id: ${{ inputs.env_id }}
- name: "Deploy Set To Environment"
uses: actions/humanitec/deploy@v1
with:
set_id: ${{ inputs.set_id || steps.create-deployment-set.outputs.set_id }}
value_set_version_id: ${{ inputs.value_set_version_id }}
env_id: ${{ inputs.env_id }}
message: ${{ inputs.comment }}
- name: "Wait for Workload readiness"
continue-on-error: true
id: wait-for-workload-readiness
uses: native://actions/humanitec/wait-for-readiness@v1
with:
env_id: ${{ inputs.env_id }}
- name: Fail if Workloads readiness failed
if: ${{ steps.wait-for-workload-readiness.status == 'failed' }}
uses: native://actions/humanitec/fail@v1
with:
message: Workloads readiness failed. |
Deployment failed for PR-143! ❌Runtime errors:
View in HumanitecDeployment ID: 17e7098f9b7bd6a7 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:Use a Graphviz viewer for a visual representation.
|
Deployment failed for PR-143! ❌Runtime errors:
View in HumanitecDeployment ID: 17e70af44ffa33a4 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "ghcr.io/mathieu-benoit/my-sample-workload:pouet"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:Use a Graphviz viewer for a visual representation.
|
Deployment failed for PR-143! ❌Runtime errors:
View in HumanitecDeployment ID: 17e70c32465bcad7 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:f25791d6b38651585e0e2176a4092e65793a2d9ba206b0e9d5a693b2d4480afe"
},
{
"from": "",
"op": "add",
"path": "/spec/containers/my-sample-container/variables/MISSING_VAR",
"value": "${values.nonexistent-var}"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:Use a Graphviz viewer for a visual representation.
|
Deployment failed for PR-143! ❌Deployment Errors:Unable to create/update namespace my-sample-app-pr-143: failed to patch namespace: namespaces "compute-resources" not found
Errors detailsErrors details:[
{
"apiVersion": "entity.humanitec.io/v1b1",
"entity": {},
"kind": "DeploymentError",
"metadata": {
"app_id": "my-sample-app",
"deploy_id": "17e70c8fe5358ac7",
"env_id": "pr-143",
"org_id": "mabenoit"
},
"status": {
"code": "K8S-002",
"error_type": "",
"message": "Unable to create/update namespace my-sample-app-pr-143: failed to patch namespace: namespaces \"compute-resources\" not found",
"object_id": "",
"scope": "environment",
"summary": "Cluster permissions error"
}
}
]
Runtime errors:
View in HumanitecDeployment ID: 17e70c8fe5358ac7 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:e32bba74cc3bb30d191bb82ff550e748bb11ca81d9b960fab52e4868a699860d"
},
{
"from": "",
"op": "add",
"path": "/spec/containers/my-sample-container/variables/MISSING_VAR",
"value": "${values.nonexistent-var}"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
|
Deployment failed for PR-143! ❌Runtime errors:
View in HumanitecDeployment ID: 17e70d4f50e1590e Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:e32bba74cc3bb30d191bb82ff550e748bb11ca81d9b960fab52e4868a699860d"
},
{
"from": "",
"op": "add",
"path": "/spec/containers/my-sample-container/variables/MISSING_VAR",
"value": "${values.nonexistent-var}"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:Use a Graphviz viewer for a visual representation.
|
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e70db302d92ec9 Domains:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:5371f99d5f886689a0576f30f9ad94afb4eb5563356134a50229f9aa42f6406b"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:Use a Graphviz viewer for a visual representation.
|
Deployment successfully completed for PR-143! 🎉View in HumanitecDeployment ID: 17e70fb65f1a3112 URLs:my-sample-workload: helloworld-preview.endpoints.mathieu-benoit-gcp.cloud.goog Deployment diffDeployment diff:{
"modules": {
"add": null,
"remove": [],
"update": {
"my-sample-workload": [
{
"from": "",
"op": "replace",
"path": "/spec/containers/my-sample-container/image",
"value": "us-east4-docker.pkg.dev/mathieu-benoit-gcp/containers/my-sample-workload@sha256:02a13c2c869533a4c218375bd3d4c23bf83cbe4883dd97d1413eef1da3d235ed"
},
{
"from": "",
"op": "replace",
"path": "/spec/annotations/humanitec.io~1workload-source",
"value": "https://github.com/mathieu-benoit/sail-sharp/blob/test/score/score.yaml"
}
]
}
},
"shared": null
}
Active Resources UsageActive Resources Usage:
Resources GraphResources Graph:Use a Graphviz viewer for a visual representation.
|
Catch Runtime errors during
open-pr
andpush-tag
. Deployment Status is not enough, it will beRunning
even if the Runtime errors illustrated below will land to anUnhealthy
Workload:Or:
The purpose is to catch the Runtime errors, even if the Humanitec Deployment is
Running
, the Humanitec Pipeline will beFailed
(thanks to the custom Humanitec Pipeline definition), and the GHA will fail too. The idea is to make sure that errors are fixed before the PR could be approved/merged intomain
branch.Example with both Deployment and Runtime errors:
Example with Runtime errors only:
Also, to avoid hitting this error #143 (comment) or #143 (comment),
PodInitializing
, I needed to add this custom Pipeline definition: