From 3510429d83e38c8693b592bcc54492f8f23af23a Mon Sep 17 00:00:00 2001 From: zerob13 Date: Fri, 20 Nov 2026 13:53:40 +0800 Subject: [PATCH] ci: let every main push finish its checks The build and test jobs of a main push shared one concurrency group with cancel-in-progress, so the next merge cancelled them. Of 20 full main runs since 2026-11-19, 8 ended that way and reported nothing about their commit. Each push now keeps its own jobs; on 2026-11-19 that would have cost about 55 more macOS minutes out of 1788. The README shows the latest finished main result. Refs #1919 --- .github/workflows/ci.yml | 16 ---------------- README.md | 2 +- docs/release/README.md | 2 +- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efc0a32534..7e657d801a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,6 @@ on: permissions: contents: read concurrency: - # Main check jobs join their shared groups only after path classification. group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || (github.ref == 'refs/heads/main' && github.run_id) || github.ref }} cancel-in-progress: true env: @@ -54,9 +53,6 @@ jobs: dependencies: needs: changes if: needs.changes.outputs.rust == 'true' || needs.changes.outputs.dependencies == 'true' - concurrency: - group: ci-main-dependencies-${{ github.ref == 'refs/heads/main' && needs.changes.outputs.rust == 'true' && 'shared' || github.run_id }} - cancel-in-progress: true runs-on: [self-hosted, windows, x64] timeout-minutes: 15 env: @@ -77,9 +73,6 @@ jobs: windows-cli: needs: changes if: needs.changes.outputs.windows == 'true' - concurrency: - group: ci-main-windows-cli-${{ github.ref == 'refs/heads/main' && needs.changes.outputs.rust == 'true' && 'shared' || github.run_id }} - cancel-in-progress: true runs-on: [self-hosted, windows, x64] timeout-minutes: 15 env: @@ -98,9 +91,6 @@ jobs: web: needs: changes if: needs.changes.outputs.web == 'true' - concurrency: - group: ci-main-web-${{ github.ref == 'refs/heads/main' && needs.changes.outputs.rust == 'true' && 'shared' || github.run_id }} - cancel-in-progress: true runs-on: [self-hosted, windows, x64] timeout-minutes: 15 steps: @@ -152,9 +142,6 @@ jobs: if: >- needs.changes.outputs.rust == 'true' || needs.changes.outputs.xtask == 'true' || needs.changes.outputs.scripts == 'true' - concurrency: - group: ci-main-verify-${{ github.ref == 'refs/heads/main' && needs.changes.outputs.rust == 'true' && 'shared' || github.run_id }} - cancel-in-progress: true # PR runners must be isolated from release credentials and private networks. runs-on: [self-hosted, macOS, ARM64] timeout-minutes: 75 @@ -296,9 +283,6 @@ jobs: acp-registry: needs: changes if: github.event_name != 'pull_request' && (needs.changes.outputs.rust == 'true' || needs.changes.outputs.scripts == 'true') - concurrency: - group: ci-main-acp-registry-${{ github.ref == 'refs/heads/main' && needs.changes.outputs.rust == 'true' && 'shared' || github.run_id }} - cancel-in-progress: true runs-on: [self-hosted, linux, x64] timeout-minutes: 30 env: diff --git a/README.md b/README.md index 7de68c23cd..582628bf23 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ **Dim is a paradigm for general-purpose agents that grow into the environments they inhabit.** -[![Rust toolchain 1.100.0](https://img.shields.io/badge/Rust-1.100.0-93450a.svg?logo=rust)](rust-toolchain.toml) [![npm alpha version](https://img.shields.io/npm/v/dimcode-alpha/alpha.svg?label=npm%20alpha)](https://www.npmjs.com/package/dimcode-alpha?activeTab=versions) [![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Join us on Discord](https://img.shields.io/badge/Discord-Join%20us-5865F2?logo=discord&logoColor=white)](https://discord.gg/ds35K3TadP) +[![main CI](https://img.shields.io/github/actions/workflow/status/arcships/dim/ci.yml?branch=main&event=push&label=main%20CI&logo=github)](https://github.com/arcships/dim/actions/workflows/ci.yml?query=branch%3Amain+event%3Apush) [![Rust toolchain 1.100.0](https://img.shields.io/badge/Rust-1.100.0-93450a.svg?logo=rust)](rust-toolchain.toml) [![npm alpha version](https://img.shields.io/npm/v/dimcode-alpha/alpha.svg?label=npm%20alpha)](https://www.npmjs.com/package/dimcode-alpha?activeTab=versions) [![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Join us on Discord](https://img.shields.io/badge/Discord-Join%20us-5865F2?logo=discord&logoColor=white)](https://discord.gg/ds35K3TadP) arcships/dim on Trendshift diff --git a/docs/release/README.md b/docs/release/README.md index 301b91db92..4bbf5ffa8c 100644 --- a/docs/release/README.md +++ b/docs/release/README.md @@ -178,7 +178,7 @@ failure stops packaging. An explicitly requested historical tag that predates the builder uses its original Cargo build. Linux arm64, macOS and Windows release packages use the ordinary Cargo executable. -`ci.yml` runs on pull requests, pushes to `main`, and manual dispatch. A pull request runs the groups its changed paths need, as decided by `scripts/ci-changes.mjs`. A push to `main` runs only `changes` and `ci-ok` when its entire push range changes only documentation paths that select no check group. Architecture pages checked by `xtask` and the native storage format document retain the full main run, as do mixed pushes and pushes whose base cannot be compared. Manual dispatch selects every group. A documentation-only run leaves in-progress main build and test jobs running. +`ci.yml` runs on pull requests, pushes to `main`, and manual dispatch. A pull request runs the groups its changed paths need, as decided by `scripts/ci-changes.mjs`. A push to `main` runs only `changes` and `ci-ok` when its entire push range changes only documentation paths that select no check group. Architecture pages checked by `xtask` and the native storage format document retain the full main run, as do mixed pushes and pushes whose base cannot be compared. Manual dispatch selects every group. Every push to `main` runs its selected jobs to completion: a later push does not cancel them, so each merge has its own result and the `main CI` badge in the [README](../../README.md) reports the latest finished one. CI builds the workspace, checks formatting and Clippy, runs workspace tests and boundary checks, runs the packaging/development script tests, and exercises the ignored actual CLI profile and public Node-backed flows. `ci-ok` passes when every selected job passed, so it is the check to require. CI builds without debug info (`CARGO_PROFILE_DEV_DEBUG=0`). The [build environment](../architecture/build.md) describes test artifact reuse, concurrency limits, and target deadlines. Cargo runs documentation tests with the same features, and ignored CLI and Node flows reuse the recorded binaries without package-scoped recompilation. Node-backed checks run for runtime, binding and service-contract paths, and CLI-only changes retain their ordinary and actual-profile flows. Evaluation tests use `xtask/eval-tests` for `xtask/` changes, and the wall-clock handoff runs for execution-related changes. The `web` job runs on self-hosted Windows x64 alongside macOS `verify` when both are selected. It stages the frontend package, verifies generated declarations and bundled dependency notices, and runs the Web tests.