catalog icon indicating copy to clipboard operation
catalog copied to clipboard

Call Pytest with additional pip install arguments

Open sanski opened this issue 4 years ago • 4 comments

Expected / Requested Behavior

Make an additional paramater in the pytest task to pass additional pip install arguments to the pytest task. This is useful, when your packages are not on the default pypi.org repository, but on another package repository or behind a proxy.

Actual Behavior

The current pytest task calls "pip install -r requirments.txt". This default to looking those packages up in pypi.org.

Steps to Reproduce the Problem

There is no problem to reproduce, this is just an additional parameter to make the pytest task more flexible.

Additional Info

Proposed additional argument. Example call in the pipeline:

params:
  - name: PYTHON
    value: "3.9"
  - name: ARGS
    value: "-rfs"
  - name: PIP_INSTALL_ARGS
    value: "--index-url=$(params.nexusUrl)$(params.nexusHosted) --extra-index-url=$(params.nexusUrl)$(params.nexusProxy) --trusted-host=$(params.nexusUrl) --timeout=3600"

sanski avatar Dec 18 '21 09:12 sanski

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale with a justification. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

tekton-robot avatar Mar 18 '22 10:03 tekton-robot

/remove-lifecycle stale

vinamra28 avatar Apr 13 '22 12:04 vinamra28

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale with a justification. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

tekton-robot avatar Jul 12 '22 12:07 tekton-robot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten with a justification. Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

tekton-robot avatar Aug 11 '22 13:08 tekton-robot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen with a justification. Mark the issue as fresh with /remove-lifecycle rotten with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

tekton-robot avatar Sep 10 '22 13:09 tekton-robot

@tekton-robot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen with a justification. Mark the issue as fresh with /remove-lifecycle rotten with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

tekton-robot avatar Sep 10 '22 13:09 tekton-robot