Skip to content

pre-commit: add hook check-yaml #9133

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

Merged
merged 3 commits into from
Dec 31, 2024

Conversation

jbampton
Copy link
Member

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)
  • 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?

Copy link

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DaanHoogland DaanHoogland reopened this Jun 3, 2024
@jbampton
Copy link
Member Author

jbampton commented Jul 8, 2024

@blueorangutan package

@blueorangutan
Copy link

@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
Copy link

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

@jbampton jbampton force-pushed the pre-commit-check-yaml branch from 8ecc0e1 to b1778cc Compare October 14, 2024 11:59
@jbampton
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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
Copy link

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

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@vishesh92
Copy link
Member

@blueorangutan test

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm. can be merged once the tests passes.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@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
Copy link

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

@blueorangutan
Copy link

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

@jbampton
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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
Copy link

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

@jbampton
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@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
Copy link

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

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[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

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[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

@DaanHoogland DaanHoogland merged commit 57867dc into apache:main Dec 31, 2024
26 checks passed
@jbampton jbampton deleted the pre-commit-check-yaml branch December 31, 2024 11:59
@nvazquez
Copy link
Contributor

nvazquez commented Jan 4, 2025

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

@DaanHoogland
Copy link
Contributor

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 added a commit that referenced this pull request Jan 4, 2025
weizhouapache pushed a commit that referenced this pull request Jan 6, 2025
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jan 10, 2025
abh1sar added a commit to abh1sar/cloudstack that referenced this pull request Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants