Skip to content

store: Add some more debug tracing #1296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ostree-ext/src/container/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,7 @@ impl ImageImporter {
let mut layer_commits = Vec::new();
let mut layer_filtered_content: MetaFilteredData = HashMap::new();
let have_derived_layers = !import.layers.is_empty();
tracing::debug!("Processing layers: {}", import.layers.len());
for layer in import.layers {
if let Some(c) = layer.commit {
tracing::debug!("Reusing fetched commit {}", c);
Expand Down Expand Up @@ -959,6 +960,7 @@ impl ImageImporter {
let r = super::unencapsulate::join_fetch(r, driver)
.await
.with_context(|| format!("Parsing layer blob {}", layer.layer.digest()))?;
tracing::debug!("Imported layer: {}", r.commit.as_str());
layer_commits.push(r.commit);
let filtered_owned = HashMap::from_iter(r.filtered.clone());
if let Some((filtered, n_rest)) =
Expand Down Expand Up @@ -1058,6 +1060,7 @@ impl ImageImporter {
// Layer all subsequent commits
checkout_opts.process_whiteouts = true;
for commit in layer_commits {
tracing::debug!("Unpacking {commit}");
repo.checkout_at(
Some(&checkout_opts),
(*td).as_raw_fd(),
Expand Down