Skip to content

Commit

Permalink
Merge pull request #1864 from AllenInstitute/feature/1864-pipeline-tw…
Browse files Browse the repository at this point in the history
…eaks

Add timeout statements for quicker error reporting
  • Loading branch information
t-b authored Sep 6, 2023
2 parents d596084 + f4340ba commit 7201e2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
installer_artifact_name: BuildInstaller-dev-assets
installer_flags: ${{ fromJSON('["-x skipHardwareXOPs",""]')[matrix.hardware] }} -s ${{ matrix.source }}
artifact_name: CompilationTest-${{ matrix.source }}-${{ fromJSON('["no-hardware","hardware"]')[matrix.hardware] }}-assets
expensive_checks: "1"
timeout_minutes: 60

Documentation:
name: 👷 Documentation
Expand Down Expand Up @@ -151,6 +151,7 @@ jobs:
artifact_name: test-without-hw-assets
expensive_checks: "1"
instrument_tests: ${{ fromJson('["0", "1"]')[inputs.do_instrumentation] }}
timeout_minutes: 60

TestNI:
name: 🧪 Test NI ${{ matrix.name }}
Expand All @@ -173,6 +174,7 @@ jobs:
artifact_name: test-ni-assets
expensive_checks: "1"
instrument_tests: ${{ fromJson('["0", "1"]')[inputs.do_instrumentation] }}
timeout_minutes: 180

TestITC:
name: 🧪 Test ITC ${{ matrix.name }}
Expand All @@ -195,6 +197,7 @@ jobs:
artifact_name: test-itc-assets
expensive_checks: "1"
instrument_tests: ${{ fromJson('["0", "1"]')[inputs.do_instrumentation] }}
timeout_minutes: 180

ValidateNwb:
name: 👮🏼 Validate NWBv2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-igor-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ on:
default: "0"
type: string
description: Sets environment variable CI_INSTRUMENT_TESTS
timeout_minutes:
required: false
default: 360
type: number
description: Defines the job timeout in minutes
defaults:
run:
shell: bash
Expand All @@ -59,6 +64,7 @@ jobs:
Test:
name: ${{ inputs.overwrite_job_name && inputs.job_name || 'Run' }}
runs-on: ${{ fromJson(inputs.target) }}
timeout-minutes: ${{ inputs.timeout_minutes }}
env:
CI_EXPENSIVE_CHECKS: ${{ inputs.expensive_checks }}
CI_INSTRUMENT_TESTS: ${{ inputs.instrument_tests }}
Expand Down

0 comments on commit 7201e2e

Please sign in to comment.