Commit a5ecfdb
committed
fix: propagate trace context to Snapshot in new-model snapshot creation
Konflux-CI ADR 0061 requires the build PipelineRun's trace context be persisted
onto the Snapshot so the delivery trace continues forward through
integration and release. The old-model adapter does this explicitly.
The new-model PrepareSnapshotForPipelineRun (ComponentGroup-based)
never did, leaving Snapshots created via the new path without a
pipelinerunSpanContext annotation and breaking the trace chain for
every delivery that exercises ComponentGroup workflow.
Mirror the existing old-model behavior with a verbatim copy of
tekton.dev/pipelinerunSpanContext from the build PipelineRun to the
Snapshot, and assert the propagation with a targeted unit test on
PrepareSnapshotForPipelineRun.
Assisted-by: Claude Code
Signed-off-by: Josiah England <jengland@redhat.com>1 parent 3db0d33 commit a5ecfdb
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
457 | 468 | | |
458 | 469 | | |
459 | 470 | | |
| |||
0 commit comments