Skip to content

[Test] enhance hot upgrade test #1726

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zephyrcf
Copy link
Contributor

Relevant Issue

#1698

Details

Adds Snapshotter Restart Recovery Tests : Introduces a dedicated test case to validate nydus-snapshotter's ability to recoverLiveDaemons after its own restart. It's important to note that the upstream PR for full restart-triggered hot upgrade functionality is currently not merged. Therefore, the scope of this particular test is focused on confirming that the snapshotter can successfully identify, reattach to, and manage existing running nydusd daemons upon its own restart, thereby preventing container disruption. This test serves as a foundational verification for the eventual implementation of restart-triggered hot upgrades.

Types of changes

What types of changes does your PullRequest introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation Update (if none of the other choices apply)

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@Zephyrcf Zephyrcf requested a review from a team as a code owner July 25, 2025 04:16
@Zephyrcf Zephyrcf requested review from imeoer, hsiangkao and power-more and removed request for a team July 25, 2025 04:16
Copy link

codecov bot commented Jul 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.46%. Comparing base (e1dffec) to head (19f613f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1726      +/-   ##
==========================================
- Coverage   55.49%   55.46%   -0.04%     
==========================================
  Files         197      197              
  Lines       53292    53292              
  Branches    44624    44624              
==========================================
- Hits        29577    29561      -16     
- Misses      22245    22260      +15     
- Partials     1470     1471       +1     

see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Zephyrcf Zephyrcf force-pushed the test/enhance-hot-upgrade-test branch from a8749e3 to b28689f Compare July 25, 2025 04:22
@Zephyrcf
Copy link
Contributor Author

It seems that I need to confirm whether new nydusdPath exists.

@Zephyrcf Zephyrcf force-pushed the test/enhance-hot-upgrade-test branch 2 times, most recently from 6108411 to 47a6c1a Compare July 25, 2025 05:37
@Zephyrcf Zephyrcf requested a review from a team as a code owner July 25, 2025 05:37
@Zephyrcf Zephyrcf requested review from liubogithub and removed request for a team July 25, 2025 05:37
@Zephyrcf Zephyrcf force-pushed the test/enhance-hot-upgrade-test branch 4 times, most recently from 823f858 to 48704f8 Compare July 25, 2025 07:33
@Zephyrcf
Copy link
Contributor Author

https://github.com/containerd/nydus-snapshotter/blob/d7924384acd9ba8418f9e6c3f25c74a9d83b55ed/pkg/system/system.go#L349
The code here should not use rename to operate the user's new nydusd binary file, should use copy.

@Zephyrcf Zephyrcf force-pushed the test/enhance-hot-upgrade-test branch 2 times, most recently from eb5b937 to 88b234a Compare July 27, 2025 08:23
@imeoer
Copy link
Collaborator

imeoer commented Jul 30, 2025

Thanks, plz squash the commits. :)

@Zephyrcf Zephyrcf force-pushed the test/enhance-hot-upgrade-test branch from 4632ace to b3521d4 Compare July 30, 2025 15:30
Signed-off-by: Zephyr <zinsist777@gmail.com>

Enhance hot upgrade tests

Signed-off-by: Zephyr <zinsist777@gmail.com>

wrapping binary file permissions

Signed-off-by: Zephyr <zinsist777@gmail.com>

rollback chmod

Signed-off-by: Zephyr <zinsist777@gmail.com>

rollback chmod

Signed-off-by: Zephyr <zinsist777@gmail.com>

Enhance hot upgrade tests

Signed-off-by: Zephyr <zinsist777@gmail.com>

Enhance hot upgrade tests

Signed-off-by: Zephyr <zinsist777@gmail.com>
@Zephyrcf Zephyrcf force-pushed the test/enhance-hot-upgrade-test branch from b3521d4 to 19f613f Compare July 30, 2025 15:47
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.

2 participants