Skip to content

Commit

Permalink
chore: removing unnecessary logging information (#215)
Browse files Browse the repository at this point in the history
* chore: removing unnecessary logging information; remove parrallel unit testing to avoid flaky coverage data file issue
  • Loading branch information
bhaoz authored Aug 14, 2024
1 parent 986931b commit d8e56c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ phases:
# run unit tests
- AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI= AWS_DEFAULT_REGION=
tox -v -e py38,py39,py310 --parallel all -- test/unit
tox -v -e py38,py39,py310 -- test/unit

# build toolkit
- python setup.py sdist
Expand Down
4 changes: 2 additions & 2 deletions src/sagemaker_training/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def install(path, capture_error=False): # type: (str, bool) -> None
index = _get_codeartifact_index()
cmd += " -i {}".format(index)

logger.info("Installing module with the following command:\n%s", cmd)
logger.info("Installing module.")

process.check_error(
shlex.split(cmd), errors.InstallModuleError, 1, cwd=path, capture_error=capture_error
Expand All @@ -148,7 +148,7 @@ def install_requirements(path, capture_error=False): # type: (str, bool) -> Non
index = _get_codeartifact_index()
cmd += " -i {}".format(index)

logger.info("Installing dependencies from requirements.txt:\n{}".format(cmd))
logger.info("Installing dependencies from requirements.txt")

process.check_error(
shlex.split(cmd), errors.InstallRequirementsError, 1, cwd=path, capture_error=capture_error
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

[tox]
envlist = black-format,flake8,pylint,twine,py39,py310
envlist = black-format,flake8,pylint,twine,py38,py39,py310

skip_missing_interpreters = False

Expand Down Expand Up @@ -44,6 +44,7 @@ commands =

deps =
pytest==6.2.5
coverage
pytest-cov
pytest-xdist
pytest-asyncio
Expand Down

0 comments on commit d8e56c9

Please sign in to comment.