Skip to content

E2E test coverage for package install workflow #565

Closed as not planned
Closed as not planned

Description

@guanzhousongmicrosoft

Parent Issue

Part of #561 (Make DocumentDB usable from package install)

Problem

The current CI tests verify that packages build and install, but do not verify that a user can actually use DocumentDB after installing the packages. The existing test-gateway-install-entrypoint.sh tests run the emulator entrypoint (Docker path), not the documentdb-setup CLI (package path).

Solution

Add E2E test coverage that simulates the real user journey:

  1. Start from a clean OS (Debian/RHEL)
  2. Install PostgreSQL from PGDG
  3. Install the two DocumentDB packages (extension + gateway)
  4. Run documentdb-setup --username <user> --password <pass>
  5. Start the gateway
  6. Connect with mongosh and perform insert + query
  7. Verify PostgreSQL GUCs match expected values (behavioral parity with Docker)

Test Assertions

  • All package contents present (/usr/bin/documentdb-setup, /usr/share/documentdb/scripts/, etc.)
  • documentdb-setup completes without error
  • PostgreSQL GUCs match Docker emulator:
    • documentdb.enableBackgroundWorker = on
    • documentdb.indexBuildsScheduledOnBgWorker = off
    • ssl = off
    • listen_addresses = localhost
    • Extended RUM GUCs when library is available
  • HBA has TCP localhost entry
  • documentdb PG role exists
  • Gateway connects and accepts mongosh connections
  • CRUD round-trip (insert + findOne) succeeds
  • Extensions documentdb_core and documentdb are installed

Platforms

  • DEB: Debian trixie (verified locally)
  • RPM: RHEL 8 + RHEL 9 (deferred to CI -- requires RHEL base images)

Activity

  1. added this to the 0.111-0 milestone on Apr 7, 2026
  2. documentdb-triage-tool commented on May 30, 2026

    @documentdb-triage-tool

    👋 @guanzhousongmicrosoft — this issue has been assigned for 29 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  3. documentdb-triage-tool commented on Jun 13, 2026

    @documentdb-triage-tool

    👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  4. documentdb-triage-tool commented on Jun 28, 2026

    @documentdb-triage-tool

    👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  5. documentdb-triage-tool commented on Jul 13, 2026

    @documentdb-triage-tool

    👋 @guanzhousongmicrosoft — this issue has been assigned for 15 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  6. modified the milestones: 0.111-0, 0.117-0 on Jul 24, 2026
  7. guanzhousongmicrosoft commented on Jul 25, 2026

    @guanzhousongmicrosoft
    MemberAuthor

    Delivered on main: packaging/test_packages/ contains the package-install E2E infrastructure (deb + rhel-8/9 install entrypoints, test_gateway.py install verification), and the package build workflows exercise it — build_deb_packages.yml runs build_gateway_packages.sh --test-clean-install per (os, pg) matrix leg, so every PR that touches packaging gets a clean-install E2E gate. Closing as completed.

  8. removed this from the 0.117-0 milestone on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions