Skip to content

Add workflow execution timeout configuration #785

Description

@stranske

Description

Workflow executions currently use fixed timeout values defined in the workflow YAML files. When workflows need different timeout durations for different contexts (development vs production, simple vs complex tasks), there's no flexible way to configure these dynamically.

Proposed Solution

Implement a timeout configuration system that allows workflows to specify timeout values through:

  1. Repository variables for environment-specific defaults
  2. Workflow input parameters for manual override
  3. Label-based timeout hints (e.g., timeout:extended for complex operations)
  4. Automatic timeout scaling based on historical execution times

Implementation Details

  • Add timeout configuration parser to workflow scripts
  • Create repository variables: WORKFLOW_TIMEOUT_DEFAULT, WORKFLOW_TIMEOUT_EXTENDED
  • Implement label detection for timeout hints
  • Add timeout metadata to workflow run outputs for monitoring
  • Update workflow documentation with timeout configuration examples
  • Add timeout warning system that alerts 5 minutes before expiration

Acceptance Criteria

  • Workflows can read timeout values from repository variables
  • Manual workflow runs accept timeout override parameter
  • Label timeout:extended increases timeout by 2x
  • Timeout warnings logged when 80% of time consumed
  • Documentation updated with configuration guide
  • Existing workflows continue with current timeouts by default

Priority

Low - Nice to have for flexibility but current fixed timeouts work adequately.

Additional Context

This would be particularly useful for:

  • Long-running verification workflows
  • Matrix builds with varying complexity
  • Development vs production environments
  • Workflows that process variable-sized inputs

Labels

enhancement, workflows, configuration, technical-debt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions