Skip to content
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

Validate OCM-Component-Descriptors #1107

Open
6 tasks
ccwienk opened this issue Jan 2, 2025 · 0 comments
Open
6 tasks

Validate OCM-Component-Descriptors #1107

ccwienk opened this issue Jan 2, 2025 · 0 comments
Labels
area/delivery Delivery related area/ipcei IPCEI (Important Project of Common European Interest) component/cicd Continuous integration/delivery (tooling and processes) kind/enhancement Enhancement, improvement, extension

Comments

@ccwienk
Copy link
Member

ccwienk commented Jan 2, 2025

Context / Motivation

ocm (+ cnudie) package offers a rather lowlevel binding for (de-)serialising OCM-Component-Descriptors, which merely covers basic syntactical checks. This may lead to invalid OCM-Component-Descriptors being created, either from Concourse-Pipeline-Template (using either component-descriptor trait, or (new) github-actions (defined in this repository)). This can lead to follow-up errors "downstream", fixing of which is time-consuming. We should therefore improve (and enforce) validation to catch errors prior to publishing of OCM-Component-Descriptors.

Implementation Proposal

Checks

  • duplicate labels - labelnames must be unique per list (may merge if values are identical)
  • duplicate artefacts - artefact-IDs must be unique per list (may merge if values are identical)
  • creationTime timestamp format must adhere to RFC 3339 (if present)

integrate validation into

  • ocm package (as a re-usable API / CLI-Tool)
  • Concourse Pipeline Template
  • GitHub-Action(s)
@ccwienk ccwienk added kind/enhancement Enhancement, improvement, extension area/ipcei IPCEI (Important Project of Common European Interest) component/cicd Continuous integration/delivery (tooling and processes) area/delivery Delivery related labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/delivery Delivery related area/ipcei IPCEI (Important Project of Common European Interest) component/cicd Continuous integration/delivery (tooling and processes) kind/enhancement Enhancement, improvement, extension
Projects
None yet
Development

No branches or pull requests

1 participant