GithubHelp home page GithubHelp logo

marqo-api-tests's People

Contributors

farshidz avatar jeadie avatar jn2clark avatar pandu-k avatar vicilliar avatar vitusacabado avatar wanlialex avatar

Watchers

 avatar

marqo-api-tests's Issues

S2Search testing pipeline does not actually test S2Search

The issue:
The marqo github CI workflow to test S2Search doesn't actually connect to any S2Search URL, it just acts like DIND.
Proof: Observe this run that passed: https://github.com/marqo-ai/marqo/actions/runs/5107294728/jobs/9180084294#step:8:4868
It runs its own OpenSearch container.
image

There are several causes:

  1. The current S2Search URL (github secret) is outdated and has already been torn down. There is a new URL we should use (supplied by @VitusAcabado )
  2. The tox does not properly pass env variables (from running conf) to the setup script. I think this is because the env vars set from running conf in clone_marqo_repo.sh in [testenv] commands_pre do not get carried over to the startup scripts in the child envs. Because of this, the s2search startup script reads $S2SEARCH_URL as empty, and starts its own marqo-os.

I don't know if this way of running conf used to work before and just doesn't now, or if it was always like this. Worth having a chat about!

Proposed solution:

  1. Remove any setting of env vars and running conf in clone_marqo_repo.sh
  2. Transfer LOCAL_OPENSEARCH_URL export declaration to conf file, so all exports are in 1 place (1 source of truth)
  3. In all startup scripts, call . "$(pwd)/conf" at the start, thus env vars are properly set before running marqo/marqo-os
  4. In the marqo repo, add the working S2Search URL as secret
  5. Add skip flag for some tests in the S2Search environment. Tests where we change the marqo configuration (like max replicas) will fail because of the internal S2Search limit. For example, I get this error:
marqo.errors.MarqoWebError: MarqoWebError: MarqoWebError Error message: {'message': "{'error': {'root_cause': [{'reason': 'provided number of number_of_replicas 4 exceeds your Marqo limit. Current limit for number_of_replicas is 1', 'type': 'marqo_error'}]}, 'status': 400}\nPlease create an issue on Marqo's GitHub repo (https://github.com/marqo-ai/marqo/issues) if this problem persists.", 'code': 'unhandled_backend_error', 'type': 'backend_error', 'link': ''}
E       status_code: 500, type: backend_error, code: unhandled_backend_error, link:

Create warnings for when the Marqo version is the same as a GitHub release

Problem:
We often forget to increment the Marqo's in-code version number. This results in the root endpoint returning a version not representative of the actual version.

Proposed solution:

  1. Check if the given version number is in the list of GitHub release tags:
curl https://api.github.com/repos/marqo-ai/marqo/tags
  1. Echo warnings that can be parsed by Github:
    https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions

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.