Skip to content

bug: setup.py stops abruptly during MongoDB Binary and frontend test steps failure #916

@Shaun420

Description

@Shaun420

Problem:

During running setup.py, in case there is an Exception in MongoDBBinaryStep: the current script stops executing immediately.
Same goes for TestStep which runs pnpm -C backend run test:ci command for running backend tests.
The backend tests always fail (see below image). But these errors do not occur during runtime. Also the setup shouldn't exit because these steps failed.
Importance of setup.py: This script is essential for getting started with development of ViBe. It installs node, npm, pnpm, firebase tools, configures .env file, installs critical project packages. Hence, the setup must run all the steps and should not exit due to TestSteps or MongoDBBinaryStep errors.

Image

Steps to reproduce:

  1. Open terminal in root directory of repo.
  2. Delete old .vibe.json
  3. Run the setup script:
python setup.py
  1. Observe that setup.py exits after pnpm -C backend test:ci step and prints ❌ Tests failed. Please fix and re-run the setup.

Expected Behaviour

If MongoDBBinaryStep or TestStep produced errors, the setup should continue with further steps and at the end should show warnings the user regarding the failed steps.

Actual behaviour

The TestStep step produces error output and setup exits immediately.

Image of setup.py output:

Image

Environment

OS: Ubuntu 24.04.2 LTS
Command run: python setup.py
Python version: 3.12.3
Node version: v20.20.1
pnpm version: 10.12.1

I am currently working on a fix for this issue so please assign this issue to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions