chore: import upstream snapshot with attribution
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
CI / coverage-report (push) Has been cancelled
CI / test-kubernetes (push) Has been cancelled
CI / should-run-thorough (push) Has been cancelled
CI / test-thorough (cloudwatch-demo) (push) Has been cancelled
CI / test-thorough (flink-ecs) (push) Has been cancelled
CI / test-thorough (upstream-lambda) (push) Has been cancelled
CI / test-thorough (prefect-ecs-fargate) (push) Has been cancelled
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Has been cancelled
Benchmark image — build + push to ECR (any adapter) / build + push (push) Has been cancelled
CI / quality (ubuntu-latest) (push) Has been cancelled
CI / test (tools-runtime) (push) Has been cancelled
CI / test (e2e-general) (push) Has been cancelled
CI / test (cli-runtime) (push) Has been cancelled
CI / test (e2e-provider-and-openclaw) (push) Has been cancelled
CI / test (integrations-and-misc) (push) Has been cancelled
Release / verify (push) Has been cancelled
Release / build-python-dist (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Has been cancelled
Release / publish-release (push) Has been cancelled
Release / publish-main-release (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Has been cancelled
Release / prepare (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Has been cancelled
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Has been cancelled
CI (OpenClaw E2E) / openclaw test (push) Has been cancelled
CI / coverage-report (push) Has been cancelled
CI / test-kubernetes (push) Has been cancelled
CI / should-run-thorough (push) Has been cancelled
CI / test-thorough (cloudwatch-demo) (push) Has been cancelled
CI / test-thorough (flink-ecs) (push) Has been cancelled
CI / test-thorough (upstream-lambda) (push) Has been cancelled
CI / test-thorough (prefect-ecs-fargate) (push) Has been cancelled
Release / build-binaries (zip, opensre.exe, onefile, windows-latest, windows-x64) (push) Has been cancelled
Benchmark image — build + push to ECR (any adapter) / build + push (push) Has been cancelled
CI / quality (ubuntu-latest) (push) Has been cancelled
CI / test (tools-runtime) (push) Has been cancelled
CI / test (e2e-general) (push) Has been cancelled
CI / test (cli-runtime) (push) Has been cancelled
CI / test (e2e-provider-and-openclaw) (push) Has been cancelled
CI / test (integrations-and-misc) (push) Has been cancelled
Release / verify (push) Has been cancelled
Release / build-python-dist (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-15-intel, darwin-x64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, macos-latest, darwin-arm64) (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04, linux-x64) (push) Has been cancelled
Release / publish-release (push) Has been cancelled
Release / publish-main-release (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-checks (no-LLM) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Interactive Shell Live (PR + post-merge) / turn-live shard ${{ matrix.shard_index }} (push) Has been cancelled
Release / prepare (push) Has been cancelled
Release / build-binaries (tar.gz, opensre, onedir, ubuntu-22.04-arm, linux-arm64) (push) Has been cancelled
Synthetic Deterministic Tests / Synthetic offline (deterministic) (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,118 @@
|
||||
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"],
|
||||
});
|
||||
Reference in New Issue
Block a user