thoth-station / integration-tests

Integration tests for the Thoth project to make sure deployment works as expected
GNU General Public License v3.0
4 stars 12 forks source link

ocp-ci-analysis fail in integration tests #255

Closed fridex closed 1 year ago

fridex commented 2 years ago

Describe the bug

Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.8/site-packages/thoth/python/project.py", line 82, in from_files
    pipfile = Pipfile.from_file(pipfile_path)
  File "/opt/app-root/lib64/python3.8/site-packages/thoth/python/pipfile.py", line 393, in from_file
    return cls.from_string(pipfile_file.read())
  File "/opt/app-root/lib64/python3.8/site-packages/thoth/python/pipfile.py", line 408, in from_string
    return cls.from_dict(parsed)
  File "/opt/app-root/lib64/python3.8/site-packages/thoth/python/pipfile.py", line 422, in from_dict
    packages=Packages.from_pipfile(packages, develop=False, meta=meta),
  File "/opt/app-root/lib64/python3.8/site-packages/thoth/python/packages.py", line 90, in from_pipfile
    package_version[package_name] = PackageVersion.from_pipfile_entry(package_name, package_info, develop, meta)
  File "/opt/app-root/lib64/python3.8/site-packages/thoth/python/package_version.py", line 449, in from_pipfile_entry
    raise UnsupportedConfigurationError(
thoth.python.exceptions.UnsupportedConfigurationError: Package 'src' does not state any version range specifier: {'path': '.'}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.8/site-packages/behave/model.py", line 1329, in run
    match.run(runner.context)
  File "/opt/app-root/lib64/python3.8/site-packages/behave/matchers.py", line 98, in run
    self.func(context, *args, **kwargs)
  File "features/steps/advise.py", line 244, in step_impl
    project = Project.from_files(
  File "/opt/app-root/lib64/python3.8/site-packages/thoth/python/project.py", line 84, in from_files
    raise FileLoadError(
thoth.python.exceptions.FileLoadError: Failed to load Pipfile (path: /tmp/tmp261bs6ts/Pipfile: Package 'src' does not state any version range specifier: {'path': '.'}

This is caused by src installation in the pipfile:

https://github.com/aicoe-aiops/ocp-ci-analysis/blob/d875c8715f175d9e0619876e550f98bcb464524d/Pipfile#L35

goern commented 2 years ago

is this still valide? @fridex

sesheta commented 2 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. 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.

/lifecycle stale

sesheta commented 2 years ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

sesheta commented 1 year ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

sesheta commented 1 year ago

@sesheta: Closing this issue.

In response to [this](https://github.com/thoth-station/integration-tests/issues/255#issuecomment-1206751605): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen`. >Mark the issue as fresh with `/remove-lifecycle rotten`. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.