Skip to content

[FEATURE]: consolidate validate functions from utils into validator.rs - #3661

Open
tommady wants to merge 8 commits into
youki-dev:mainfrom
tommady:close-issue-3636
Open

[FEATURE]: consolidate validate functions from utils into validator.rs#3661
tommady wants to merge 8 commits into
youki-dev:mainfrom
tommady:close-issue-3636

Conversation

@tommady

@tommady tommady commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test updates
  • CI/CD related changes
  • Other (please describe):

Testing

  • Added new unit tests
  • Added new integration tests
  • Ran existing test suite
  • Tested manually (please provide steps)

Related Issues

Fixes #3636

Additional Context

Signed-off-by: tommady <tommady@users.noreply.github.com>
tommady added 4 commits August 3, 2026 13:33
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
@tommady
tommady marked this pull request as ready for review August 3, 2026 09:48
@tommady

tommady commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator Author

hi @nayuta723
plz help review when you have time.
thank you~

@saku3
saku3 requested a review from nayuta723 August 8, 2026 23:43

@nayuta723 nayuta723 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I left some comments, Please take a look

Comment thread crates/libcontainer/src/container/init_builder.rs Outdated
Comment thread crates/libcontainer/src/utils.rs Outdated
Comment thread crates/libcontainer/src/error.rs
Comment thread crates/libcontainer/src/validator.rs Outdated
Signed-off-by: tommady <tommady@users.noreply.github.com>
mount.destination()
);
});
Ok(())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

    mounts
      .iter()
      .filter(|mount| !mount.destination().is_absolute())
      .for_each(|mount| {
          tracing::warn!(
              "mount destination {:?} is not absolute. \
              Relative paths are deprecated in OCI Runtime Spec and may not be supported in future versions. \
              The path will be interpreted as relative to '/'.",
              mount.destination()
          );
      });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there any reason why this change cannot be implemented?

Comment thread crates/libcontainer/src/container/init_builder.rs Outdated
Comment thread crates/libcontainer/src/error.rs
Signed-off-by: tommady <tommady@users.noreply.github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
@tommady

tommady commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @nayuta723
I addressed all the comments, plz help review again.
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: consolidate validate functions from utils into validator.rs

2 participants