cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

pre-commit: add hook `check-yaml`

Open jbampton opened this issue 1 year ago • 7 comments

https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#check-yaml

Description

This PR adds another check or test to our pre-commit framework.

From the official pre-commit organization.

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] Enhancement (improves an existing feature and functionality)
  • [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
  • [X] build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [ ] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [ ] Minor
  • [ ] Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Ran locally:

pre-commit run --all-files

How did you try to break this feature and the system with this change?

jbampton avatar May 28 '24 14:05 jbampton

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 16.06%. Comparing base (b48de4e) to head (58dfd88). Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9133   +/-   ##
=========================================
  Coverage     16.06%   16.06%           
- Complexity    12871    12872    +1     
=========================================
  Files          5642     5642           
  Lines        493973   493973           
  Branches      59895    59895           
=========================================
+ Hits          79348    79351    +3     
+ Misses       405839   405837    -2     
+ Partials       8786     8785    -1     
Flag Coverage Δ
uitests 4.01% <ø> (ø)
unittests 16.90% <ø> (+<0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 28 '24 14:05 codecov[bot]

@blueorangutan package

jbampton avatar Jul 08 '24 02:07 jbampton

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jul 08 '24 02:07 blueorangutan

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10279

blueorangutan avatar Jul 08 '24 03:07 blueorangutan

@blueorangutan package

jbampton avatar Oct 14 '24 12:10 jbampton

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Oct 14 '24 12:10 blueorangutan

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11334

blueorangutan avatar Oct 14 '24 14:10 blueorangutan

@blueorangutan test

vishesh92 avatar Oct 25 '24 04:10 vishesh92

@blueorangutan package

DaanHoogland avatar Oct 28 '24 15:10 DaanHoogland

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Oct 28 '24 16:10 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11460

blueorangutan avatar Oct 28 '24 16:10 blueorangutan

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11466

blueorangutan avatar Oct 29 '24 09:10 blueorangutan

@blueorangutan package

jbampton avatar Dec 20 '24 22:12 jbampton

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Dec 20 '24 22:12 blueorangutan

Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 11870

blueorangutan avatar Dec 20 '24 23:12 blueorangutan

@blueorangutan package

jbampton avatar Dec 28 '24 09:12 jbampton

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Dec 28 '24 09:12 blueorangutan

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11928

blueorangutan avatar Dec 28 '24 10:12 blueorangutan

@blueorangutan test

DaanHoogland avatar Dec 28 '24 11:12 DaanHoogland

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

blueorangutan avatar Dec 28 '24 11:12 blueorangutan

[SF] Trillian test result (tid-12001) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 109701 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9133-t12001-kvm-ol8.zip Smoke tests completed. 139 look OK, 2 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_invalid_upgrade_kubernetes_cluster Failure 3643.80 test_kubernetes_clusters.py
test_02_upgrade_kubernetes_cluster Failure 3647.44 test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_cluster Failure 3651.16 test_kubernetes_clusters.py
test_04_autoscale_kubernetes_cluster Failure 3639.69 test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_cluster Failure 3638.84 test_kubernetes_clusters.py
test_06_delete_kubernetes_cluster Failure 3645.39 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 3669.90 test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_cluster Failure 3702.86 test_kubernetes_clusters.py
test_01_redundant_vpc_site2site_vpn Failure 457.66 test_vpc_vpn.py

blueorangutan avatar Dec 29 '24 18:12 blueorangutan

@blueorangutan test

DaanHoogland avatar Dec 29 '24 20:12 DaanHoogland

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

blueorangutan avatar Dec 29 '24 20:12 blueorangutan

[SF] Trillian test result (tid-12003) Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8 Total time taken: 111134 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9133-t12003-kvm-ol8.zip Smoke tests completed. 140 look OK, 1 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_invalid_upgrade_kubernetes_cluster Failure 3648.09 test_kubernetes_clusters.py
test_02_upgrade_kubernetes_cluster Failure 3650.24 test_kubernetes_clusters.py
test_03_deploy_and_scale_kubernetes_cluster Failure 3653.89 test_kubernetes_clusters.py
test_04_autoscale_kubernetes_cluster Failure 3649.40 test_kubernetes_clusters.py
test_05_basic_lifecycle_kubernetes_cluster Failure 3653.54 test_kubernetes_clusters.py
test_06_delete_kubernetes_cluster Failure 3638.83 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 3675.58 test_kubernetes_clusters.py
test_10_vpc_tier_kubernetes_cluster Failure 3708.02 test_kubernetes_clusters.py

blueorangutan avatar Dec 31 '24 04:12 blueorangutan

Hi guys @jbampton @DaanHoogland @vishesh92 I'm not able to get CKS clusters into Running state after these changes (at least after merging main branch on my PR #9102): image

Accessing one of the CKS nodes I could check there were syntax errors which I could work around by reverting this PR changes. I haven't tried on the current main branch yet but I suspect the same issue could be present there

nvazquez avatar Jan 04 '25 04:01 nvazquez

Sorry @nvazquez , I was a bit eager on this one, let's revert. cc @vishesh92 @jbampton @nvazquez , do you see a possibility to make this check work (by options on the check or a syntax change in the yamls)?

DaanHoogland avatar Jan 04 '25 07:01 DaanHoogland