Skip to content

build: use image Created timestamp as source date epoch fallback#71

Merged
jlebon merged 1 commit intomainfrom
auto-sde
Feb 26, 2026
Merged

build: use image Created timestamp as source date epoch fallback#71
jlebon merged 1 commit intomainfrom
auto-sde

Conversation

@jlebon
Copy link
Copy Markdown
Member

@jlebon jlebon commented Feb 26, 2026

When splitting an existing image and no SOURCE_DATE_EPOCH is provided, use the Created timestamp from the image inspect output instead of the current time. This makes re-splitting an existing image reproducible without requiring the caller to explicitly set SOURCE_DATE_EPOCH.

Assisted-by: Claude Opus 4.6

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a fallback for SOURCE_DATE_EPOCH to use the Created timestamp from an existing image's metadata, which is a great enhancement for build reproducibility. The implementation is well-executed, including necessary adjustments to configuration parsing and the addition of relevant tests. I have a few suggestions to enhance code clarity, improve test coverage, and align with idiomatic Rust practices.

Comment thread src/cmd_build.rs Outdated
Comment thread src/utils.rs
Comment thread tests/e2e/test-reproducibility.sh Outdated
@jlebon jlebon enabled auto-merge (rebase) February 26, 2026 21:33
When splitting an existing image and no SOURCE_DATE_EPOCH is provided,
use the Created timestamp from the image inspect output instead of the
current time. This makes re-splitting an existing image reproducible
without requiring the caller to explicitly set SOURCE_DATE_EPOCH.

Assisted-by: Claude Opus 4.6
@jlebon jlebon merged commit 6905ef9 into main Feb 26, 2026
6 checks passed
@jlebon jlebon deleted the auto-sde branch February 26, 2026 21:54
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