Skip to content

Commit

Permalink
Introduce links to CDEvents
Browse files Browse the repository at this point in the history
This commits introduces the concept of linking events to CDEvents. We
take inspiration from Eiffel for certain components, and also outline
new APIs and use cases.

Signed-off-by: benjamin-j-powell <bjp@apple.com>

Cleanup the custom spellcheck dictionary

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>

Fix linting issues

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>

Fix references to link schemas

Make the references start with a / and include the whole
path relative to the main schema base URL.
See https://json-schema.org/understanding-json-schema/structuring#dollarref

Schemas from the PR may not be published yet, so adapt
the CI job to look for local files instead.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>

Fix wrong event versions

Artifact packaged and artifact published had the wrong
event versions. Return to v0.2.0-draft (which was already
bumped in this release. Examples already match.

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
  • Loading branch information
benjamin-j-powell authored and benjamin-j-powell committed Mar 6, 2024
1 parent 699dfa2 commit 271e7db
Show file tree
Hide file tree
Showing 93 changed files with 1,393 additions and 91 deletions.
37 changes: 1 addition & 36 deletions .spellcheck-en-custom.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
Auth
BD
CDF
CVE
Gerrit
Github
Gitlab
JSON
KH
KyjITcZXHotdMB
MEYCIQCBT
NGua
NIST
Notational
README
Expand All @@ -19,85 +13,56 @@ SCM
SIG
SRE
Tekton
TestRepo
URI
UUID
XiQlc
american
br
cardpane
cdevent
cdevents
ce
charset
cloudevents
contenttype
customdata
customdatacontenttype
datacontenttype
dataschema
deterministically
dev
emmitted
english
enum
eventdata
fas
fc
geo
href
http
iaas
img
interoperable
jenkins
json
lifecycle
markdownlint
md
modelled
myapp
mybot
mydata
myvalue
namespace
namespaceB
nnnn
notational
observability
param
pdf
pipelinerun
png
pre
quicktime
rfc
rolledback
runtime
sbom
somewherelse
schemaUri
specversion
src
subjectid
taskrun
tekton
testEnv
testcase
testcaserun
testkube
testoutput
testrunreport
testsuite
testsuiterun
ticketURI
toc
typesystem
uri
url
utf
viewUrl
wpaper
xml
ypDXWCjlNKfzTV
yshmiPmp
znnSMNkQIhAJ
15 changes: 2 additions & 13 deletions .spellcheck.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
matrix:
- name: json
aspell:
lang: en
d: en_US
camel-case: true
mode: url
sources:
- "**/*.json|!.github"
dictionary:
wordlists:
- .spellcheck-en-custom.txt
- name: markdown
aspell:
lang: en
Expand All @@ -30,8 +19,8 @@ matrix:
# ```
# content
# ```
- open: '(?s)^(?P<open> *`{3,})$'
- open: '(?s)^(?P<open> *`{3,}.+)$'
close: '^(?P=open)$'
# Ignore text between inline back ticks
- open: '(?P<open>`+)'
close: '(?P=open)'
close: '(?P=open)'
1 change: 1 addition & 0 deletions examples/artifact_packaged.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.artifact.packaged.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/artifact_published.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.artifact.published.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/artifact_signed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.artifact.signed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
3 changes: 2 additions & 1 deletion examples/branch_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.branch.created.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion examples/branch_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.branch.deleted.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
1 change: 1 addition & 0 deletions examples/build_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.build.finished.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/build_queued.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.build.queued.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/build_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.build.started.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
3 changes: 2 additions & 1 deletion examples/change_abandoned.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.abandoned.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
1 change: 1 addition & 0 deletions examples/change_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.created.0.3.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
3 changes: 2 additions & 1 deletion examples/change_merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.merged.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion examples/change_reviewed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.reviewed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion examples/change_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.change.updated.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand All @@ -18,4 +19,4 @@
}
}
}
}
}
1 change: 1 addition & 0 deletions examples/environment_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.environment.created.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/environment_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.environment.deleted.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/environment_modified.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.environment.modified.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/incident_detected.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/monitoring/prod1",
"type": "dev.cdevents.incident.detected.0.2.0-draft",
"timestamp": "2022-11-11T13:52:20.079Z"
Expand Down
1 change: 1 addition & 0 deletions examples/incident_reported.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/monitoring/prod1",
"type": "dev.cdevents.incident.reported.0.2.0-draft",
"timestamp": "2022-11-11T13:52:20.079Z"
Expand Down
1 change: 1 addition & 0 deletions examples/incident_resolved.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/monitoring/prod1",
"type": "dev.cdevents.incident.resolved.0.2.0-draft",
"timestamp": "2022-11-11T13:52:20.079Z"
Expand Down
1 change: 1 addition & 0 deletions examples/pipelinerun_finished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.pipelinerun.finished.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/pipelinerun_queued.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.pipelinerun.queued.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/pipelinerun_started.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.pipelinerun.started.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/repository_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.repository.created.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/repository_deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.repository.deleted.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/repository_modified.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.repository.modified.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_deployed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.deployed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_published.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.published.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
1 change: 1 addition & 0 deletions examples/service_removed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"context": {
"version": "0.4.0-draft",
"id": "271069a8-fc18-44f1-b38f-9d70a1695819",
"chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b",
"source": "/event/source/123",
"type": "dev.cdevents.service.removed.0.2.0-draft",
"timestamp": "2023-03-20T14:27:05.315384Z",
Expand Down
Loading

0 comments on commit 271e7db

Please sign in to comment.