Skip to content

fix: CI and deployment fixes for OHIF 3.13 migration - #142

Merged
igoroctaviano merged 2 commits into
masterfrom
fix/ci-gcp-github-refs
Oct 5, 2026
Merged

igoroctaviano merged 2 commits into
masterfrom
fix/ci-gcp-github-refs

Conversation

@igoroctaviano

@igoroctaviano igoroctaviano commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Fix CI build failures by using GitHub refs for GCP packages instead of local links
  • Add rspack experiments.newCache for filesystem cache compatibility with rspack 2.x
  • Regenerate @cornerstonejs/core patch to fix "Invalid VOI LUT function" errors
  • Fix "no DICOMweb base url provided" error by using idc-dicomweb as default data source

Root Cause

The defaultDataSourceName was set to idc-merge which always tries to initialize ALL child data sources (IDC + GCP). When there's no ?gcp= query parameter, the GCP data source has no URL configured, causing requests to use undefined as the base URL.

Changes

CI Fix

  • Remove local link overrides from pnpm-workspace.yaml
  • Use github:ImagingDataCommons/ohif-gcp-extension#main and github:ImagingDataCommons/ohif-gcp-mode#main refs

Build Fix (.webpack/webpack.base.js)

  • Add experiments.newCache for rspack 2.x filesystem cache compatibility

Cornerstone Patch (patches/@cornerstonejs__core.patch)

  • Fix toLowHighRange throwing "Invalid VOI LUT function" for unknown values
  • Add getValidVOILUTFunction helper that falls back to LINEAR for invalid values

Data Source Fix (Critical)

  • Change defaultDataSourceName from 'idc-merge' to 'idc-dicomweb' in:
    • idc-assets/app-config-template.js (production deployment)
    • platform/app/public/config/default.js (local dev)
    • platform/app/public/config/idc.js (local dev)
  • The GCP extension dynamically activates a merge data source only when ?gcp= param is present

Test plan

  • Verify CI build passes
  • Test viewer loads studies without ?gcp= param (should use idc-dicomweb directly)
  • Test viewer loads studies with ?gcp= param (should use merge data source)
  • Test SEG loading no longer throws "Invalid VOI LUT function" errors

- Add full data source configuration to idc.js including idc-dicomweb,
  gcp, and idc-merge data sources (was missing, causing "no DICOMweb
  base url provided" errors)
- Add experiments.newCache for rspack 2.x filesystem cache compatibility
- Update idc.js with OHIF 3.13+ customization service format
- Add IDC branding, hotkeys, and mode visibility configuration
- Regenerate @cornerstonejs/core patch to fix toLowHighRange throwing
  "Invalid VOI LUT function" error for unknown VOI LUT function values
- Remove outdated patch files that no longer apply cleanly
- Add getValidVOILUTFunction helper that validates and normalizes VOI
  LUT function values, falling back to LINEAR for invalid values
@igoroctaviano
igoroctaviano merged commit 5202a0c into master Oct 5, 2026
1 of 2 checks passed

This branch is being deployed

1 queued deployment
fork-pr-approval — 84d2ee13 Deployed Oct 5, 2026 by igoroctaviano via playwright-tests (24.15.0) #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant