Skip to content

Fix a bug and add corresponding unit tests - #355

Merged
BigVan merged 3 commits into
containerd:mainfrom
salvete:main
Dec 2, 2024
Merged

Fix a bug and add corresponding unit tests#355
BigVan merged 3 commits into
containerd:mainfrom
salvete:main

Conversation

@salvete

@salvete salvete commented Nov 25, 2024

Copy link
Copy Markdown
Member

What this PR does / why we need it:

  1. fix Not a directory error for incremental builds;
  2. added a corresponding unit test.

E2E tests passed.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

Hongzhen Luo added 3 commits November 29, 2024 15:57
If an incremental layer contains a directory but the same path in
the base layer is a non-directory, it will fail unexpectedly.

This patch fixes it.

Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Currently, ErofsFile did not support pread(),
this patch addresses this deficiency. Subsequent
unit tests will be added accordingly.

Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
Add unit tests for building images in clean and incremental modes.

Signed-off-by: Hongzhen Luo <hongzhen@linux.alibaba.com>
@BigVan

BigVan commented Dec 2, 2024

Copy link
Copy Markdown
Member

Thanks~

@BigVan
BigVan merged commit 8acf53f into containerd:main Dec 2, 2024
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.

3 participants