Skip to content

Increase deploy workflow timeout to prevent build-stage cancellations#2814

Merged
pethers merged 2 commits into
mainfrom
copilot/fix-deploy-job-failure
May 29, 2026
Merged

Increase deploy workflow timeout to prevent build-stage cancellations#2814
pethers merged 2 commits into
mainfrom
copilot/fix-deploy-job-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 29, 2026

The deploy GitHub Actions job was failing intermittently because the run was being canceled during npm run build (prebuild + Vite), not due to a build error. This change adds explicit runtime headroom so deploy can complete on current content volume.

  • Workflow fix

    • Updated .github/workflows/deploy-s3.yml in job deploy to set an explicit timeout.
    • Keeps existing job behavior and step order unchanged; only execution budget is adjusted.
  • Scope

    • Single-file, single-parameter CI change.
    • No build logic, scripts, or deployment commands were modified.
jobs:
  deploy:
    if: ${{ github.event.inputs.fix_mimetypes != 'true' }}
    runs-on: ubuntu-latest
    timeout-minutes: 45
    steps:
      - name: Build with Vite
        run: npm run build

@github-actions github-actions Bot added the size-xs Extra small change (< 10 lines) label May 29, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🏷️ Automatic Labeling Summary

This PR has been automatically labeled based on the files changed and PR metadata.

Applied Labels: size-xs

Label Categories

  • 🗳️ Content: news, dashboard, visualization, intelligence
  • 💻 Technology: html-css, javascript, workflow, security
  • 📊 Data: cia-data, riksdag-data, data-pipeline, schema
  • 🌍 I18n: i18n, translation, rtl
  • 🔒 ISMS: isms, iso-27001, nist-csf, cis-controls
  • 🏗️ Infrastructure: ci-cd, deployment, performance, monitoring
  • 🔄 Quality: testing, accessibility, documentation, refactor
  • 🤖 AI: agent, skill, agentic-workflow

For more information, see .github/labeler.yml.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Increase deploy workflow timeout to prevent build-stage cancellations May 29, 2026
Copilot AI requested a review from pethers May 29, 2026 00:40
@github-actions github-actions Bot added workflow GitHub Actions workflows ci-cd CI/CD pipeline changes deployment Deployment configuration labels May 29, 2026
@pethers pethers marked this pull request as ready for review May 29, 2026 00:41
Copilot AI review requested due to automatic review settings May 29, 2026 00:41
@pethers pethers merged commit 6918725 into main May 29, 2026
12 checks passed
@pethers pethers deleted the copilot/fix-deploy-job-failure branch May 29, 2026 00:41
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Lighthouse Performance Audit

Category Score Status
Performance 85/100 🟡
Accessibility 95/100 🟢
Best Practices 90/100 🟢
SEO 95/100 🟢

📥 Download full Lighthouse report

Budget Compliance: Performance budgets enforced via budget.json

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the S3 deploy workflow’s execution budget to reduce intermittent “job cancelled” failures during the build/deploy pipeline as the rendered content corpus grows.

Changes:

  • Added an explicit timeout-minutes: 45 to the deploy job in the S3 deployment workflow.
  • Documented the rationale in comments (prebuild + Vite + minify + deploy routinely exceeding prior observed runtime).

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

Labels

ci-cd CI/CD pipeline changes deployment Deployment configuration size-xs Extra small change (< 10 lines) workflow GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants