Skip to content

conforma: carry run info for skipped/in-progress runs and return partial results - #116

Merged
tommartensen merged 2 commits into
mainfrom
tm/conforma-run-info
Dec 1, 2026
Merged

tommartensen merged 2 commits into
mainfrom
tm/conforma-run-info

Conversation

@tommartensen

@tommartensen tommartensen commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Extracted from the relacs serve branch (#98 ) so the Konflux-layer changes can land independently of the web UI.

  • ConformaViolations.SkippedRuns and InProgressRuns now hold ConformaRunInfo entries (pipeline run name, Konflux UI URL, and for skipped runs the reason the report was unavailable) instead of bare run names. The list-conforma-violations text output adapts accordingly.
  • ListConformaViolations now errors only when no report could be read because runs were skipped; while every conforma run is still in progress, the partial result is returned with the runs listed in InProgressRuns instead of an error.
  • The pipeline-run URL construction is extracted into a shared pipelineRunURL helper.

🤖 Generated with Claude Code

tommartensen and others added 2 commits November 30, 2026 10:56
ConformaViolations.SkippedRuns and InProgressRuns now hold
ConformaRunInfo entries with the pipeline run's Konflux UI URL and,
for skipped runs, the reason the report was unavailable, instead of
bare run names. The list-conforma-violations output adapts
accordingly.

Co-Authored-By: Claude Code <noreply@anthropic.com>
ListConformaViolations now errors only when no report could be read
because runs were skipped; while every conforma run is still in
progress, the partial result is returned with the runs listed in
InProgressRuns instead of an error.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@tommartensen
tommartensen requested a review from a team as a code owner November 30, 2026 09:57
@tommartensen
tommartensen marked this pull request as draft November 30, 2026 09:59
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Conforma violation results now include links to in-progress and skipped runs, along with skip reasons when available.
    • When all runs are still in progress, results are returned without an error and include the in-progress runs.

Conforma violation results now include names and URLs for in-progress and skipped runs. Skipped runs also include retrieval or parsing reasons. When every run is in progress, the function returns partial output without an error.

Changes: Conforma run result reporting

Layer / File(s) Summary
Run metadata contract and URL construction
pkg/konflux/conforma.go, pkg/konflux/conforma_runs.go
ConformaRunInfo records contain a run name, URL, and optional reason. Pipeline-run URL construction uses the application label and run name.
Collect partial results
pkg/konflux/conforma.go
In-progress runs and runs with retrieval or parsing errors are recorded with metadata. When every run is in progress, the function returns partial output without an error.
Display run metadata and validate results
cmd/relacs/konflux/list_conforma_violations.go, tests/konflux/conforma_violations_test.go
The command displays in-progress URLs and skip reasons, and derives run names for partial-result errors. Tests check the returned metadata and all-in-progress behavior.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant CLI
  participant ListConformaViolations
  participant PipelineRun
  participant ReportLogs
  participant ReportParser
  CLI->>ListConformaViolations: Request violation results
  ListConformaViolations->>PipelineRun: Read run status and metadata
  alt Run is in progress
    ListConformaViolations->>PipelineRun: Record run name and URL
  else Run has a report
    ListConformaViolations->>ReportLogs: Retrieve report logs
    ReportLogs-->>ListConformaViolations: Return logs or retrieval error
    ListConformaViolations->>ReportParser: Parse retrieved report
    ReportParser-->>ListConformaViolations: Return violations or parsing error
  end
  ListConformaViolations-->>CLI: Return results, run metadata, or error
Loading

Suggested reviewers: lvalerom, grimmimeloni

Merge Risk: Minimal · up to 7234c

The change adds run names, URLs and skip reasons to Conforma violation output, and returns partial results when all runs are still in progress. No actionable merge-blocking risk was found in the supplied changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: Conforma skipped and in-progress runs now carry run info, and the function returns partial results. It matches the summaries of conforma.go, the list command, and the …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The PR description states that the change extracts Konflux-layer changes from the relacs serve branch. It names the concrete changes: ConformaRunInfo entries replacing bare run names in SkippedRuns an…
Full details: Title check

Explanation

The title names the main change: Conforma skipped and in-progress runs now carry run info, and the function returns partial results. It matches the summaries of conforma.go, the list command, and the tests. It is specific and accurate, and it fits the stated objectives.

Full details: Description check

Explanation

The PR description states that the change extracts Konflux-layer changes from the relacs serve branch. It names the concrete changes: ConformaRunInfo entries replacing bare run names in SkippedRuns and InProgressRuns, a revised ListConformaViolations error condition, and a shared pipelineRunURL helper. These match the raw summary and the PR objectives, so the description relates directly to the changeset.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 08c09b5f-eeef-4ea0-ae50-27376b38b7d4
Commits

Reviewing files that changed from the base of the PR and between ab274c0 and 7234c87.

Files selected for processing: 4

  • cmd/relacs/konflux/list_conforma_violations.go
  • pkg/konflux/conforma.go
  • pkg/konflux/conforma_runs.go
  • tests/konflux/conforma_violations_test.go

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 8 remain after this review.

@tommartensen tommartensen self-assigned this Nov 30, 2026
@tommartensen
tommartensen requested a review from kurlov November 30, 2026 10:04
@tommartensen
tommartensen marked this pull request as ready for review November 30, 2026 10:04
@tommartensen
tommartensen merged commit ccafeee into main Dec 1, 2026
6 checks passed
@tommartensen
tommartensen deleted the tm/conforma-run-info branch December 1, 2026 12:56
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.

2 participants