Files
tracer-cloud--opensre/.github/workflows/closed-loop-weekly.yml
T
wehub-resource-sync 4b6817381b
Benchmark image — build + push to ECR (any adapter) / build + push (push) Waiting to run
CI / quality (ubuntu-latest) (push) Waiting to run
CI / test (tools-runtime) (push) Waiting to run
CI / test (e2e-general) (push) Waiting to run
CI / test (cli-runtime) (push) Waiting to run
CI / test (e2e-provider-and-openclaw) (push) Waiting to run
CI / test (integrations-and-misc) (push) Waiting to run
CI / coverage-report (push) Blocked by required conditions
CI / test-kubernetes (push) Waiting to run
CI / should-run-thorough (push) Waiting to run
CI / test-thorough (cloudwatch-demo) (push) Blocked by required conditions
CI / test-thorough (flink-ecs) (push) Blocked by required conditions
CI / test-thorough (upstream-lambda) (push) Blocked by required conditions
CI / test-thorough (prefect-ecs-fargate) (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Blocked by required conditions
Release / publish-release (push) Blocked by required conditions
Release / publish-main-release (push) Blocked by required conditions
Release / prepare (push) Waiting to run
Release / verify (push) Blocked by required conditions
Release / build-python-dist (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Blocked by required conditions
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Blocked by required conditions
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Waiting to run
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Waiting to run
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:10:45 +08:00

119 lines
4.0 KiB
YAML

name: Closed-loop learning (weekly miss triage)
# Weekly reminder workflow for the closed-loop learning process documented
# in docs/closed-loop-learning.mdx. Runs at 09:00 UTC every Monday and
# also supports manual triggering.
#
# The workflow does not consume the per-user ``~/.opensre/misses.jsonl``
# store directly (that lives on engineer machines, not on the runner).
# Its purpose is to:
# 1) Open or refresh a tracking issue that nudges the on-call engineer
# to run ``opensre misses stats --since 7d`` and then
# ``opensre misses export --since 7d --top 10 --out tests/benchmarks/production_misses/``.
# 2) Verify the ``misses_command`` CLI surface is still wired and exits
# cleanly, so the weekly process is not blocked by a CLI regression.
on:
schedule:
- cron: "0 9 * * 1"
workflow_dispatch: {}
permissions:
contents: read
issues: write
jobs:
smoke:
name: Verify opensre misses CLI
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v8.1.0
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install dependencies
run: uv sync --frozen --extra dev
- name: Smoke test misses CLI
run: |
uv run opensre misses --help
uv run opensre misses list --json
uv run opensre misses stats --json
remind:
name: Open weekly triage reminder
needs: smoke
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v5
- name: Open weekly tracking issue (close last week's first)
uses: actions/github-script@v7
with:
script: |
// One issue per week. Previous week's tracker is closed before
// opening this week's so triage history is per-week (GitHub's
// natural unit) rather than one ever-growing comment thread.
// Uses the existing "pending triage" label so we do not
// auto-create a new label on first run.
const week = new Date().toISOString().slice(0, 10);
const titlePrefix = "Weekly closed-loop learning triage";
const title = `${titlePrefix} — week of ${week}`;
const body = [
"Weekly nudge per docs/closed-loop-learning.mdx.",
"",
"Steps for this week's on-call:",
"- [ ] `opensre misses stats --since 7d`",
"- [ ] Review recurring `(alert, taxonomy)` pairs",
"- [ ] `opensre misses export --since 7d --top 10 --out tests/benchmarks/production_misses/`",
"- [ ] Open a PR labelled `benchmark` with the new scenarios",
"- [ ] Trigger the benchmark workflow on the PR branch",
].join("\n");
const { data: openIssues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: "open",
labels: "pending triage",
per_page: 100,
});
const stale = openIssues.filter(
(i) => i.title.startsWith(titlePrefix) && i.title !== title,
);
for (const issue of stale) {
await github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: issue.number,
state: "closed",
state_reason: "completed",
});
}
const existing = openIssues.find((i) => i.title === title);
if (existing) {
return;
}
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title,
body,
labels: ["pending triage"],
});