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

build time #76

Open
bohdansolovey opened this issue Aug 2, 2019 · 3 comments
Open

build time #76

bohdansolovey opened this issue Aug 2, 2019 · 3 comments
Labels
question Further information is requested

Comments

@bohdansolovey
Copy link

hi, could you advise how to speed up the build command? I tried to run it inside of pipeline, and it takes ~15 min. And is there any way to pass a lot of arguments to the report command as implemented for diff? because my diff command doesnt work

@tonybaloney
Copy link
Owner

if you're running inside a pipeline, then I would only index 1 revision, by default it will index 50 revisions, and if you only care about the last commit, then this is a waste of resources.

wily build -n 1 <dest>

I'm not sure what you mean about the arguments, please could you provide an example of what you're trying to do?

@tonybaloney tonybaloney added the question Further information is requested label Sep 17, 2019
@bohdansolovey
Copy link
Author

bohdansolovey commented Sep 17, 2019

if you're running inside a pipeline, then I would only index 1 revision, by default it will index 50 revisions, and if you only care about the last commit, then this is a waste of resources.

wily build -n 1 <dest>

I'm not sure what you mean about the arguments, please could you provide an example of what you're trying to do?

hello, i try to get some metrics in the gitlab ci pipeline, so i clone my repo in some directory in docker image( i can get history of commits)
`

test wily:
  image: python:3.7
  stage: test
  before_script:
    - git checkout backend/dev_test_metrics
    - pip install wily
    - python -m wily build -n 1
  script:
    - find ./backend/api -name "*s.py" ! -name "*test*" | xargs python -m wily diff  --changes-only --no-detail
    - python -m wily report -n 1 backend/api/v1 # now better than diff
    #- docker pull $CONTAINER_TEST_IMAGE
    #- docker run  --rm $CONTAINER_TEST_IMAGE /bin/bash -c "; find ./backend/api -name "*s.py" ! -name "*test*" | xargs python -m wily diff  --changes-only --no-detail "

and i want to pass arguments in standart way, not like in exampe( i dont need metrics for my tests etc).
IN general, i need to see changes in code like with pre-commit, but when i use gitlab ci, and i try to implement this

@tonybaloney
Copy link
Owner

Significantly improved in 1.14.0, please update and provide feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants