Skip to content
Snippets Groups Projects
Select Git revision
  • 5157ab9517eea232d40f8a3a95edca736afbdbe6
  • master default protected
  • ekhamitov/union-types
  • kirovets_doc
  • ypodlesov/unite-projection
  • max/parse-anonymous-blocks
  • sd/constant
  • docs/server_setup
  • docs/privileges
  • sd/2244-issue
  • raiondesu/1984-used-tier-memory
  • lomakin/adr-client-bucket-awareness
  • lomakin/insert-query-sharding-metadata
  • 25.4 protected
  • ekhamitov/1977-remove-additional-child
  • gmoshkin/box-error-improvements
  • astrochuk/explain-fix
  • dkoltsov/support-https
  • docs/config_storage
  • ekhamitov/2365-fix-flaky
  • kostja-check-quorum
  • 25.4.4 protected
  • 25.3.8 protected
  • 25.3.7 protected
  • 25.4.3 protected
  • 25.3.6 protected
  • 25.4.2 protected
  • 25.3.5 protected
  • 25.4.1 protected
  • 25.5.0 protected
  • 25.3.4 protected
  • 25.3.3 protected
  • 25.3.2 protected
  • 25.4.0 protected
  • 25.3.1 protected
  • 25.2.4 protected
  • 25.2.3 protected
  • 25.2.2 protected
  • 25.2.1 protected
  • 25.3.0 protected
  • 25.1.2 protected
41 results

picodata

  • Clone with SSH
  • Clone with HTTPS
  • Georgy Moshkin's avatar
    Georgy Moshkin authored and Георгий Мошкин committed
    since 1.61 rust has added a `whole-archive` modifier for link targets
    which is unset by default.
    
    Previously to this version this was probably undefined behavior, because
    the linking would work fine when building an executable (like picodata)
    but would fail with undefined symbols when building a static library.
    
    But now with the advent of this option, we can probably refactor
    picodata into a library which can be useful for testing, i.e. we can
    exclude testing stuff from the binary but still have a test binary with
    all the necessary runtime symbols.
    
    Closes #81
    5157ab95
    History

    Integration testing with pytest

    Installation

    1. Install Python 3.10

      Ubuntu:

      sudo add-apt-repository ppa:deadsnakes/ppa
      sudo apt install python3.10 python3.10-distutils
      curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
      python3.10 get-pip.py
    2. Install pipenv:

      python3.10 -m pip install pipenv==2022.4.8
    3. Install dependencies

      python3.10 -m pipenv install --deploy

    Adding dependencies

    python3.10 -m pipenv install <dependency-package-name>

    Running

    python3.10 -m pipenv run pytest
    python3.10 -m pipenv run lint

    or

    python3.10 -m pipenv shell
    # A new shell will be opened inside the pipenv environment
    pytest
    pipenv run lint

    Running tests in parallel with pytest-xdist

    python3.10 -m pipenv run pytest -n 20