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

Remove conditional compilation of spec fields #247

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

burgerdev
Copy link
Contributor

What type of PR is this?

/kind api-change

What this PR does / why we need it:

The spec objects are not platform-dependent. There are fields that are not applicable for certain runtime environments, but they should still be available to programs that are not runtimes. Runtime implementations are free to ignore fields they can't process.

Which issue(s) this PR fixes:

Fixes #243

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Added `POSIXRlimit` struct and related fields in the `Process` struct for platforms other than Linux. Users on these platforms (notably Darwin and Windows) may need to add the new field to instantiation statements.

The spec objects are not platform-dependent. There are fields that are
not applicable for certain runtime environments, but they should still
be available to programs that are not runtimes. Runtime implementations
are free to ignore fields they can't process.

Signed-off-by: Markus Rudy <mr@edgeless.systems>
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 29.02%. Comparing base (57570dd) to head (d379e0b).
Report is 74 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #247      +/-   ##
==========================================
+ Coverage   26.61%   29.02%   +2.41%     
==========================================
  Files          24       26       +2     
  Lines        2788     3135     +347     
  Branches     1516     1668     +152     
==========================================
+ Hits          742      910     +168     
- Misses        948     1004      +56     
- Partials     1098     1221     +123     

@utam0k utam0k merged commit cabfc64 into youki-dev:main Oct 30, 2024
13 checks passed
@burgerdev burgerdev deleted the platform-independent-defs branch October 30, 2024 19: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.

Structs for spec objects should not be platform-dependent
5 participants