mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 01:48:05 +00:00
precommit
This commit is contained in:
parent
9deb0beb86
commit
0c9ffff1b8
2 changed files with 1 additions and 22 deletions
22
.github/workflows/conformance.yml
vendored
22
.github/workflows/conformance.yml
vendored
|
|
@ -129,32 +129,12 @@ jobs:
|
|||
|
||||
echo "Will compare: ${BASE_SPEC} -> ${CURRENT_SPEC}"
|
||||
|
||||
- name: Write ignore file
|
||||
run: |
|
||||
cat <<EOF > ignore-oasdiff
|
||||
response-property-became-nullable none
|
||||
response-property-list-of-types-widened none
|
||||
request-parameter-default-value-added none
|
||||
request-property-min-items-increased none
|
||||
response-property-became-optional none
|
||||
response-required-property-removed none
|
||||
response-property-one-of-added none
|
||||
response-property-type-changed none
|
||||
request-property-one-of-removed none
|
||||
request-parameter-enum-value-removed none
|
||||
request-property-enum-value-removed none
|
||||
request-property-type-changed none
|
||||
response-body-type-changed none
|
||||
response-media-type-removed none
|
||||
request-body-type-changed none
|
||||
EOF
|
||||
|
||||
# Run oasdiff to detect breaking changes in the API specification
|
||||
# This step will fail if incompatible changes are detected, preventing breaking changes from being merged
|
||||
- name: Run OpenAPI Breaking Change Diff
|
||||
if: steps.skip-check.outputs.skip != 'true'
|
||||
run: |
|
||||
oasdiff breaking --fail-on ERR --severity-levels ignore-oasdiff $BASE_SPEC $CURRENT_SPEC --match-path '^/v1/'
|
||||
oasdiff breaking --fail-on ERR $BASE_SPEC $CURRENT_SPEC --match-path '^/v1/'
|
||||
|
||||
# Report when test is skipped
|
||||
- name: Report skip reason
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue