Skip to content

[Backport release-2.3] render: Replace condition timestamps and sort resources to stabilize output#92

Merged
adamwg merged 2 commits into
release-2.3from
backport-82-to-release-2.3
Jun 9, 2026
Merged

[Backport release-2.3] render: Replace condition timestamps and sort resources to stabilize output#92
adamwg merged 2 commits into
release-2.3from
backport-82-to-release-2.3

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Description

Backport of #82 to release-2.3.

adamwg added 2 commits June 8, 2026 23:08
The old render command used a static timestamp for status condition
`lastTransitionTime`s so that output was stable across runs with the same
inputs. The new render engine calls the real reconciler, and therefore produces
real timestamps.

Restore stability by replacing the timestamps in any status conditions returned
by the render engine before outputting them. We use the same static timestamp
that was present in the old CLI for consistency with its output.

Fixes #50

Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
(cherry picked from commit 8aa164a)
…tion

The old CLI's `render` command sorted composed resources by the
`composition-resource-name` annotation to ensure output consistency across runs
with the same inputs. The real reconciler code used by the new render engine
does not sort the results, so we need to sort them client-side to ensure
stability.

Fixes #53

Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
(cherry picked from commit ddc2f67)
@github-actions github-actions Bot requested review from a team, jcogilvie and tampakrap as code owners June 8, 2026 23:08
@github-actions github-actions Bot requested review from negz and removed request for a team June 8, 2026 23:08
@adamwg adamwg closed this Jun 9, 2026
@adamwg adamwg reopened this Jun 9, 2026
@adamwg adamwg merged commit 84c3975 into release-2.3 Jun 9, 2026
9 checks passed
@adamwg adamwg deleted the backport-82-to-release-2.3 branch June 9, 2026 19:21
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