|
|
|
|
Quelle workflows.md Sprache: unbekannt
|
|
Spracherkennung für: .md vermutete Sprache: SQL {SQL[170] VHDL[145] VDM[115]} [Methode: maximale Elemente, drei Dimensionen]
# GitHub Workflows Summary
### Note
- The grouping below is done mainly by primary trigger (the main event that causes runs).
- _Importance_ is a rough evaluation of the importance of the workflow in our operations:
- High: core CI logic, merge-flow, branch-health, or high-impact automation.
- Medium: quality checks, reports, notifications, and operational helpers.
- Low: cosmetic/status/bookkeeping helpers with limited blast radius.
### Trigger type glossary
This is an overview of the most important triggers used by Mathlib CI. For a complete listing, pl ease [see the GitHub actions documentation](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows).
- `pull_request`: runs on PR activity using the PR branch workflow file.
- `pull_request_target`: runs on PR activity using the base branch workflow file (safer access to repository secrets/write operations when guarded correctly).
- `issue_comment`: runs when issue or PR comments are created/edited.
- `pull_request_review`: runs on PR review submissions.
- `pull_request_review_comment`: runs on inline PR review comments.
- `push`: runs when commits are pushed to matching branches/tags.
- `schedule`: runs at a regular scheduled time.
- `workflow_dispatch`: manual run from the Actions UI or API.
- `workflow_run`: runs after another workflow run is requested, is in progress, or is completed.
- `issues`: runs on issue lifecycle events (for example `closed`, `reopened`).
- `workflow_call`: reusable workflow entrypoint, triggered only when called by another workflow.
# Summary
## Main CI
| File | Name | Importance | Triggers | Description |
|---|---|---|---|---|
| [`build_fork.yml`](../.github/workflows/build_fork.yml) | continuous integration (mathlib forks)<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/build_fork.yml) | High | `pull_request_target` | On PRs from forks, this workflow builds, lints and tests Mathlib using the reusable build template (`build_template.yml`). |
| [`bors.yml`](../.github/workflows/bors.yml) | continuous integration (staging)<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/bors.yml) | High | `push` | On the `staging` and `trying` branches used by Bors, this workflow builds, lints and tests Mathlib using the reusable build template (`build_template.yml`). |
| [`build.yml`](../.github/workflows/build.yml) | continuous integration<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/build.yml) | High | `push` | On non-fork PRs, this workflow builds, lints and tests Mathlib using the reusable build template (`build_template.yml`). |
| [`release_cache.yml`](../.github/workflows/release_cache.yml) | publish release cache<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/release_cache.yml) | High | `push (v4.* tags), workflow_dispatch` | On every `v4.*` release tag, this workflow builds the tagged commit using the reusable build template (`build_template.yml`) and publishes its cache to the `master` container. When the cache is already complete, the build uploads nothing. |
<!-- TODO: Remove this paragraph when no active Batteries adaptations remain in mathlib4-nightly-testing. -->
Batteries adaptations on `mathlib4-nightly-testing` also retain push builds and status reports.
Their reporting job uses the existing `mathlib-nightly-testing` App.
Batteries adaptation PRs come from `leanprover-community/mathlib4-adaptations`.
They use `build_fork.yml`, including while they are drafts. The shared fork has Actions disabled.
PR tests accept full commit pins for unmerged dependencies; Bors requires stable dependency references.
A separate job reports build, test, and lint results on the Batteries PR, with status comments and `builds-mathlib` / `breaks-mathlib` labels.
It uses `lean-pr-testing-comments.sh` from `mathlib-ci`.
It posts a fresh comment when `awaiting-mathlib` is present and removes that label after success.
Read the [Batteries contributor guide](https://github.com/leanprover-community/batteries#mathlib-adaptations)
for the adaptation process and the [workflow reference](https://github.com/leanprover-community/batteries/blob/main/docs/ci/mathlib-adaptations.md)
for fork permissions and recovery procedures.
### The main CI pipelines above all use this reusable workflow for the base logic:
| File | Description |
|---|---|
| [`build_template.yml`](../.github/workflows/build_template.yml) | Reusable CI workflow (`workflow_call`) that performs Lean setup, build/test/lint steps, cache/artifact handling, and reporting. Cache uploads have a 20-minute timeout; post-build checks have a 30-minute timeout. |
## Pull requests
Primary trigger for this section: PR/merge-queue events (`pull_request`, `pull_request_target`).
| File | Name | Importance | Triggers | Description |
|---|---|---|---|---|
| [`actionlint.yml`](../.github/workflows/actionlint.yml) | Check workflows<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/actionlint.yml) | Medium | `pull_request` | Runs `actionlint` for workflow changes on PRs and merge queues and posts suggestions using `reviewdog`. Also checks that every action is pinned to a SHA, and that nothing uses the Actions cache. |
| [`commit_verification.yml`](../.github/workflows/commit_verification.yml) | Commit Verification<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/commit_verification.yml) | Medium | `pull_request` | Verifies `transient:` and `x:` commits in PRs and posts a verification summary comment. |
| [`check_pr_titles.yaml`](../.github/workflows/check_pr_titles.yaml) | Check PR titles<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/check_pr_titles.yaml) | Low | `pull_request_target` | Validates PR titles against project conventions and maintains a sticky guidance comment. |
| [`lint_and_suggest_pr.yml`](../.github/workflows/lint_and_suggest_pr.yml) | lint and autofix<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/lint_and_suggest_pr.yml) | Medium | `pull_request` | Runs the style linters and the `pre-commit` hooks in fixing mode and pushes the result to the PR branch via pre-commit.ci lite. Also checks that files under `Mathlib/` have a `.lean` or `.md` extension. |
| [`PR_summary.yml`](../.github/workflows/PR_summary.yml) | Post PR summary comment<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/PR_summary.yml) | Low | `pull_request_target` | On `pull_request_target`, computes PR summary data (imports/declarations/tech debt), manages related labels, and updates PR comments. |
| [`add_label_from_diff.yaml`](../.github/workflows/add_label_from_diff.yaml) | Autolabel PRs<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/add_label_from_diff.yaml) | Low | `pull_request_target, push` | Applies an inferred topic label to newly opened PRs using `lake exe autolabel`. |
| [`label_new_contributor.yml`](../.github/workflows/label_new_contributor.yml) | Label New Contributors<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/label_new_contributor.yml) | Low | `pull_request_target` | Labels PRs from new contributors (based on the number of their PRs merged). |
| [`zulip_emoji_reconcile.yml`](../.github/workflows/zulip_emoji_reconcile.yml) | Zulip emoji reconcile<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/zulip_emoji_reconcile.yml) | Low | `schedule, pull_request_target, workflow_run, workflow_dispatch` | Keeps the Zulip emoji reactions on PR-related messages in sync with each PR's state (open/closed/merged, labels, CI result). The event triggers update within seconds; the hourly `schedule` sweep is a self-healing safety net. Repo-specific rules live in `.github/zulip-emoji-config.json`; the engine is in mathlib-ci. |
## Maintainer commands
| File | Name | Importance | Triggers | Description |
|---|---|---|---|---|
| [`maintainer_bors.yml`](../.github/workflows/maintainer_bors.yml) | Bors merge/delegate follow-up<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/maintainer_bors.yml) | High | `issue_comment, pull_request_review, pull_request_review_comment` | Detects bors merge/delegate commands and emits a bridge artifact for the privileged follow-up workflow. The `ready-to-merge`/`delegated` lifecycle labels are managed by bors itself (see `bors.toml`). |
| [`maintainer_merge.yml`](../.github/workflows/maintainer_merge.yml) | Maintainer merge<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/maintainer_merge.yml) | High | `issue_comment, pull_request_review, pull_request_review_comment` | Handles maintainer merge/delegate commands, performs permission checks, and posts Zulip/PR notifications. |
| [`labels_from_comment.yml`](../.github/workflows/labels_from_comment.yml) | Label PR based on Comment<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/labels_from_comment.yml) | Medium | `issue_comment, pull_request_review, pull_request_review_comment` | Adds/removes an allowlisted set of labels based on comment/review text commands. |
| [`olean_report.yaml`](../.github/workflows/olean_report.yaml) | olean report<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/olean_report.yaml) | Low | `issue_comment` | On-demand olean diff for a PR, triggered by `!olean_report` at the start of a comment line. Fetches oleans for the PR head and its merge base, runs a diff, and emits a bridge artifact for the companion workflow to post as a PR comment. |
| [`sync_closed_tasks.yaml`](../.github/workflows/sync_closed_tasks.yaml) | Cross off linked issues<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/sync_closed_tasks.yaml) | Low | `issues, pull_request` | Updates the dependent PR checkboxes when issues/PRs are closed or reopened. |
## Scheduled CI maintenance
Primary trigger for this section: scheduled automation (`schedule`, often with `workflow_dispatch`).
| File | Name | Importance | Triggers | Description |
|---|---|---|---|---|
| [`daily.yml`](../.github/workflows/daily.yml) | Daily CI Workflow<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/daily.yml) | High | `schedule (daily at 00:00 UTC)` | Runs leanchecker, `mathlib_test_executable`, nanoda, and `AesopTest` on master and the current bump branch. Posts results to Zulip. |
| [`update_dependencies.yml`](../.github/workflows/update_dependencies.yml) | Update Mathlib Dependencies<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/update_dependencies.yml) | High | `schedule (daily at 00:17 UTC), workflow_dispatch` | Runs `lake update` in a job without credentials. A separate job bumps the `mathlib-ci` pin and opens or updates the bot PR with the resulting `lake-manifest.json`. Skips branch updates when there are no changes and no open PR. Alerts on failures. |
| [`docker_build.yml`](../.github/workflows/docker_build.yml) | docker<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/docker_build.yml) | Medium | `schedule (daily at 00:00 UTC)` | Scheduled build-and-push of Docker images to GHCR with metadata and provenance attestations. |
| [`merge_conflicts.yml`](../.github/workflows/merge_conflicts.yml) | Merge conflicts<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/merge_conflicts.yml) | Medium | `schedule (every 15 minutes)` | Periodically detects conflicted PRs and labels/comments on them. |
| [`nightly-docgen.yml`](https://github.com/leanprover-community/mathlib-ci/blob/master/.github/workflows/nightly-docgen.yml) <br/> (**mathlib-ci**) | Docgen test on the Mathlib bump branch<br>[](https://github.com/leanprover-community/mathlib-ci/actions/workflows/nightly-docgen.yml) | Medium | `schedule (daily at 01:37 UTC)` | Builds documentation for the current Mathlib bump branch and posts results to Zulip. |
| [`nightly-regression-report.yml`](https://github.com/leanprover-community/mathlib-ci/blob/master/.github/workflows/nightly-regression-report.yml) <br/> (**mathlib-ci**) | Mathlib bump regression report<br>[](https://github.com/leanprover-community/mathlib-ci/actions/workflows/nightly-regression-report.yml) | Medium | `schedule (daily at 04:37 UTC)` | Runs the regression linters on the current Mathlib bump branch and posts results to Zulip. |
| [`nolints.yml`](../.github/workflows/nolints.yml) | update nolints<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/nolints.yml) | Medium | `schedule (weekly on Sunday at 00:00 UTC)` | Regenerates `nolints.json` on a schedule and opens/updates an auto-merged PR with the result. |
| [`remove_deprecated_decls.yml`](../.github/workflows/remove_deprecated_decls.yml) | Remove outdated deprecated declarations<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/remove_deprecated_decls.yml) | Medium | `schedule (monthly on day 15 at 04:05 UTC)` | Monthly/manual cleanup of old deprecations with optional PR creation and Zulip notifications. |
| [`rm_set_option.yml`](../.github/workflows/rm_set_option.yml) | Remove unnecessary `set_option` lines<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/rm_set_option.yml) | Medium | `schedule (weekly on Sunday at 23:20 UTC)` | Creates a branch that removes unnecessary `set_option` lines and opens an auto-merged PR with the result. |
| [`shake.yaml`](../.github/workflows/shake.yaml) | shake<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/shake.yaml) | Medium | `schedule (weekly on Sunday at 20:10 UTC), workflow_dispatch` | Runs `lake shake --fix` weekly to remove redundant imports, uploads an `explain.txt` artifact with per-file stats, and opens a PR with import counts in the body. Sends Zulip notifications on success or failure. |
| [`dependent-issues.yml`](../.github/workflows/dependent-issues.yml) | Dependent Issues<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/dependent-issues.yml) | Low | `schedule (every 15 minutes), workflow_dispatch` | Periodically updates the `blocked-by-other-PR` label and a comment listing dependencies from PR dependency checkboxes, using [leanprover-community/dependent-issues](https://github.com/leanprover-community/dependent-issues). Manual runs can set `dry_run` to only log the changes. The label is informational: bors reads the same dependency lines from the PR description itself to block merging (see `[dependencies]` in `bors.toml`). |
| [`latest_import.yml`](../.github/workflows/latest_import.yml) | Late importers report<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/latest_import.yml) | Low | `schedule (weekly on Monday at 04:00 UTC)` | Runs weekly min-imports analysis/build and posts a late-importers report to Zulip. |
| [`long_file_report.yml`](../.github/workflows/long_file_report.yml) | Weekly Long File Report<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/long_file_report.yml) | Low | `schedule (weekly on Monday at 04:00 UTC)` | Runs a weekly long-file report script and posts the result to Zulip. |
| [`duplicate_decls_report.yml`](../.github/workflows/duplicate_decls_report.yml) | Duplicate Declarations Report<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/duplicate_decls_report.yml) | Low | `schedule (weekly on Monday at 06:00 UTC), workflow_dispatch` | Runs `scripts/dup_decls_report.lean` to find duplicate theorems/instances/defs, uploads the full listing as the `dup-decls-report` artifact, and posts a summary to Zulip. |
| [`technical_debt_metrics.yml`](../.github/workflows/technical_debt_metrics.yml) | Weekly Technical Debt Counters<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/technical_debt_metrics.yml) | Low | `schedule (weekly on Monday at 04:00 UTC)` | Runs weekly technical-debt counter script and posts results to Zulip. |
| [`weekly-lints.yml`](../.github/workflows/weekly-lints.yml) | Weekly linting report<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/weekly-lints.yml) | Low | `schedule (weekly on Monday at 05:00 UTC)` | Runs a set of low-priority lints and posts the results to Zulip |
| [`lake_cache_shadow.yml`](../.github/workflows/lake_cache_shadow.yml) | Lake cache shadow (master)<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/lake_cache_shadow.yml) | Low | `schedule (daily at 06:00 UTC), workflow_dispatch` | Shadow pipeline exercising Lake's built-in artifact cache against master via an R2 bucket: builds + stages + uploads, then rebuilds purely from the cache and asserts full cache hits. Reports per-run status, cache-hit health, and day-over-day carryover to Zulip (`nightly-testing`). |
## Workflow chaining (`workflow_run`)
Primary trigger for this section: completion of other workflows (`workflow_run`).
| File | Name | Importance | Triggers | Description |
|---|---|---|---|---|
| [`update_dependencies_zulip.yml`](../.github/workflows/update_dependencies_zulip.yml) | Monitor Dependency Update Failures<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/update_dependencies_zulip.yml) | High | `workflow_run` | Watches CI runs on the dependency-update branch and sends Zulip success/failure messages with the PR link and the dependency changes. |
| [`maintainer_bors_wf_run.yml`](../.github/workflows/maintainer_bors_wf_run.yml) | Bors merge/delegate follow-up (workflow_run)<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/maintainer_bors_wf_run.yml) | Medium | `workflow_run` | Privileged companion: removes `awaiting-author`/`maintainer-merge` on bors merge/delegate commands. The `ready-to-merge`/`delegated` lifecycle labels are managed by bors itself, and Zulip emoji reactions by `zulip_emoji_reconcile.yml`. |
| [`maintainer_merge_wf_run.yml`](../.github/workflows/maintainer_merge_wf_run.yml) | Maintainer merge (workflow_run)<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/maintainer_merge_wf_run.yml) | Medium | `workflow_run` | Manages labels and posts on Zulip for maintainer merge/delegate commands. |
| [`olean_report_wf_run.yaml`](../.github/workflows/olean_report_wf_run.yaml) | olean report (workflow_run)<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/olean_report_wf_run.yaml) | Low | `workflow_run` | Privileged companion to `olean_report.yaml`. Downloads the bridge artifact and posts or updates the olean diff as a comment on the PR. |
| [`decls-diff.yml`](../.github/workflows/decls-diff.yml) | Declarations diff (post-build)<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/decls-diff.yml) | Low | `workflow_run` | Post-build companion to `ci` that diffs the `import-graph` artifact of a PR build against its master merge-base and patches the `### PR summary` comment's declarations-diff section with the Lean-aware result (or a cache-miss notice). |
| [`export_telemetry.yaml`](../.github/workflows/export_telemetry.yaml) | Export workflow telemetry<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/export_telemetry.yaml) | Low | `workflow_run` | Exports CI run telemetry to OTLP when selected CI workflows complete. |
| [`export_crossrefs.yml`](../.github/workflows/export_crossrefs.yml) | Export cross-reference data<br>[](https://github.com/leanprover-community/mathlib4/actions/workflows/export_crossrefs.yml) | Low | `workflow_run` | After a successful master `ci` build, regenerates the cross-reference JSON (decls. with a `CrossRef.Tag`) via `scripts/export_crossrefs.lean` and pushes it to the versioned crossrefs repository when the entries change. |
[zur Elbe Produktseite wechseln0.178QuellennavigatorsAnalyse erneut starten2026-11-17]
|
2026-11-24
|
|
|
|
|