Ci cd

From apache/beam · View interactive version

Ci cd is an AI agent skill from the GitHub repository apache/beam. Guides understanding and working with Apache Beam's CI/CD system using GitHub Actions. Use when debugging CI failures, understanding test workflows, or modifying CI configuration.

How to use this skill

Skill file

CI/CD in Apache Beam

Overview

Apache Beam uses GitHub Actions for CI/CD. Workflows are located in .github/workflows/.

Workflow Types

PreCommit Workflows

PostCommit Workflows

Scheduled Workflows

Key Workflows

PreCommit

| Workflow | Description |

|----------|-------------|

| beam_PreCommit_Java.yml | Java build and tests |

| beam_PreCommit_Python.yml | Python tests |

| beam_PreCommit_Go.yml | Go tests |

| beam_PreCommit_RAT.yml | License header checks |

| beam_PreCommit_Spotless.yml | Code formatting |

PostCommit - Java

| Workflow | Description |

|----------|-------------|

| beam_PostCommit_Java.yml | Full Java test suite |

| beam_PostCommit_Java_ValidatesRunner_*.yml | Runner validation tests |

| beam_PostCommit_Java_Examples_*.yml | Example pipeline tests |

PostCommit - Python

| Workflow | Description |

|----------|-------------|

| beam_PostCommit_Python.yml | Full Python test suite |

| beam_PostCommit_Python_ValidatesRunner_*.yml | Runner validation |

| beam_PostCommit_Python_Examples_*.yml | Examples |

Load & Performance Tests

| Workflow | Description |

|----------|-------------|

| beam_LoadTests_*.yml | Load testing |

| beam_PerformanceTests_*.yml | I/O performance |

Triggering Tests

Automatic

Triggering Specific Workflows

Use trigger files to run specific workflows.

Workflow Dispatch

Most workflows support manual triggering via GitHub UI.

Understanding Test Results

Finding Logs

  1. Go to PR → Checks tab
  2. Click on failed workflow
  3. Expand failed job
  4. View step logs

Common Failure Patterns

Flaky Tests
Timeout
Resource Exhaustion

GCP Credentials

Workflows requiring GCP access use these secrets:

Required IAM roles:

Self-hosted vs GitHub-hosted Runners

Self-hosted (majority of workflows)

GitHub-hosted

Workflow Structure

name: Workflow Name
on:
  push:
    branches: [master]
  pull_request:
    branches: [master]
  schedule:
    - cron: '0 0 * * *'
  workflow_dispatch:

jobs:
  build:
    runs-on: [self-hosted, ...]
    steps:
      - uses: actions/checkout@v4
      - name: Run Gradle
        run: ./gradlew :task:name

Local Debugging

Run Same Commands as CI

Check workflow file's run commands:

./gradlew :sdks:java:core:test
./gradlew :sdks:python:test

Common Issues

Snapshot Builds

Locations

Release Workflows

| Workflow | Purpose |

|----------|---------|

| cut_release_branch.yml | Create release branch |

| build_release_candidate.yml | Build RC |

| finalize_release.yml | Finalize release |

| publish_github_release_notes.yml | Legacy/unused (see contributor-docs/release-guide.md for gh release edit flow) |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.