reproman
reproman copied to clipboard
retrace venv's path results in retracing VCS under which it is
2019-05-30 10:51:51,027 [INFO] Entering iteration #1 over Tracers
2019-05-30 10:51:52,060 [INFO] DebTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:52,063 [INFO] RPMTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:52,146 [INFO] CondaTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:56,817 [INFO] VenvTracer: 1 envs with 3 other files remaining
2019-05-30 10:51:57,050 [INFO] VCSTracer: 1 envs with 2 other files remaining
2019-05-30 10:51:57,149 [INFO] DockerTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:57,227 [INFO] SingularityTracer: 0 envs with 2 other files remaining
2019-05-30 10:51:57,227 [INFO] Entering iteration #2 over Tracers
2019-05-30 10:51:58,738 [INFO] DebTracer: 1 envs with 0 other files remaining
2019-05-30 10:51:58,742 [INFO] RPMTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:58,812 [INFO] CondaTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:58,821 [INFO] VenvTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:58,864 [INFO] VCSTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:58,912 [INFO] SingularityTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:58,913 [INFO] Entering iteration #3 over Tracers
2019-05-30 10:51:58,915 [INFO] RPMTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:58,977 [INFO] CondaTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:58,987 [INFO] VenvTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:59,030 [INFO] VCSTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:59,079 [INFO] SingularityTracer: 0 envs with 1 other files remaining
2019-05-30 10:51:59,079 [INFO] No more changes or files to track. Exiting the loop
# ReproMan Environment Configuration File
# This file was created by ReproMan 0.1.0 on 2019-05-30 10:51:59.079906
version: 0.0.1
distributions:
- name: venv
path: /usr/bin/virtualenv
venv_version: 15.1.0
environments:
- path: venvs/dev3
python_version: 3.7.2
packages:
...
- name: git
packages:
- path: /home/yoh/proj/repronim/reproman-master
root_hexsha: 43e8e6577c7bf493ddb01ea7d49bef7dc7a6643b
branch: master
hexsha: 4ad6f465028c9927c2fc7bbd840adeb37fd6fa14
describe: v0.1.0-440-g4ad6f46
tracked_remote: origin
...
which I think should not be the case since we are not tracing any path under VCS control
I tried to trigger the issue with the script below but didn't have any luck.
script
#!/bin/sh
set -eux
cd $(mktemp -dt rman-XXXXXXX)
git init
virtualenv --python=python3 ./venv
# Trace git repo.
reproman retrace .
# Trace virtual environment. Repo does not show up.
reproman retrace venv
+ mktemp -dt rman-XXXXXXX
+ cd /tmp/rman-7xuL8Vm
+ git init
Initialized empty Git repository in /tmp/rman-7xuL8Vm/.git/
+ virtualenv --python=python3 ./venv
Using real prefix '/usr'
Path not in prefix '/home/kyle/src/python/venvs/reproman/include/python3.5m' '/usr'
New python executable in /tmp/rman-7xuL8Vm/venv/bin/python3
Also creating executable in /tmp/rman-7xuL8Vm/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
Running virtualenv with interpreter /home/kyle/src/python/venvs/reproman/bin/python3
+ reproman retrace .
2019-07-09 15:35:10,483 [INFO] Entering iteration #1 over Tracers
2019-07-09 15:35:10,485 [INFO] RPMTracer: 0 envs with 1 other files remaining
2019-07-09 15:35:10,488 [INFO] CondaTracer: 0 envs with 1 other files remaining
2019-07-09 15:35:10,491 [INFO] VenvTracer: 0 envs with 1 other files remaining
2019-07-09 15:35:10,520 [INFO] VCSTracer: 1 envs with 0 other files remaining
2019-07-09 15:35:10,520 [INFO] No more changes or files to track. Exiting the loop
# ReproMan Environment Configuration File
# This file was created by ReproMan 0.1.0 on 2019-07-09 15:35:10.520759
version: 0.0.1
distributions:
- name: git
packages:
- path: /tmp/rman-7xuL8Vm
branch: master
+ reproman retrace venv
2019-07-09 15:35:10,932 [INFO] Entering iteration #1 over Tracers
2019-07-09 15:35:10,934 [INFO] RPMTracer: 0 envs with 1 other files remaining
2019-07-09 15:35:10,937 [INFO] CondaTracer: 0 envs with 1 other files remaining
2019-07-09 15:35:12,676 [INFO] VenvTracer: 1 envs with 0 other files remaining
2019-07-09 15:35:12,677 [INFO] No more changes or files to track. Exiting the loop
# ReproMan Environment Configuration File
# This file was created by ReproMan 0.1.0 on 2019-07-09 15:35:12.677183
version: 0.0.1
distributions:
- name: venv
path: /usr/bin/virtualenv
venv_version: 15.1.0
environments:
- path: venv
python_version: 3.5.3
packages:
- name: pip
version: 19.1.1
local: true
location: /tmp/rman-7xuL8Vm/venv/lib/python3.5/site-packages
- name: wheel
version: 0.33.4
local: true
location: /tmp/rman-7xuL8Vm/venv/lib/python3.5/site-packages
- name: setuptools
version: 41.0.1
local: true
location: /tmp/rman-7xuL8Vm/venv/lib/python3.5/site-packages
- name: pkg-resources
version: 0.0.0
local: true
location: /tmp/rman-7xuL8Vm/venv/lib/python3.5/site-packages