Skip to content

feat: filter failed runs by recipe or date - #36

Merged
HaoZeke merged 1 commit into
mainfrom
feat/filter-failed-runs
Nov 18, 2026
Merged

HaoZeke merged 1 commit into
mainfrom
feat/filter-failed-runs

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

I added eb-keep-logs failures and opt-in recipe and date filters on why and history so site operators can filter failed EasyBuild runs without grepping full log trees.

why previously inspected only one run at a time with no package filter or date bounds, and history required a package argument and scanned every YYYYMMDD_HHMMSS directory regardless of date or outcome. When a pipeline run fails across multiple targets or across a multi-week log tree, isolating failures for a specific recipe or date window required ad-hoc scripting.

The new failures subcommand scans YYYYMMDD_HHMMSS runs under --root oldest first, filters runs by --since and --until (YYYY-MM-DD, YYYYMMDD, or YYYYMMDD_HHMMSS), filters builds by --package (matching the existing PACKAGE prefix and NAME/VERSION conventions) and --target, and reads each failed build's kept session log or stdout log to report its failed EasyBuild step, duration, and log path. With --json, it emits one schema-validated JSON line (schema_version 1). why gains opt-in --package, --since, and --until (narrowing --latest selection by date and filtering builds within the run), and history gains opt-in --since, --until, and --failed.

All additions are opt-in and implemented in the Zig build only (COMPAT.md and the reference shell script record the deliberate difference). Existing default stdout, stderr and exit statuses stay the same as on main, verified by tests/test_output_stability.sh, tests/differential.sh, tests/test_failures.sh, and tests/test_json_schemas.sh. I also updated the Org CLI and JSON schema references, the how-to guide for diagnosing failed builds, README.md, and added a changelog fragment.

Add `eb-keep-logs failures` to list failed builds across `YYYYMMDD_HHMMSS` runs under `--root`, filtered by `--package`, `--target`, `--since` and `--until`, with JSON schema output and a text table showing each failed EasyBuild step and duration.

Also add opt-in `--package`, `--since` and `--until` filters to `why`, and `--since`, `--until` and `--failed` filters to `history`. Existing default command outputs, stderr and exit statuses remain unchanged.
@HaoZeke
HaoZeke merged commit d909e64 into main Nov 18, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant