Giter Club home page Giter Club logo

Comments (3)

costrouc avatar costrouc commented on May 30, 2024

The new python class for SubdirData

class SubdirData:
    def _read_local_repodata(self, state):
          ....
    def _process_raw_repodata_str(self, raw_repodata_str, state: dict | None = None):
         ....
    def _process_raw_repodata(self, repodata, state=None):
         ....
    def _pickle_me(self):
        ....

When we compare with what we have in conda-libmamba-solver.

class SubdirData:
    def _read_local_repdata(self, etag, mod_stamp):
        return self._internal_state_template

    def _process_raw_repodata_str(self, raw_repodata_str):
        return self._internal_state_template

    def _process_raw_repodata(self, repodata):
        return self._internal_state_template

    def _pickle_me(self):
        return
```

from conda-libmamba-solver.

costrouc avatar costrouc commented on May 30, 2024

I've inspected the methods and looks like they preserve the same return values. We just need to modify the function api for conda-libmamba-solver's api. So the change looks easy. Currently I've been stuck on Friday and today on how to actually run the test. When I run

pytest tests/gateways/test_connection.py::test_s3_server
Traceback (most recent call last):
  File "/opt/conda-src/conda/testing/gateways/fixtures.py", line 117, in minio_s3_server
    pid, logfile = xprocess.ensure(minio.name, Starter)
  File "/opt/conda/lib/python3.9/site-packages/xprocess/xprocess.py", line 282, in ensure
    if not starter.wait(log_file_handle):
  File "/opt/conda/lib/python3.9/site-packages/xprocess/xprocess.py", line 399, in wait
    has_match = any(std.re.search(self.pattern, line) for line in lines)
  File "/opt/conda/lib/python3.9/site-packages/xprocess/xprocess.py", line 399, in <genexpr>
    has_match = any(std.re.search(self.pattern, line) for line in lines)
  File "/opt/conda/lib/python3.9/site-packages/xprocess/xprocess.py", line 405, in <genexpr>
    non_empty_lines = (x for x in lines if x.strip())
  File "/opt/conda/lib/python3.9/site-packages/xprocess/xprocess.py", line 422, in get_lines
    raise TimeoutError(
TimeoutError: The provided start pattern MinIO Object Storage Server could not be matched                     within the specified time interval of 10 seconds

within the docker image I does not run properly. I think I need to figure out how to start the minio server for tests.

from conda-libmamba-solver.

costrouc avatar costrouc commented on May 30, 2024

Looks like the test fixture is failing for some reason running minio. Getting

sudo bash ./dev/linux/setup.sh 

But now running into

Traceback (most recent call last):
  File "/opt/conda-src/tests/gateways/test_connection.py", line 82, in test_s3_server    minio_s3_server.populate_bucket(endpoint, bucket_name, channel_dir)
  File "/opt/conda-src/conda/testing/gateways/fixtures.py", line 81, in populate_bucket
    client.upload_file(
  File "/opt/conda/lib/python3.9/site-packages/boto3/s3/inject.py", line 143, in upload_file
    return transfer.upload_file(
  File "/opt/conda/lib/python3.9/site-packages/boto3/s3/transfer.py", line 294, in upload_file
    raise S3UploadFailedError(
boto3.exceptions.S3UploadFailedError: Failed to upload /opt/conda-src/tests/data/conda_format_repo/index.html to minio_s3_server/index.html: An error occurred (SlowDown) when calling the PutObject operation (reached max retries: 4): Resource requested is unreadable, please reduce your request rate

from conda-libmamba-solver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.