Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Fix: spark debug tool filter out .venv, make debug tool testable #612

Merged
merged 11 commits into from
Jun 20, 2018

Conversation

jafreck
Copy link
Member

@jafreck jafreck commented Jun 18, 2018

fix #609

@jafreck jafreck changed the title Fix: spark debug tool filter out .venv Fix: spark debug tool filter out .venv, make debug tool testable Jun 19, 2018
.style.yapf Outdated
@@ -3,5 +3,5 @@ based_on_style=pep8
spaces_before_comment=4
split_before_logical_operator=True
indent_width=4
column_limit=140
Copy link
Member

Choose a reason for hiding this comment

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

any reasons for 130?

Copy link
Member Author

Choose a reason for hiding this comment

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

No I can leave it at 140 if you want. I'm not sure what the best thing is here.

@@ -10,7 +10,7 @@
from subprocess import STDOUT, CalledProcessError, check_output
from zipfile import ZIP_DEFLATED, ZipFile

import docker # pylint: disable=import-error
import docker # pylint: disable=import-error
Copy link
Member

@timotheeguerin timotheeguerin Jun 19, 2018

Choose a reason for hiding this comment

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

are those space added by the formatter?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

if isinstance(result, Exception):
log.info("%s\n", result)
def log_node_output(node_output):
print("NodeOutput", node_output.output)
Copy link
Member

Choose a reason for hiding this comment

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

print?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah this is a debug statement, will remove. thanks!

for tarinfo in members:
if (os.path.splitext(tarinfo.name)[1] not in skip_extensions and
os.path.basename(tarinfo.name) not in skip_files):
if (not any(directory in skip_directories for directory in os.path.normpath(tarinfo.name).split(os.sep)) and
Copy link
Member

Choose a reason for hiding this comment

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

can you split this condition to make it look nicer

@jafreck jafreck merged commit 4e0b1ec into Azure:master Jun 20, 2018
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.

debug tool failing to pull docker logs
2 participants