← Back to Pull requests

ci: restore puppeteer automation #24

Closed
unknown closed this pull request without merging on Oct 23, 2026 22:03 UTC
View on GitHub
unknown unknown commented on Oct 02, 2026 15:09 UTC
Author

Summary


Adds self-contained Puppeteer E2E testing against a GPU-enabled HeavyDB instance instead of relying on a nightly deployment.

⚠️ Until this is merged to master it won't run the copy-pr-bot for PRs, but I had this temporarily disabled for the commit before the last one, please see the actions run here: https://github.com/heavyai/immerse/actions/runs/38941373862/job/117112702360

The copy-pr-bot makes the GPU github runner actions a manual run, which is best practice for using nv GPU runners.

What changed


  • Adds a dedicated Puppeteer GitHub Actions workflow.

  • Builds Immerse on a CPU runner with dependency/build caching.

  • Runs HeavyDB on the smallest compatible NVIDIA T4 GPU runner.

  • Pulls the configured heavyai/scantest image from Docker Hub.

  • Mounts the locally built Immerse bundle into HeavyDB’s production web server.

  • Restores required test datasets from S3 and validates their schemas.

  • Uses an isolated Puppeteer test harness to avoid installing all Immerse dependencies on the GPU runner.

  • Caches Puppeteer’s browser download.

  • Uploads screenshots, HTML, browser logs, Jest results, and HeavyDB logs.

  • Enables copy-pr-bot synchronization for ready PRs and runs E2E CI on copied pull-request/<number> branches.

  • Supports manual workflow dispatch.

  • Re-enables the full Puppeteer suite.
  • Test updates


  • Consolidates smoke and sessionization coverage.

  • Verifies automatic HeavyDB authentication and session persistence.

  • Adds missing dashboard import support.

  • Updates fixture-dependent expectations and current dashboard routes.

  • Adds synchronization around chart-editor loading to reduce Pointmap test races.
  • Required repository configuration


    Secrets:
  • DOCKERHUB_USERNAME

  • DOCKERHUB_TOKEN

  • AWS_ACCESS_KEY_ID

  • AWS_SECRET_ACCESS_KEY
  • Optional variables:

  • HEAVYDB_IMAGE

  • HEAVYDB_START_COMMAND
  • Validation


  • Full Puppeteer suite passes in GitHub Actions.

  • HeavyDB serves the mounted Immerse build successfully.

  • S3 datasets restore and validate successfully.

  • Updated Puppeteer files pass lint and Babel compilation.
  • ToDo


  • Update product builder to also tag successful new image builds with latest and pull that, so we're not falling back to v10.0.0
  • Diff: 292 lines (+219 / -73) across 3 files Reviewer: patdevinwilson Review duration: 30654m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 292 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #24"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.8% · Safe to merge
    15.8%