Skip to content
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

Move to 2021 #405

Merged
merged 8 commits into from
Nov 7, 2021
Merged

Move to 2021 #405

merged 8 commits into from
Nov 7, 2021

Conversation

chenyukang
Copy link
Collaborator

closing #404

@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2021

Codecov Report

Merging #405 (79a34a5) into main (2281b07) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #405      +/-   ##
==========================================
- Coverage   60.51%   60.47%   -0.04%     
==========================================
  Files          82       82              
  Lines       12150    12148       -2     
==========================================
- Hits         7353     7347       -6     
- Misses       4797     4801       +4     

@chenyukang chenyukang changed the title Move to 2021 [WIP] Move to 2021 Oct 23, 2021
@@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.55.0, 1.54.0]
rust: [1.56.0]
Copy link
Member

Choose a reason for hiding this comment

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

I'd like to check the min and max versions in ci.

Suggested change
rust: [1.56.0]
rust: [1.54.0, 1.56.0]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Copy that. Can I ask you to indicate in the README that you need edition 2021.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy that. Can I ask you to indicate in the README that you need edition 2021.

Done.

Btw, I got an warning:

  --> crates/youki/src/main.rs:47:5
   |
47 |     log_format: Option<String>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

This field is not used?

Copy link
Member

Choose a reason for hiding this comment

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

We have to take care of this option however we don't now. If we remove this code, we will surely get an error because it can not accept the option from the high-level container runtime.
If you have time to do it, why don't you try some research and revisions about this option?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is another issue, according to runc is used to set the format for logs.

   --log-format value  set the format used by logs ('text' (default), or 'json') (default: "text")

Just opened a issue for it: #423
I may have a try on it when have time.

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Nov 1, 2021

Hey I think @utam0k has once previously noted that building with 2021 edition took quite a while, but I have tested with the 1.54.1 1.56.1 today, and both dev and release builds were compiling in reasonable time. So I think we can now migrate to 2021 edition, if there are no other issues. 👍

@utam0k
Copy link
Member

utam0k commented Nov 3, 2021

Hey I think @utam0k has once previously noted that building with 2021 edition took quite a while, but I have tested with the 1.54.1 today, and both dev and release builds were compiling in reasonable time. So I think we can now migrate to 2021 edition, if there are no other issues. 👍

Is it 1.56.1? It works fine for my local with rustc 1.56.1.

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Nov 3, 2021

Oops, yeah I meant 1.56.1 😅 😅

@utam0k
Copy link
Member

utam0k commented Nov 7, 2021

@chenyukang I believe this PR can restart!

@chenyukang chenyukang changed the title [WIP] Move to 2021 Move to 2021 Nov 7, 2021
@chenyukang
Copy link
Collaborator Author

@chenyukang I believe this PR can restart!

Synced with main, please review it.

Copy link
Member

@utam0k utam0k left a comment

Choose a reason for hiding this comment

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

🎉

@utam0k utam0k merged commit 3dde97f into youki-dev:main Nov 7, 2021
@YJDoc2 YJDoc2 mentioned this pull request Nov 7, 2021
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.

4 participants