Skip to content

Commit

Permalink
⬆️ upgrade api-server dependencies (ITISFoundation#6860)
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis authored Dec 10, 2024
1 parent 34374b4 commit 81ce420
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 179 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci-testing-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
api-specs:
timeout-minutes: 10
name: "check oas' are up to date"
name: "check OAS' are up to date"
runs-on: ubuntu-latest
steps:
- name: setup python environment
Expand All @@ -35,11 +35,13 @@ jobs:
run: |
uv venv .venv && source .venv/bin/activate
make openapi-specs
./ci/github/helpers/openapi-specs-diff.bash diff \
if ! ./ci/github/helpers/openapi-specs-diff.bash diff \
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/refs/heads/${{ github.event.pull_request.head.ref }} \
.
.; then \
echo "::error:: OAS are not up to date. Run 'make openapi-specs' to update them"; exit 1; \
fi
api-server-backwards-compatibility:
api-server-oas-breaking:
needs: api-specs
timeout-minutes: 10
name: "api-server backwards compatibility"
Expand All @@ -62,11 +64,11 @@ jobs:
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }}/services/api-server/openapi.json \
/specs/services/api-server/openapi.json
oas-backwards-compatibility:
all-oas-breaking:
needs: api-specs
continue-on-error: true
timeout-minutes: 10
name: "oas backwards compatibility"
name: "OAS backwards compatibility"
runs-on: ubuntu-latest
steps:
- name: setup python environment
Expand Down
1 change: 1 addition & 0 deletions services/api-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ openapi-diff.md: guard-OPENAPI_JSON_BASE_URL openapi.json ## Diffs against a rem
# SEE https://schemathesis.readthedocs.io/en/stable/index.html
APP_URL:=http://$(get_my_ip).nip.io:8006


test-api: ## Runs schemathesis against development server (NOTE: make up-devel first)
@docker run schemathesis/schemathesis:stable run \
"$(APP_URL)/api/v0/openapi.json"
2 changes: 2 additions & 0 deletions services/api-server/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5548,6 +5548,7 @@
"urls": {
"items": {
"type": "string",
"minLength": 1,
"format": "uri"
},
"type": "array",
Expand Down Expand Up @@ -6161,6 +6162,7 @@
},
"download_link": {
"type": "string",
"minLength": 1,
"format": "uri",
"title": "Download Link"
}
Expand Down
Loading

0 comments on commit 81ce420

Please sign in to comment.