Skip to content

Commit b1c4233

Browse files
committed
Merge pull request #277 from getappmap/viraj-logging_20240210
Incorporate logging fix, fix the build
2 parents 2c2025b + bd52a6d commit b1c4233

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ if: type != push OR branch = master OR branch =~ /^v\d+\.\d+(\.\d+)?(-\S*)?$/
1515
before_install: |
1616
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable --profile minimal
1717
source "$HOME/.cargo/env"
18-
pip install --upgrade pip 'setuptools==65.6.2' 'poetry>=1.2.0'
18+
pip -q install --upgrade pip 'setuptools==65.6.2' 'poetry>=1.2.0'
1919
20-
install: pip install --upgrade "tox < 4" tox-travis
20+
install: pip -q install --upgrade "tox < 4" tox-travis
2121
script: tox
2222

2323
cache:
@@ -32,15 +32,15 @@ jobs:
3232
services:
3333
- docker
3434
script:
35-
- pip install poetry
35+
- pip -q install poetry
3636
- poetry build
3737
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
3838
- ci/run_tests.sh
3939
- stage: release
4040
if: branch = master
4141
script: skip
4242
before_deploy:
43-
- pip install poetry
43+
- pip -q install poetry
4444
- nvm install lts/*
4545
- npm i -g
4646
semantic-release

_appmap/env.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,5 @@ def _configure_logging(self):
165165

166166
def initialize(**kwargs):
167167
Env.reset(**kwargs)
168-
logging.info("appmap enabled: %s", Env.current.enabled)
168+
logger = logging.getLogger(__name__)
169+
logger.info("appmap enabled: %s", Env.current.enabled)

ci/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -x
44
t=$([ -t 0 ] && echo 't')
5-
docker run -i${t} --rm\
5+
docker run -q -i${t} --rm\
66
-v $PWD/dist:/dist -v $PWD/_appmap/test/data/unittest:/_appmap/test/data/unittest\
77
-v $PWD/ci:/ci\
88
-w /tmp\

ci/smoketest.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

33
set -ex
4-
pip install -U pip pytest "flask<2" python-decouple
5-
pip install /dist/appmap-*-py3-none-any.whl
4+
pip -q install -U pip pytest "flask<2" python-decouple
5+
pip -q install /dist/appmap-*-py3-none-any.whl
66

77
cp -R /_appmap/test/data/unittest/simple ./.
88

@@ -12,7 +12,7 @@ cat /tmp/appmap.yml
1212

1313
python -m appmap.command.appmap_agent_validate
1414

15-
$RUNNER pytest -v -k test_hello_world
15+
$RUNNER pytest -k test_hello_world
1616

1717
if [[ -f tmp/appmap/pytest/simple_test_simple_UnitTestTest_test_hello_world.appmap.json ]]; then
1818
echo 'Success'

ci/test_pipenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -e
4-
pip install pipenv
4+
pip -q install pipenv
55

66
mkdir /pipenv || true
77
cd /pipenv

ci/test_poetry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
set -e
4-
pip install poetry
4+
pip -q install poetry
55

66
mkdir /poetry || true
77
cd /poetry

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ isolated_build = true
55
envlist = py3{8,9,10,11,12}-web, py3{7,8,9,10,11,12}-flask1-django3
66

77
[testenv]
8-
allowlist_externals =
8+
allowlist_externals =
99
env
1010
poetry
1111

@@ -16,20 +16,20 @@ deps=
1616
flask1: -rrequirements-flask1.txt
1717
django3: Django >=3.2, <4.0
1818

19-
19+
2020
commands =
2121
# Turn off recording while installing. It's not necessary, and the warning messages that come
2222
# out of the agent confuse poetry.
2323
env APPMAP_LOG_LEVEL=warning APPMAP=false poetry install -v
2424
py310-web: poetry run pylint -j 0 appmap _appmap
25-
web: poetry run {posargs:pytest -vv}
25+
web: poetry run {posargs:pytest}
2626
flask1: poetry run pytest _appmap/test/test_flask.py
2727
django3: poetry run pytest _appmap/test/test_django.py
2828

2929
[testenv:vendoring]
3030
skip_install = True
3131
deps = vendoring
32-
commands =
32+
commands =
3333
poetry run vendoring {posargs:sync}
3434
# We don't need the .pyi files vendoring generates
3535
python -c 'from pathlib import Path; all(map(Path.unlink, Path("vendor").rglob("*.pyi")))'

0 commit comments

Comments
 (0)