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

executors: improve /usr handling #944

Merged
merged 1 commit into from
Sep 21, 2021
Merged

executors: improve /usr handling #944

merged 1 commit into from
Sep 21, 2021

Conversation

quantum5
Copy link
Member

On some platforms, e.g. arm64, gcc tries to look for non-existent
directories under /usr, and complains when forbidden to do so. To fix this,
we must allow the entirety of /usr.

The only reason we don't allow the entirety of /usr is because on FreeBSD,
home directories are located in /usr/home. However, this is easily fixed
by using the current logic if /usr/home exists, and otherwise allow
everything under /usr.

On some platforms, e.g. arm64, gcc tries to look for non-existent
directories under /usr, and complains when forbidden to do so. To fix this,
we must allow the entirety of /usr.

The only reason we don't allow the entirety of /usr is because on FreeBSD,
home directories are located in /usr/home. However, this is easily fixed
by using the current logic if /usr/home exists, and otherwise allow
everything under /usr.
@codecov-commenter
Copy link

codecov-commenter commented Sep 21, 2021

Codecov Report

Merging #944 (dafc953) into master (342807a) will decrease coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #944      +/-   ##
==========================================
- Coverage   86.53%   86.41%   -0.12%     
==========================================
  Files         138      138              
  Lines        4702     4705       +3     
==========================================
- Hits         4069     4066       -3     
- Misses        633      639       +6     
Impacted Files Coverage Δ
dmoj/executors/mixins.py 94.84% <100.00%> (+0.16%) ⬆️
dmoj/cptbox/tracer.py 83.27% <0.00%> (-1.82%) ⬇️
dmoj/result.py 89.33% <0.00%> (-1.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 342807a...dafc953. Read the comment docs.

@quantum5 quantum5 merged commit 4b70999 into master Sep 21, 2021
@quantum5 quantum5 deleted the usr-handling branch September 21, 2021 22:23
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.

3 participants