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

Report error when vcvarsall fails #26198

Merged
merged 1 commit into from Apr 16, 2020
Merged

Conversation

@Manishearth
Copy link
Member

Manishearth commented Apr 16, 2020

In trying to get my Windows cross build working on my desktop, I ended up spending a lot of time trying to replicate a failure within servo's build system that ultimately turned out to be vcvarsall silently failing (I was missing a trailing slash in my VSINSTALLDIR env var, which vcvarsall does not handle well at all)

We should report an error when this happens.

r? @jdm

@highfive
Copy link

highfive commented Apr 16, 2020

Heads up! This PR modifies the following files:

@@ -315,11 +315,15 @@ def build(self, release=False, dev=False, jobs=None, params=None, media_stack=No
process = subprocess.Popen('("%s" %s > nul) && "python" -c "import os; print(repr(os.environ))"' %
(os.path.join(vs_dirs['vcdir'], "Auxiliary", "Build", "vcvarsall.bat"), "x64"),
stdout=subprocess.PIPE, shell=True)
stdout, _ = process.communicate()
stdout, err = process.communicate()

This comment has been minimized.

Copy link
@jdm

jdm Apr 16, 2020

Member

I think this should be stderr?

This comment has been minimized.

Copy link
@Manishearth

Manishearth Apr 16, 2020

Author Member

Oops, i'd manually copied over the patch

@Manishearth Manishearth force-pushed the Manishearth:vcvarsall-fail branch from 679c28d to 371ba67 Apr 16, 2020
@jdm
Copy link
Member

jdm commented Apr 16, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

📌 Commit 371ba67 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

Testing commit 371ba67 with merge 53f727c...

bors-servo added a commit that referenced this pull request Apr 16, 2020
Report error when vcvarsall fails

In trying to get my Windows cross build working on my desktop, I ended up spending a lot of time trying to replicate a failure within servo's build system that ultimately turned out to be vcvarsall silently failing (I was missing a trailing slash in my `VSINSTALLDIR` env var, which vcvarsall does not handle well at all)

We should report an error when this happens.

r? @jdm
@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Apr 16, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

Testing commit 371ba67 with merge 039fa17...

bors-servo added a commit that referenced this pull request Apr 16, 2020
Report error when vcvarsall fails

In trying to get my Windows cross build working on my desktop, I ended up spending a lot of time trying to replicate a failure within servo's build system that ultimately turned out to be vcvarsall silently failing (I was missing a trailing slash in my `VSINSTALLDIR` env var, which vcvarsall does not handle well at all)

We should report an error when this happens.

r? @jdm
@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Apr 16, 2020

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

Testing commit 371ba67 with merge 7d3617a...

@bors-servo
Copy link
Contributor

bors-servo commented Apr 16, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 7d3617a to master...

@bors-servo bors-servo merged commit 7d3617a into servo:master Apr 16, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
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

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