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

Added detection for case-sensitive file systems #11740

Merged
merged 1 commit into from Jun 27, 2016

Conversation

@perlun
Copy link
Contributor

perlun commented Jun 13, 2016

  • ./mach test-tidy does not report any errors
  • These changes do not require tests because they only change Mach code

This is needed for the moment because of a bug in virtualenv (reported upstream).

r? @metajack (you were the one who suggested that we check this. I did it in a slightly simpler way since I realized we over-complicated things a bit when talking about it the other day.)


This change is Reviewable

@highfive
Copy link

highfive commented Jun 13, 2016

Heads up! This PR modifies the following files:

@metajack
Copy link
Contributor

metajack commented Jun 14, 2016

Looks good. r=me with a better comment.


Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


python/mach_bootstrap.py, line 164 [r1] (raw file):

def _ensure_case_insensitive_if_windows():
    # On a case-*sensitive* file system in Windows, we expect to be able to check for the existance of the 'python'

This commment should be reworded for clarity. I read it three times and I"m still not sure about it.

Maybe "Check for the wrong path deliberately, which will fail on case-sensitive systems" or something like that.


Comments from Reviewable

This is needed for the moment because of a bug in virtualenv (reported upstream).
@perlun perlun force-pushed the perlun:detect-case-sensitive-file-system branch from e04450f to 22fddac Jun 14, 2016
@highfive
Copy link

highfive commented Jun 14, 2016

New code was committed to pull request.

@perlun
Copy link
Contributor Author

perlun commented Jun 14, 2016

Thanks for the constructive suggestion, Jack! How about this?

@@ -160,7 +160,22 @@ def _activate_virtualenv(topdir):
open(marker_path, 'w').close()


def _ensure_case_insensitive_if_windows():
# The folder is called 'python'. By deliberately checking for it with the wrong case, we determine if the file

This comment has been minimized.

@wafflespeanut

wafflespeanut Jun 14, 2016

Member

This could just be, "By deliberately checking for the wrong case, we determine ..."

This comment has been minimized.

@perlun

perlun Jun 15, 2016

Author Contributor

Yes, assuming that the reader has a basic knowledge of the folder structure in the project. I don't know, I feel like it's better to be "too explicit" in cases like this. It feels more friendly to the casual reader that way. 😇

@perlun
Copy link
Contributor Author

perlun commented Jun 27, 2016

Ping @metajack - are we fine with the comment as it's written now or do you want it to be adjusted?

@metajack
Copy link
Contributor

metajack commented Jun 27, 2016

@bors-servo r+


Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions.


Comments from Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented Jun 27, 2016

📌 Commit 22fddac has been approved by metajack

@bors-servo
Copy link
Contributor

bors-servo commented Jun 27, 2016

Testing commit 22fddac with merge 7ca7e84...

bors-servo added a commit that referenced this pull request Jun 27, 2016
…tajack

Added detection for case-sensitive file systems

- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because they only change Mach code

This is needed for the moment because of a bug in virtualenv (reported upstream).

r? @metajack (you were the one who suggested that we check this. I did it in a slightly simpler way since I realized we over-complicated things a bit when talking about it the other day.)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11740)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 27, 2016

💔 Test failed - mac-rel-wpt

@KiChjang
Copy link
Member

KiChjang commented Jun 27, 2016

@metajack
Copy link
Contributor

metajack commented Jun 27, 2016

cc @larsbergstrom @edunham @aneeshusa

Have any of you seen this openssl failure before?

@jdm
Copy link
Member

jdm commented Jun 27, 2016

It started happening during the mozlondon week.

@bors-servo
Copy link
Contributor

bors-servo commented Jun 27, 2016

Testing commit 22fddac with merge 887376b...

bors-servo added a commit that referenced this pull request Jun 27, 2016
…tajack

Added detection for case-sensitive file systems

- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because they only change Mach code

This is needed for the moment because of a bug in virtualenv (reported upstream).

r? @metajack (you were the one who suggested that we check this. I did it in a slightly simpler way since I realized we over-complicated things a bit when talking about it the other day.)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11740)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 27, 2016

💔 Test failed - linux-rel

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Jun 27, 2016

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Jun 27, 2016

@metajack No, I've never seen that openssl error before. All these intermittents with zero output (other than a failure error code of 1) are definitely annoying!

@bors-servo
Copy link
Contributor

bors-servo commented Jun 27, 2016

Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows are reusable. Rebuilding only linux-rel...

@bors-servo
Copy link
Contributor

bors-servo commented Jun 27, 2016

@bors-servo bors-servo merged commit 22fddac into servo:master Jun 27, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@perlun perlun deleted the perlun:detect-case-sensitive-file-system branch Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

8 participants
You can’t perform that action at this time.