SovereignCloudStack / issues

This repository is used for issues that are cross-repository or not bound to a specific repository.
https://github.com/orgs/SovereignCloudStack/projects/6
2 stars 1 forks source link

Integrate SCS compliance checker in zuul #279

Closed fkr closed 1 year ago

fkr commented 1 year ago

As a first use-case for the SCS zuul we should integrate the SCS compliance checker.

Definition of Ready:

Definition of Done:

fkr commented 1 year ago

docker run -it --env OS_CLOUD=gxscs-capi -v ~/.config/openstack/root/.config/openstack:ro ghcr.io/sovereigncloudstack/scs-compliance-check:main

fkr commented 1 year ago

https://github.com/SovereignCloudStack/standards/tree/main/Tests

itrich commented 1 year ago

This has been achieved for GitHub.

o-otte commented 1 year ago

We pushed this issue to the upcoming sprint due to the public holiday on thursday, because there is no sprint planning on that day.

fkr commented 1 year ago

@o-otte we have a sprint planning tomorrow (we moved it from Thursday to tomorrow) ;) However, despite that, I think, it is fine to pull stuff into doing nevertheless! Thanks for being proactive!

master-caster commented 1 year ago

Trying to port some checks to zuul jobs i tried to create some workflow sufficient to work with. Let's use the example for flavor name checks: https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/flavor-naming/flavor-names-openstack.py

This script can be called with various arguments to access information of the desired cloud. As Zuuls CI/CD nature it may run on pre-defined actions or on a time based interval.

So how would you apply the information that zuul should go ahead and check a given cloud for compliance? At least Zuul will need access to that cloud by parameters often specified in a cloud.yaml.

Right now you have to clone the repo or run a container for the compliance check to happen. (or do i miss something?)

master-caster commented 1 year ago

For testing purposes i used to create a PR that will trigger a job that will fetch all available flavors from the given cloud.

This seem to work. A small step for SCS a huge leap for me :grin:

master-caster commented 1 year ago

The already existing compliance checks are now run against wavestack. This is resulting in a failure or success if the compliance is given or not.

I updated the zuul-config repository to fetch a badge from zuul to indicate the current status. And this is nearly working. Some caching issues on the github side is preventing the information from being the most recent one