Integration [apps-no-stats]: Handle ProcessNotFoundError
in cf apps
As a user calls cf apps
in a large space it might happen that a app
was deleted while the CLI is putting all the different information (processes, stats & routes) together.
This leads to a failing cf apps
command.
This change prevents this by catching ProcessNotFoundError
errors and returning nil
instead.
Related to #2734
#838
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Tests: Integration" | |
run-name: "Integration [${{ github.event.workflow_run.head_branch }}]: ${{ github.event.workflow_run.head_commit.message }}" | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: | |
- "Tests" | |
types: | |
- completed | |
jobs: | |
run-integration-tests-cf-env: | |
name: Integration tests | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
uses: ./.github/workflows/tests-integration-reusable.yml | |
with: | |
capi-version: edge | |
run-with-client-creds: false | |
os: ubuntu-latest | |
name: Integration | |
secrets: inherit | |
run-integration-tests-cf-env-with-client-creds: | |
name: client creds | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
uses: ./.github/workflows/tests-integration-reusable.yml | |
with: | |
capi-version: edge | |
run-with-client-creds: true | |
os: ubuntu-latest | |
name: Integration client creds | |
secrets: inherit | |
run-integration-tests-cf-env-with-min-capi: | |
name: MIN CAPI | |
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
uses: ./.github/workflows/tests-integration-reusable.yml | |
with: | |
capi-version: min | |
run-with-client-creds: false | |
os: ubuntu-latest | |
name: Integration MIN CAPI | |
secrets: inherit | |
#run-integration-windows: | |
# name: Windows | |
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
# uses: ./.github/workflows/tests-integration-reusable.yml | |
# with: | |
# capi-version: edge | |
# run-with-client-creds: false | |
# os: windows-latest | |
# name: Integration windows | |
# secrets: inherit | |
#run-integration-windows-client-credentials: | |
# name: Windows with client credentials | |
# if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
# uses: ./.github/workflows/tests-integration-reusable.yml | |
# with: | |
# capi-version: edge | |
# run-with-client-creds: true | |
# os: windows-latest | |
# name: Integration windows client credentials | |
# secrets: inherit |