cdevents / sdk-java

Java SDK for CDEvents
Apache License 2.0
5 stars 6 forks source link

"CDEvent validation failed with errors" in SDK release #59

Closed afrittoli closed 11 months ago

afrittoli commented 1 year ago

The stage deploy step in the v0.1.2 release reported a lot of validation errors (see below).

We should:

[INFO] Running dev.cdevents.CDEventsTest
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.environment.deleted.0.1.0 as json - {"context":{"id":"2512d781-f602-4b22-8109-8e8f71021285","type":"dev.cdevents.environment.deleted.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/environment/run/subject","source":"/dev/environment/run/subject","type":"ENVIRONMENT","content":{"name":"Name"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.testcase.started.0.1.0 as json - {"context":{"id":"0910698c-c55c-4095-8da8-c693bdff02fb","type":"dev.cdevents.testcase.started.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-case-1","source":"/dev/test-case","type":"TESTCASE","content":{}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.build.finished.0.1.0 as json - {"context":{"id":"b878fb88-946b-420b-911f-1ce0387ec6b5","type":"dev.cdevents.build.finished.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-build","source":"/dev/builds/test-build","type":"BUILD","content":{"artifactId":"pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.service.published.0.1.0 as json - {"context":{"id":"e863fa12-3a65-4f4f-9572-07678b4f3ef1","type":"dev.cdevents.service.published.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/service/run/subject","source":"dev/service/run/subject","type":"SERVICE","content":{"environment":{"id":"dev/environment/run/subject","source":"dev/environment/run/subject"}}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.testsuite.started.0.1.0 as json - {"context":{"id":"68956964-03df-4a6d-9cd0-ff843a90d49e","type":"dev.cdevents.testsuite.started.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-suite-1","source":"/dev/test-suite","type":"TESTSUITE","content":{}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.service.upgraded.0.1.0 as json - {"context":{"id":"0ccb675a-48c5-4c48-83c4-28cc023635f4","type":"dev.cdevents.service.upgraded.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/service/run/subject","source":"dev/service/run/subject","type":"SERVICE","content":{"environment":{"id":"dev/environment/run/subject","source":"dev/environment/run/subject"},"artifactId":"pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.service.rolledback.0.1.0 as json - {"context":{"id":"902e9b8c-a3f6-429e-8b0c-88b6d82b1407","type":"dev.cdevents.service.rolledback.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/service/run/subject","source":"dev/service/run/subject","type":"SERVICE","content":{"environment":{"id":"dev/environment/run/subject","source":"dev/environment/run/subject"},"artifactId":"pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.testcase.finished.0.1.0 as json - {"context":{"id":"7c8ef971-5e07-4a6f-b0d3-2ba13c3b5caf","type":"dev.cdevents.testcase.finished.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-case-1","source":"/dev/test-case","type":"TESTCASE","content":{}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.branch.created.0.1.1 as json - {"context":{"id":"0ae0dcbf-8d81-4[47](https://github.com/cdevents/sdk-java/actions/runs/5645622708/job/15291772812#step:5:48)9-9d97-7237a95c1b4c","type":"dev.cdevents.branch.created.0.1.1","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-branch","source":"/github.com/test-branch","type":"BRANCH","content":{"repository":{"id":"/github.com/test-repo","source":"http://github.com/test-repo"}}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.service.removed.0.1.0 as json - {"context":{"id":"8eee9a1f-c9c0-4f5d-bae1-c14fc3efc3ef","type":"dev.cdevents.service.removed.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/service/run/subject","source":"dev/service/run/subject","type":"SERVICE","content":{"environment":{"id":"dev/environment/run/subject","source":"dev/environment/run/subject"}}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.change.abandoned.0.1.1 as json - {"context":{"id":"db16cfef-ae88-4bb2-a285-b6773596fb36","type":"dev.cdevents.change.abandoned.0.1.1","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-branch","source":"/github.com/test-branch","type":"CHANGE","content":{"repository":{"id":"/github.com/test-repo","source":"http://github.com/test-repo"}}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.taskrun.finished.0.1.0 as json - {"context":{"id":"570c276d-55b3-4238-95fa-d44992501e02","type":"dev.cdevents.taskrun.finished.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/task/run/subject","source":"/dev/task/run/subject","type":"TASKRUN","content":{"taskName":"test-task-finished","url":"http://dev/task/url","outcome":"SUCCESS","errors":"errors to place","pipelineRun":{"id":"/dev/pipeline/run/subject","source":"http://dev/pipeline/run/subject"}}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/test-suite-finished-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.repository.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/branch-deleted-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.environment.id: is missing but it is required, $.subject.content.artifactId: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/service-deployed-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.pipelinerun.queued.0.1.0 as json - {"context":{"id":"b3e09475-4d90-4d9f-a3cc-f3671e68ec10","type":"dev.cdevents.pipelinerun.queued.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/pipeline/run/subject","source":"/dev/pipeline/run/subject","type":"PIPELINERUN","content":{"pipelineName":"test-pipeline-queued","url":"http://dev/pipeline/url"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.branch.deleted.0.1.1 as json - {"context":{"id":"0d99db29-e6ee-4f34-a88a-f99411a2d[48](https://github.com/cdevents/sdk-java/actions/runs/5645622708/job/15291772812#step:5:49)9","type":"dev.cdevents.branch.deleted.0.1.1","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-branch","source":"/github.com/test-branch","type":"BRANCH","content":{"repository":{"id":"/github.com/test-repo","source":"http://github.com/test-repo"}}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.change.reviewed.0.1.1 as json - {"context":{"id":"67ecbeac-d60f-425e-bdd6-f61df7fdbb93","type":"dev.cdevents.change.reviewed.0.1.1","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-branch","source":"/github.com/test-branch","type":"CHANGE","content":{"repository":{"id":"/github.com/test-repo","source":"http://github.com/test-repo"}}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.repository.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/change-created-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.artifact.packaged.0.1.0 as json - {"context":{"id":"a8efeede-c185-47e8-9470-05afa5fbd2b0","type":"dev.cdevents.artifact.packaged.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b","source":"/dev/artifact/source","type":"ARTIFACT","content":{"change":{"id":"test-feature","source":"/github.com/test-repo"}}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/repository-deleted-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.repository.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/change-updated-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/repository-modified-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.repository.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/change-abandoned-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.repository.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/branch-created-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.pipelineRun.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/task-run-finished-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/pipeline-run-finished-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/environment-deleted-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.environment.modified.0.1.0 as json - {"context":{"id":"8dc3048c-5523-4626-879e-4aeaa7b9ccdb","type":"dev.cdevents.environment.modified.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/environment/run/subject","source":"/dev/environment/run/subject","type":"ENVIRONMENT","content":{"name":"Name","url":"http://dev/environment/url"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.build.started.0.1.0 as json - {"context":{"id":"2b7b3fc2-4ede-4157-9a73-679ed7401f64","type":"dev.cdevents.build.started.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-build","source":"/dev/builds/test-build","type":"BUILD","content":{}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/build-queued-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.name: is missing but it is required, $.subject.content.url: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/repository-created-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.repository.created.0.1.0 as json - {"context":{"id":"adacdaf9-75[49](https://github.com/cdevents/sdk-java/actions/runs/5645622708/job/15291772812#step:5:50)-4376-a8e7-78ce938649a7","type":"dev.cdevents.repository.created.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/github.com/test-repo","source":"/github.com/test-repo","type":"REPOSITORY","content":{"name":"test-repo","owner":"test-user","url":"git://github.com/test-org/test-repo","viewUrl":"http://github.com/test-org/test-repo/view"}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/build-finished-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.environment.id: is missing but it is required, $.subject.content.artifactId: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/service-upgraded-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.testsuite.finished.0.1.0 as json - {"context":{"id":"33f46ac7-3959-4690-98da-f9ab536424ec","type":"dev.cdevents.testsuite.finished.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-suite-1","source":"/dev/test-suite","type":"TESTSUITE","content":{}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.repository.deleted.0.1.0 as json - {"context":{"id":"a548c82d-9765-413c-a794-37dc2bad2da2","type":"dev.cdevents.repository.deleted.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/github.com/test-repo","source":"/github.com/test-repo","type":"REPOSITORY","content":{"name":"test-repo","owner":"test-user","url":"git://github.com/test-org/test-repo","viewUrl":"http://github.com/test-org/test-repo/view"}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/environment-created-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.change.updated.0.1.1 as json - {"context":{"id":"2ddeb294-b0ed-44f4-87f7-978bb17b95c6","type":"dev.cdevents.change.updated.0.1.1","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-branch","source":"/github.com/test-branch","type":"CHANGE","content":{"repository":{"id":"/github.com/test-repo","source":"http://github.com/test-repo"}}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.environment.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/service-published-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.service.deployed.0.1.0 as json - {"context":{"id":"e297a1b8-2fca-426d-b99f-55b414f5[50](https://github.com/cdevents/sdk-java/actions/runs/5645622708/job/15291772812#step:5:51)0d","type":"dev.cdevents.service.deployed.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/service/run/subject","source":"dev/service/run/subject","type":"SERVICE","content":{"environment":{"id":"dev/environment/run/subject","source":"dev/environment/run/subject"},"artifactId":"pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f"}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/pipeline-run-queued-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.environment.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/service-removed-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/test-suite-started-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.repository.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/change-reviewed-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.repository.modified.0.1.0 as json - {"context":{"id":"0507c8b6-d6d3-45e7-b9b3-6cdab3d453[51](https://github.com/cdevents/sdk-java/actions/runs/5645622708/job/15291772812#step:5:52)","type":"dev.cdevents.repository.modified.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/github.com/test-repo","source":"/github.com/test-repo","type":"REPOSITORY","content":{"name":"test-repo","owner":"test-user","url":"git://github.com/test-org/test-repo","viewUrl":"http://github.com/test-org/test-repo/view"}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/build-started-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/environment-modified-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.pipelinerun.finished.0.1.0 as json - {"context":{"id":"6f531358-2b48-4764-b26c-0699ca62a7b1","type":"dev.cdevents.pipelinerun.finished.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/pipeline/run/subject","source":"/dev/pipeline/run/subject","type":"PIPELINERUN","content":{"pipelineName":"Name-pipeline","url":"http://dev/pipeline/url","outcome":"SUCCESS","errors":"errors to place"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.pipelinerun.started.0.1.0 as json - {"context":{"id":"86fd92db-3d46-416a-9b6d-e7c42f701213","type":"dev.cdevents.pipelinerun.started.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/pipeline/run/subject","source":"/dev/pipeline/run/subject","type":"PIPELINERUN","content":{"pipelineName":"test-pipeline-started","url":"http://dev/pipeline/url"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.artifact.published.0.1.0 as json - {"context":{"id":"8427f2eb-b71e-4286-b1f6-379bd76a1ae9","type":"dev.cdevents.artifact.published.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b","source":"/dev/artifact/source","type":"ARTIFACT","content":{}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.pipelineRun.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/task-run-started-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.pipelineName: is missing but it is required, $.subject.content.url: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/pipeline-run-started-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/artifact-published-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.change.merged.0.1.1 as json - {"context":{"id":"3418363d-0a69-4a37-9ead-6be514d2a164","type":"dev.cdevents.change.merged.0.1.1","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-branch","source":"/github.com/test-branch","type":"CHANGE","content":{"repository":{"id":"/github.com/test-repo","source":"http://github.com/test-repo"}}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/test-case-queued-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/test-case-started-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.testcase.queued.0.1.0 as json - {"context":{"id":"04b3d8e1-2f3f-4d79-98cd-34ce826dee03","type":"dev.cdevents.testcase.queued.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-case-1","source":"/dev/test-case","type":"TESTCASE","content":{}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/test-case-finished-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.environment.created.0.1.0 as json - {"context":{"id":"7b275f2d-89f9-4ea0-aa08-db17e8[54](https://github.com/cdevents/sdk-java/actions/runs/5645622708/job/15291772812#step:5:55)04a0","type":"dev.cdevents.environment.created.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/environment/run/subject","source":"/dev/environment/run/subject","type":"ENVIRONMENT","content":{"name":"Name","url":"http://dev/environment/url"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.pipelinerun.queued.0.1.0 as json - {"context":{"id":"3f96560b-fb9c-4f41-97fb-abadeddbe6e0","type":"dev.cdevents.pipelinerun.queued.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":"{\"key1\": \"value1\",\"key2\" : {\"test\": \"customData\" }}","customDataContentType":"application/json","subject":{"id":"/dev/pipeline/run/subject","source":"/dev/pipeline/run/subject","type":"PIPELINERUN","content":{"pipelineName":"test-pipeline-queued","url":"http://dev/pipeline/url"}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.build.queued.0.1.0 as json - {"context":{"id":"d04609d7-fadf-436b-8e5d-9a38ca018987","type":"dev.cdevents.build.queued.0.1.0","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-build","source":"/dev/builds/test-build","type":"BUILD","content":{}}}
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.environment.id: is missing but it is required, $.subject.content.artifactId: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/service-rolledback-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.repository.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/change-merged-event
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed with errors [$.subject.id: is missing but it is required, $.subject.content.change.id: is missing but it is required]
[main] ERROR dev.cdevents.CDEvents - CDEvent validation failed against schema URL - https://cdevents.dev/0.1.2/schema/artifact-packaged-event
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.change.created.0.1.1 as json - {"context":{"id":"5cba8d90-c2b7-4bae-affb-a96310818890","type":"dev.cdevents.change.created.0.1.1","source":"http://dev.cdevents","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"test-branch","source":"/github.com/test-branch","type":"CHANGE","content":{"repository":{"id":"/github.com/test-repo","source":"http://github.com/test-repo"}}}}
[main] INFO dev.cdevents.CDEvents - CDEvent with type dev.cdevents.taskrun.started.0.1.0 as json - {"context":{"id":"0b2296fb-7d7b-4c6b-b3e5-6a23a49b3848","type":"dev.cdevents.taskrun.started.0.1.0","source":"http://dev.cdevents/","version":"0.1.2","timestamp":"2023-07-24T13:44:27Z"},"customData":{},"customDataContentType":"application/json","subject":{"id":"/dev/task/run/subject","source":"/dev/task/run/subject","type":"TASKRUN","content":{"taskName":"test-task-started","url":"http://dev/task/url","pipelineRun":
rjalander commented 11 months ago

Actually, these are the negative tests that are expected to fail and the error is logged as per the source code