Skip to content

Commit

Permalink
Merge branch 'feature/AddCancellationRequestedState' of github.com:Ma…
Browse files Browse the repository at this point in the history
…ttMcL4475/task-execution-schemas into MattMcL4475-feature/AddCancellationRequestedState
  • Loading branch information
kellrott committed Oct 10, 2022
2 parents dbe6ea6 + e541087 commit 793aae8
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/lint-validate-openapi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Lint and validate OpenAPI specs

on:
- push
- pull_request

jobs:

lint:
name: Lint OpenAPI definition
runs-on: ubuntu-latest
steps:
- name: Check out head branch
uses: actions/checkout@v2
- name: Run OpenAPI Lint Action
uses: nwestfall/openapi-action@v1.0.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
file: openapi/task_execution_service.openapi.yaml

diff:
name: Show OpenAPI differences relative to target branch
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Check out head branch
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
path: head
- name: Check out base branch
uses: actions/checkout@v2
with:
ref: ${{ github.base_ref }}
path: base
- name: Run OpenAPI Diff Action
uses: mvegter/openapi-diff-action@v0.23.5
with:
head-spec: head/openapi/task_execution_service.openapi.yaml
base-spec: base/openapi/task_execution_service.openapi.yaml

validate:
name: Validate OpenAPI definition
runs-on: ubuntu-latest
steps:
- name: Check out head branch
uses: actions/checkout@v2
- name: Run OpenAPI Validate Action
uses: char0n/swagger-editor-validate@v1
with:
definition-file: openapi/task_execution_service.openapi.yaml
5 changes: 4 additions & 1 deletion openapi/task_execution_service.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ components:
- `SYSTEM_ERROR`: The task was stopped due to a system error, but not from an Executor,
for example an upload failed due to network issues, the worker's ran out
of disk space, etc.
- `CANCELED`: The task was canceled by the user.
- `CANCELED`: The task was canceled by the user, and downstream resources have been deleted.
- `CANCELING`: The task was canceled by the user,
but the downstream resources are still awaiting deletion.
- `PREEMPTED`: The task is stopped (preempted) by the system. The reasons for this would be tied to
the specific system running the job. Generally, this means that the system reclaimed the compute
capacity for reallocation.
Expand All @@ -660,6 +662,7 @@ components:
- SYSTEM_ERROR
- CANCELED
- PREEMPTED
- CANCELING
tesTask:
required:
- executors
Expand Down

0 comments on commit 793aae8

Please sign in to comment.