Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nebula-python CI cache #3495

Closed
HarrisChu opened this issue Dec 17, 2021 · 2 comments · Fixed by #3496
Closed

nebula-python CI cache #3495

HarrisChu opened this issue Dec 17, 2021 · 2 comments · Fixed by #3496
Labels
type/enhancement Type: make the code neat or more efficient
Milestone

Comments

@HarrisChu
Copy link
Contributor

we use self-hosts runner and run CI in vesoft/nebula-dev containers.
by default, github runner would mount a temp folder for ${HOME}, i.e. /github/home

        "HostConfig": {
            "Binds": [
                "/home/vesoft/action-ruuner-harris/externals:/__e:ro",
                "/home/vesoft/action-ruuner-harris/_work/_temp/_github_home:/github/home",
                "/home/vesoft/action-ruuner-harris/_work/_tool:/__w/_tool",
                "/home/vesoft/action-ruuner-harris/_work/_temp/_github_workflow:/github/workflow",
                "/var/run/docker.sock:/var/run/docker.sock",
                "/tmp/ccache/nebula/centos7-gcc-9.2:/tmp/ccache/nebula/centos7-gcc-9.2",
                "/home/vesoft/action-ruuner-harris/_work:/__w",
                "/home/vesoft/action-ruuner-harris/_work/_temp:/__w/_temp",
                "/home/vesoft/action-ruuner-harris/_work/_actions:/__w/_actions"
            ],

we use pip3 install --user in ci, if the python package versions are in the same, it won't update packages.
so we should use pip3 install --user --upgrade.
simply repeat the issue:

mkdir test && cd test
docker run -it --rm -v $PWD:/root/ vesoft/nebula-dev:centos7 bash
pip3 install nebula2-python --user
exit
docker run -it --rm -v $PWD:/root/ vesoft/nebula-dev:centos7 bash
git clone --branch param-var https://github.com/czpmango/nebula-python
cd nebula-python
pip3 install --user . -i https://mirrors.aliyun.com/pypi/simple/
cd .. && rm -rf nebula-python

python3 -c 'from nebula2.gclient.net import Session;print(dir(Session))'

the package is not updated.

@HarrisChu HarrisChu added type/bug Type: something is unexpected type/enhancement Type: make the code neat or more efficient and removed type/bug Type: something is unexpected labels Dec 17, 2021
@HarrisChu
Copy link
Contributor Author

CC @czpmango @yixinglu

@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Dec 17, 2021
@HarrisChu
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants