Repository navigation
feat(events): progress values on custom attestation steps - #3882
Conversation
Custom run events can carry a progress of a current value and a total. chainloop attestation event takes --current and --total, and workflow run describe shows the progress on the step row. A long step reports its progress with repeated started events. Implements R-015 and D-015 of spec issue-3825. Refs #3825 Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 5879441f-3738-4aa2-b8ff-46476884884d
PR validation — ✅ 3 passing
AI Session Checks — 🟡 85% · ✅ 0 failing
|
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-587944 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-587944 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-587944 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-587944 |
- |
Security Checks — ⚠️ 1 failing
⚠️ AI Security Analysis
The per-PR audit did not finish: 3 concerns went unreviewed (spend ceiling or time). No introduced risk was found in what it reviewed, but treat this as incomplete, not clean.
View in Chainloop ↗ · How this works ↗
✅ Secret Scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | secrets-detection |
- |
✅ SAST Scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | owasp-top10-2025 |
- |
| ✅ Passed | sast |
- |
| ✅ Passed | cwe-top25 |
- |
| ✅ Passed | cwe-top26-40-cusp |
- |
✅ IaC Scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | iac-misconfiguration |
- |
Scans not applied (2)
| Scan | Reason |
|---|---|
| Vulnerability Scan | no manifest/lockfile changed |
| GitHub Actions Scan | no workflow files changed |
Powered by Chainloop and Chainloop Trace
There was a problem hiding this comment.
All reported issues were addressed across 26 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Progress moves out of the custom attributes into an optional field of WorkflowRunEvent, stored in its own column, so other event types can support it later. Today only custom events accept it. Also treat empty --current or --total values as wrong values instead of no flags. Refs #3825 Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 5879441f-3738-4aa2-b8ff-46476884884d
There was a problem hiding this comment.
All reported issues were addressed across 31 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Refs #3825
Custom attestation steps can carry progress values, so a long pipeline step can show how far it got, for example 240 of 500 commits.
WorkflowRunEventgets an optional top-levelProgress progress, withProgress { int64 current; int64 total }. Current is from 0 to total, and total is more than 0. The progress is not one of the typed attributes, so other event types can support it later. Today the control plane accepts it only on custom events. It is stored in a new nullableprogresscolumn.chainloop attestation eventtakes--current N --total N. It needs both flags or neither. A wrong or empty value shows a warning, sends nothing, and exits 0, as for the other wrong input of the command.startedevents of its key. There is no new status.chainloop workflow run describeshows the progress of the last event of a custom step on the step row. Below the step, consecutive progress updates fold into the last one, so a step that reports every few seconds does not print hundreds of lines. The JSON output keeps every event.Spec: this adds R-015 and D-015 to spec issue-3825. D-015 supersedes the Non-goal "custom attributes on custom events", which is struck through.
AI disclosure: this change was made with the help of Claude Code.
🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri