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

Fix savedir, request mem and mem usage #803

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

TimSlendebroek
Copy link
Contributor

No description provided.

@@ -324,19 +324,20 @@ Determines what the maximum memory is based on the device type (apple, windows,
function localhost_memory()
if Sys.isapple()
cmd = `sysctl hw.memsize` # for OSX
mem_size = parse(Int, match(r"\d+", readchomp(cmd)).match) / 1024^3
mem_size = parse(Int, match(r"\d+", readchomp(cmd)).match) / 1024^3 # GiB
elseif Sys.isunix()
Copy link
Member

Choose a reason for hiding this comment

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

I am a bit worried about this Sys.isunix() test before Sys.islinux() test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing was changed with respect to that (just a comment that this in GiB)

Copy link
Member

Choose a reason for hiding this comment

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

ok, but should we move the Sys.isunix() check as the last option?

I fear that a Linux system might fall into this if statement and not go in the Sys.islinux()

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.

Project coverage is 59.71%. Comparing base (a6d5ae7) to head (f380382).

Files with missing lines Patch % Lines
src/utils_end.jl 0.00% 9 Missing ⚠️
src/utils_begin.jl 0.00% 8 Missing ⚠️
src/optimization.jl 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #803      +/-   ##
==========================================
- Coverage   59.76%   59.71%   -0.06%     
==========================================
  Files         105      105              
  Lines       10501    10510       +9     
==========================================
  Hits         6276     6276              
- Misses       4225     4234       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TimSlendebroek
Copy link
Contributor Author

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Project coverage is 59.71%. Comparing base (889df80) to head (decfcf5).

Files with missing lines Patch % Lines
src/utils_end.jl 0.00% 9 Missing ⚠️
src/utils_begin.jl 0.00% 6 Missing ⚠️
src/optimization.jl 0.00% 3 Missing ⚠️
Additional details and impacted files
☔ View full report in Codecov by Sentry. 📢 Have feedback on the report? Share it here.

@bclyons12 @orso82

Do we want the windows test back? I'd be in favor as I will probably run it from windows now

Can we add an exception to the code coverage when it comes to certain parts?
As we kind if not include the study in reg test::

if get(ENV, "FUSE_WITH_EXTENSIONS", "false") == "true"
    include("runtests_study.jl")
end

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