Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Fix python path for coverage runs - #2094

Merged
pjanotti merged 2 commits into
dotnet:masterfrom
pjanotti:fix.coverage.dumpling
Jul 10, 2018
Merged

pjanotti merged 2 commits into
dotnet:masterfrom
pjanotti:fix.coverage.dumpling

Conversation

@pjanotti

@pjanotti pjanotti commented Jul 10, 2018 •

Copy link
Copy Markdown

Coverage runs are without dumplings due to the dependency on HELIX_PYTHONPATH env var.

On my local box I noticed the following:

  1. DumplingHelper.py requires Python 2.7 (no problem, just noticing)
  2. My runs on local box report:
  Traceback (most recent call last):
    File "C:\s\github\pjanotti\corefx\bin\tests\System.Net.Mail.Unit.Tests\netcoreapp-Windows_NT-Debug-x64/dumpling.py", line 18, in <module>

  ImportError: No module named requests
  C:\Python27\python.exe: can't open file 'C:\Users\pauloja/.dumpling/dumpling.py': [Errno 2] No such file or directory
  C:\Python27\python.exe: can't open file 'C:\Users\pauloja/.dumpling/dumpling.py': [Errno 2] No such file or directory

not sure if this is something to pursue or not.

@pjanotti pjanotti self-assigned this Jul 10, 2018
@pjanotti
pjanotti requested review from MattGal and ahsonkhan July 10, 2018 21:01

@MattGal MattGal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

<DumplingIncPaths Condition="'$(TargetOS)'=='OSX'" Include="/usr/lib/libSystem.B.dylib" />
<DumplingIncPaths Condition="'$(TargetOS)'=='OSX'" Include="/usr/lib/libc++.1.dylib" />
</ItemGroup>
<PropertyGroup Condition="'$(HELIX_PYTHONPATH)'==''">

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@pjanotti
pjanotti merged commit 1d41d58 into dotnet:master Jul 10, 2018
@pjanotti
pjanotti deleted the fix.coverage.dumpling branch July 10, 2018 23:22
@pjanotti

Copy link
Copy Markdown
Author

Unfortunately this breaks dumpling on some runs (see here). It seems that the env var is defined after the test scripts are created.

pjanotti pushed a commit to pjanotti/buildtools that referenced this pull request Jul 11, 2018
This reverts commit 1d41d58. The environment variable seems to be defined after the test scripts are created, reverting until I can investigate and find proper solution.
pjanotti pushed a commit that referenced this pull request Jul 11, 2018
This reverts commit 1d41d58. The environment variable seems to be defined after the test scripts are created, reverting until I can investigate and find proper solution.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants