Skip to content

core/mount/manager: improve TestMkdirHandler failure messages - #13800

Merged
mikebrow merged 1 commit into
containerd:mainfrom
SaloniRathi:fix-test-error-messages
Jul 17, 2026
Merged

mikebrow merged 1 commit into
containerd:mainfrom
SaloniRathi:fix-test-error-messages

Conversation

@SaloniRathi

Copy link
Copy Markdown
Contributor

Summary

Improve TestMkdirHandler assertion messages to report the actual expected values.

Changes

  • Use testmode when reporting the expected permission.
  • Use luid when reporting the expected UID.
  • Use lgid when reporting the expected GID.

Motivation

While debugging a local test failure, I noticed that the assertion messages use hardcoded values (0775, 1000) even though the test compares against variables (testmode, luid, and lgid).

Reporting the actual expected values makes test failures easier to understand and avoids confusion during debugging.

This change only improves test diagnostics and does not modify runtime behavior.

Copilot AI 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.

Pull request overview

Improves the clarity of TestMkdirHandler failure output in the mount manager tests by reporting the real expected mode/UID/GID values used in comparisons, making debugging test failures less confusing.

Changes:

  • Update the permission assertion message to print testmode (and format as 4-digit octal).
  • Update the UID assertion message to print luid as the expected value.
  • Update the GID assertion message to print lgid as the expected value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings July 16, 2026 22:43
@mikebrow
mikebrow force-pushed the fix-test-error-messages branch from fc16b98 to 807fbc1 Compare July 16, 2026 22:43

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@mikebrow mikebrow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 16, 2026
@mikebrow
mikebrow added this pull request to the merge queue Jul 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 17, 2026
@mikebrow
mikebrow added this pull request to the merge queue Jul 17, 2026
Merged via the queue into containerd:main with commit cb23630 Jul 17, 2026
101 of 131 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants