postprocess

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package postprocess runs cross-cutting linkage passes against the populated metrics SQLite store after every connector has finished extracting and before the manifest is written.

Two passes are implemented in v1:

  • Incident linkage: for each incident with a release_ref but no deploy_id, find a matching deploys row (release_tag or version) and populate deploy_id + commit_sha. Falls back to releases.tag for commit_sha alone when no deploy matches.

  • Deploy rollback linkage: within each (repo, environment) group, identify deploys that re-ship an older commit while skipping the immediately prior commit. Such deploys are marked as superseding the prior deploy, and the prior deploy is marked rolled_back.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

type Stats struct {
	IncidentsLinked    int
	DeploysRolledBack  int
	LandedViaPRMatched int
}

Stats is the summary returned by Run.

func Run

func Run(ctx context.Context, db *sql.DB, log *slog.Logger) (Stats, error)

Run executes cross-cutting linkage passes against the populated SQLite store. It is called by internal/run after every connector has completed and before the manifest is written.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL