Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .devops/review.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,3 @@ rule = "python.lang.security.audit.non-literal-import.non-literal-import"
path = "src/devops_cli/telemetry/memory_profiler.py"
reason = "The module name comes only from the operator's own --target argument, checked against an identifier pattern; not reachable from MCP (#1150)."
expiry = "2027-04-09"

[[suppressions]]
rule = "python.lang.security.audit.non-literal-import.non-literal-import"
path = "src/devops_cli/commands/release.py"
reason = "import_module only receives a module path from the hardcoded _LAZY_OBJECT_MAPPING literal, and only after an `in` check on the name; that mapping is never changed, so no user or attacker input reaches the import (#1150)."
expiry = "2027-04-09"
8 changes: 3 additions & 5 deletions .github/actions/devcontainer-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Build the DevContainer image with its features
description: >-
Build .devcontainer/devcontainer.json with the Dev Containers CLI that tools.lock pins, so the
image holds the Dev Container Features, the user vscode and the devcontainer.metadata label a
child repository reads, and push it by digest (#1895). The pull request job and the release job
child repository reads, for linux/amd64 only and with no emulation, and push it by digest
(#1895). The pull request job and the release job
both call this action, so the pull request check builds what the release publishes; each then
starts the digest with .github/actions/devcontainer-smoke before anything attests or tags it.
The caller checks out the repository, installs uv with the project synchronized, and logs in to
Expand Down Expand Up @@ -32,9 +33,6 @@ outputs:
runs:
using: composite
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0

# The host network lets the builder push to a registry on the runner's localhost.
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
Expand Down Expand Up @@ -84,7 +82,7 @@ runs:
--config .devcontainer/devcontainer.build.json \
--frozen-lockfile \
--image-name "$IMAGE" \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64 \
--output type=image,push-by-digest=true,name-canonical=true,push=true \
"${CACHE_ARGS[@]}"
echo "digest=$(jq -er '."containerimage.digest"' "$RUNNER_TEMP/devcontainer-build-metadata.json")" >> "$GITHUB_OUTPUT"
Expand Down
24 changes: 7 additions & 17 deletions .github/actions/devcontainer-smoke/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Start the DevContainer image as its remote user
description: >-
Start a pushed devcontainer image as a child repository does, before anything attests or tags
it (#1895). `devcontainer up` on a configuration that names only the image proves that the
image's devcontainer.metadata label gives the remote user vscode, and each platform then runs as
image's devcontainer.metadata label gives the remote user vscode, and the image then runs as
vscode, uid and gid 1000, with a command from each Dev Container Feature on its path. The
docker-in-docker feature makes the container privileged, so the caller's job holds no write
scope and no OIDC token. The caller checks out the repository, installs uv with the project
Expand All @@ -16,9 +16,6 @@ inputs:
runs:
using: composite
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0

- name: Set up Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
Expand All @@ -28,9 +25,6 @@ runs:
shell: bash
run: uv run devops install-tools --tool devcontainers-cli --only-missing

# The classic image store holds one image for each repository@digest, so a second platform of
# the index digest fails with "cannot overwrite digest". Each platform runs by the digest of
# its own manifest in the index.
- name: Start the image as its remote user
shell: bash
env:
Expand All @@ -43,13 +37,9 @@ runs:
jq -n --arg image "$REF" '{image: $image, updateRemoteUserUID: false}' > "$CHILD/.devcontainer/devcontainer.json"
devcontainer up --workspace-folder "$CHILD" --skip-post-create > /dev/null
test "$(devcontainer exec --workspace-folder "$CHILD" id -un)" = vscode
INDEX="$(docker buildx imagetools inspect --raw "$REF")"
for PLATFORM in linux/amd64 linux/arm64; do
DIGEST="$(jq -er --arg os "${PLATFORM%/*}" --arg arch "${PLATFORM#*/}" 'first(.manifests[] | select(.platform.os == $os and .platform.architecture == $arch) | .digest)' <<< "$INDEX")"
docker run --rm --platform "$PLATFORM" --user vscode "${REF%@*}@$DIGEST" sh -ec '
test "$(id -u):$(id -g)" = 1000:1000
for TOOL in zsh git gh copilot node npm docker kubectl helm minikube claude; do
command -v "$TOOL" > /dev/null || { echo "missing: $TOOL" >&2; exit 1; }
done
devops --version > /dev/null'
done
docker run --rm --user vscode "$REF" sh -ec '
test "$(id -u):$(id -g)" = 1000:1000
for TOOL in zsh git gh copilot node npm docker kubectl helm minikube claude; do
command -v "$TOOL" > /dev/null || { echo "missing: $TOOL" >&2; exit 1; }
done
devops --version > /dev/null'
2 changes: 1 addition & 1 deletion .github/actions/setup-toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ runs:
# each xdist worker compiling the same modules while it collects (#1735).
- name: Synchronize dependencies
shell: bash
run: uv sync --all-groups --all-extras --compile-bytecode
run: uv sync --locked --all-groups --all-extras --compile-bytecode

- name: Initialize workspace directories
shell: bash
Expand Down
20 changes: 12 additions & 8 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

- name: "type/epic"
color: "3E4B9E"
description: "High-level tracking epic or release parent issue coordinating deliverables"
description: "High-level tracking epic coordinating deliverables"

# ── Scope Labels ────────────────────────────────────────────────────────────
- name: "scope/ai"
Expand Down Expand Up @@ -77,7 +77,7 @@

- name: "scope/release"
color: "1D76DB"
description: "Release coordination, changelog generation, and milestone epics"
description: "The release-please workflow, the changelog and the published artifacts"

- name: "scope/ci"
color: "1D76DB"
Expand All @@ -87,18 +87,22 @@
color: "5319E7"
description: "Docker container images, DevContainers, and infrastructure tooling"

- name: "release"
color: "1D76DB"
description: "Pull request or issue associated with a release cut"
- name: "autorelease: pending"
color: "EDEDED"
description: "The release pull request that release-please keeps open"

- name: "autorelease: tagged"
color: "EDEDED"
description: "A release pull request whose release release-please created"

# ── Priority Labels ─────────────────────────────────────────────────────────
- name: "priority/p0-critical"
color: "B60205"
description: "Urgent blockages, critical vulnerabilities, or release blockers"
description: "Urgent blockages or critical vulnerabilities"

- name: "priority/p1-high"
color: "D93F0B"
description: "High impact work required for upcoming release milestone"
description: "High impact work for the current milestone"

- name: "priority/p2-medium"
color: "FBCA04"
Expand Down Expand Up @@ -132,7 +136,7 @@
# ── Roadmap Labels ──────────────────────────────────────────────────────────
- name: "needs-split"
color: "FBCA04"
description: "Too big for one pull request; reprioritization descopes it until it is split"
description: "Too big for one pull request; split it before work starts"

- name: "source/agent"
color: "5319E7"
Expand Down
8 changes: 4 additions & 4 deletions .github/project-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "Status",
"type": "single_select",
"options": [
{"name": "New", "color": "GRAY", "description": "An item that is not yet ready", "replaces": ["Backlog", "Todo"]},
{"name": "New", "color": "GRAY", "description": "An item that is not yet ready"},
{"name": "Ready", "color": "BLUE", "description": "A problem statement, acceptance criteria and an answer to every key question"},
{"name": "In Progress", "color": "YELLOW", "description": "Actively under development"},
{"name": "In Review", "color": "PURPLE", "description": "Its pull request is open for review and CI"},
Expand All @@ -22,7 +22,7 @@
"options": [
{"name": "P0-Critical", "color": "RED", "description": "Urgent blocker or security defect"},
{"name": "P1-High", "color": "ORANGE", "description": "High-priority milestone deliverable"},
{"name": "P2-Medium", "color": "YELLOW", "description": "Standard release deliverable"},
{"name": "P2-Medium", "color": "YELLOW", "description": "Standard deliverable"},
{"name": "P3-Low", "color": "GREEN", "description": "Minor optimization or polish"}
]
},
Expand All @@ -47,7 +47,7 @@
{
"name": "Job record",
"type": "text",
"description": "JSON the roadmap jobs write: the last value they set for each field (Release, Status, Priority, Value, Effort). No view shows it."
"description": "JSON the roadmap jobs write: the last value they set for each field (Status, Priority, Value, Effort). No view shows it."
}
],
"views": [
Expand All @@ -65,7 +65,7 @@
"group_by": "Milestone",
"date_fields": ["Start Date", "Target Date"],
"visible_fields": ["Title", "Status", "Priority", "Assignees"],
"description": "Release roadmap timeline grouped chronologically by release version."
"description": "Planning timeline grouped by milestone, in the order of the milestone due dates."
},
{
"name": "Triage & Quality Table",
Expand Down
24 changes: 2 additions & 22 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
## Summary
<!-- What this pull request changes, and why. -->

---

## Type of Change
<!-- Mark the one that applies with an 'x'. -->
- [ ] `feat`: New feature or capability
- [ ] `fix`: Bug fix or defect remediation
- [ ] `refactor`: Code reorganization with zero functional behavior change
- [ ] `docs`: Documentation updates or additions
- [ ] `test`: New or updated tests
- [ ] `chore`: Maintenance, dependencies, or tooling updates

---

## Base Branch
<!-- Every pull request except the release pull request (`release/v<version>` into `main`), which carries the release branch as it stands, targets the active release branch. Two release-process pull requests into it close no issue: the cut pull request (`chore/cut-v<version>`), which only modifies the cut's files (`pyproject.toml`, `src/devops_cli/__init__.py`, `uv.lock`, `CHANGELOG.md`, `docs/ROADMAP.md`) and removes the fragments it collects, and the merge of `main` (`chore/open-v<version>-main`), which changes only the cut's files and what `main` changed since its merge base with the release branch. `devops pr check-readiness` holds either one to the Item section below when it changes any other file. -->
- `release/v<version>` (not `main`)
<!-- What this pull request changes, and why. The title is a Conventional Commit (`feat:`, `fix:`, `perf:`, `refactor:`, `docs:`, `test:`, `build:`, `ci:`, `style:`, `chore:`, `revert:`). The squash commit takes the title, and release-please writes the changelog from it. -->

---

## Item
<!-- Name the one issue this pull request delivers and the task file it adds or changes. `devops pr check-readiness` blocks a pull request whose body closes no issue or several, or that does not change that issue's task file. An item planned as several pull requests says `Part of #<issue>` instead in each but the last, which closes it; until then its task file may read `**Status**: In Progress`. -->
<!-- Name the one issue this pull request delivers and the task file it adds or changes. `devops pr check-readiness` blocks a pull request whose body closes no issue or several, or that does not change that issue's task file. -->
Closes #<issue>

Task file: `docs/agent/tasks/task-<issue>-<slug>.md`

Changelog fragment: `changelog.d/<issue>.md`
<!-- The entry goes there. Do not edit `CHANGELOG.md` or `docs/ROADMAP.md`: the cut writes both, and `devops pr check-readiness` blocks a pull request into a release branch that changes either. A critical fix after the cut edits the version's `CHANGELOG.md` section instead, with no fragment. A `Part of #<issue>` pull request adds no fragment: the one that closes the item adds it. -->
7 changes: 7 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
{
"matchManagers": ["github-actions"],
"labels": ["type/chore", "scope/ci"]
},
{
"description": "A base image update of the service image is a fix, so release-please releases it. Other updates stay chore and release nothing alone.",
"matchManagers": ["dockerfile"],
"matchFileNames": ["Dockerfile"],
"commitMessagePrefix": "fix(deps):",
"prBodyNotes": ["Fail-to-pass: not applicable: a base image update changes no test."]
}
]
}
31 changes: 11 additions & 20 deletions .github/roadmap.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# The roadmap jobs' settings for this repository (ADR 0001). Every runner reads this file
# through the GitHub contents API at one ref; `devops roadmap migrate`, `render` and `reprioritize`
# take it with `--ref`, which defaults to the default branch.
# through the GitHub contents API at one ref; `devops roadmap intake` and `refine` take it with
# `--ref`, which defaults to the default branch.

# The project board (number) that holds the roadmap's Items. It has no default.
board = 2

# Planned releases kept after the current one. Three keep v0.2.26, and the v0.2.27 and v0.2.28
# releases that hold the P0 and P1 work due before v0.3.0.
planning_horizon = 3

# L: open issue limit where the throttle ratio reaches 1 closure per opening
open_issue_limit = 200

Expand All @@ -18,22 +14,17 @@ throttle_start_fraction = 0.8
# o: share of open_issue_limit above the limit that adds one closure per opening
overage_step_fraction = 0.25

# Base credit granted at release start with zero delivered items
release_credit_base = 10
# The agent filing quota (#1153) counts over a rolling window of this many days that ends now
quota_window_days = 7

# Additional credit granted per item delivered in the previous release
release_credit_per_delivered_item = 1
# Credit the window gives with no item closed as completed in it
quota_credit_base = 10

# Upper cap on release credit, and target item count per release cycle
release_item_target = 50
# Credit each item closed as completed in the window adds
quota_credit_per_delivered_item = 1

# Temporary bridge (owner, 2026-10-09): the running Service trims or descopes any release over
# release_cap. Until it runs #1514 (a start fills to 12, with 4 slots up to 16), 16 keeps the
# items already placed in planned releases. Remove this line once the Service runs #1514.
release_cap = 16
# The most credit the window gives
quota_credit_cap = 50

# Keys left out take these defaults:
# release_slots = 4 # items a release holds above release_cap before a start trims it or a critical fix descopes one
# discovery_threshold = 24 # backlog size below which discovery looks for candidates
# stall_days = 14 # days without activity before an in-progress item stalls
# release_copilot_passes = 2 # Copilot review passes a release pull request gets, the pass when it opens included; `devops pr copilot-pass` requests no more (#1345)
# refine_ready_target = 12 # refine readies backlog items while fewer than this many items are Ready
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
# re-trigger redundant test suites, coverage reports, and container builds.
# Project automation and card state transitions are handled natively via GitHub Projects v2 built-in workflows.
types: [opened, synchronize, reopened]
branches: [main, "release/**"]
branches: [main]
schedule:
# Advisory dependency freshness sweep at 05:00 UTC, kept off the pull request
# critical path so it never delays merge feedback.
Expand Down Expand Up @@ -121,16 +121,15 @@ jobs:
echo "~~~"
} >> "$GITHUB_STEP_SUMMARY"

# Builds the devcontainer image of every pull request into main, release pull requests
# included, and of every workflow_dispatch run, with the actions release.yml uses (#1895). It
# Builds the devcontainer image of every pull request and of every workflow_dispatch run, with
# the actions release.yml uses (#1895). It
# pushes the image by digest to a registry on the runner, starts it as its remote user, and
# publishes nothing. On a pull request it runs only when the change alters image content; a
# dispatch always builds.
devcontainer:
name: DevContainer Image
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.base_ref == 'main')
github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request'
runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501
timeout-minutes: 60
permissions:
Expand Down Expand Up @@ -236,13 +235,12 @@ jobs:
with:
image-ref: localhost:5000/devcontainer@${{ steps.image.outputs.digest }}

# Builds, smoke-tests and scans the Service image of every pull request into main, release
# pull requests included, without pushing it; release.yml publishes it after the merge (#1486).
# Builds, smoke-tests and scans the Service image of every pull request, without pushing it;
# release.yml publishes it when a release is created (#1486).
service-image:
name: Service Image
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && github.base_ref == 'main')
github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request'
runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501
timeout-minutes: 30
permissions:
Expand Down Expand Up @@ -361,11 +359,9 @@ jobs:
# Advisory: reruns the pull request's added or modified test files three times, one run after
# another, each in a shuffled order, to catch tests that depend on the order they run in.
# Shuffling the whole suite waits for thread-leak isolation.
# Not on the release pull request into main: every test the release touched has changed there,
# and each of its items already passed this job against the release branch.
changed-tests:
name: Changed-Test Independence
if: github.event_name == 'pull_request' && github.base_ref != 'main'
if: github.event_name == 'pull_request'
runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501
timeout-minutes: 30
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
push:
branches: ["main"]
pull_request:
branches: ["main", "release/**"]
branches: ["main"]
schedule:
- cron: "32 15 * * 0"

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/fail-to-pass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ name: Fail-to-Pass Test Replay
on:
pull_request:
types: [opened, synchronize, reopened, edited, labeled]
# Item pull requests into a release branch prove their fix here. The release pull request
# into main carries items that each passed, and its tests cannot replay on main's tree.
branches: ["release/**"]
branches: [main]

permissions:
contents: read
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR Title

# release-please reads each squash title as a Conventional Commit and drops a title it cannot
# parse without a warning, so the title of every pull request into main is checked.
on:
pull_request:
types: [opened, edited, synchronize, reopened]
branches:
- main

permissions: {}

jobs:
semantic-title:
name: Semantic PR title
runs-on: ubuntu-24.04 # moves to ubuntu-26.04 in #1501
timeout-minutes: 5
permissions:
pull-requests: read

steps:
- name: Check the Title Is a Conventional Commit
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading