Skip to content

[KF-XXX] Backend test failure in onboarding_e2e after migration changes #31

Closed

Description

@guycorbaz

Problem: Story 6-2 PR #29 Backend (Rust) test job fails with exit code 101, but logs don't show the specific failing test or error message.

Context:

  • Migration 20260419000002_users_company_id.sql modified to make company_id NULLABLE
  • All other CI checks pass (Frontend ✅, CodeQL ✅, Docker ✅)
  • Test was previously returning 500 errors on /api/v1/onboarding/seed-demo

Symptoms:

  • Backend (Rust) job fails consistently
  • No visible test failure messages in CI logs
  • Likely related to multi-tenant scoping or migration state

To Investigate:

  1. Run tests locally: cargo test --test onboarding_e2e
  2. Check if issue is specific to full_onboarding_flow_demo_path test
  3. Verify migration compatibility with fresh test DBs
  4. Review ensure_admin_user expectations for company_id NOT NULL vs nullable

Blocking: Story 6-2 PR #29 merge

Labels: bug, triage, database, migrations

Activity

  1. added
    bugSomething isn't working
    triageNeeds review / prioritization
    on Apr 23, 2026
  2. guycorbaz commented on Apr 28, 2026

    @guycorbaz
    OwnerAuthor

    Vérifié 2026-04-28 : cargo test -p kesh-api --test onboarding_e2e passe 12/12 localement (full_onboarding_flow_demo_path, reset_allows_demo_at_step_5_when_env_var_set, reset_blocks_production_past_step_2, reset_blocks_step_7_even_when_is_demo_flag_is_true, reset_clears_demo_data, seed_demo_at_wrong_step_returns_400, etc.).

    L'échec CI initial (exit code 101 sans logs visibles) a été résolu par le merge de Story 6-2 (commit 7c8822d) puis stabilisation par Story 7-1 (commit b63dc4e). Les changements de migration users_company_id NULLABLE sont désormais cohérents avec les fixtures et le multi-tenant scoping.

    Closing as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds review / prioritization

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions