From ba32d1fa4670683ed08d3f60ad19321e4af92512 Mon Sep 17 00:00:00 2001 From: dc Date: Wed, 4 Nov 2026 10:15:04 +0000 Subject: [PATCH] ci: run the mock estate on the server that reports SYSSITE @sasjs/utils 4.7 makes webout() emit SYSSITE from a configured site id, defaulting to 123, where %webout takes &syssite. Until 3.13.0 the prelude wrote an empty string, and dc's client routes an expired licence key and a wrong-organisation key only when startup_site_id is truthy - so on the mock estate both pages were unreachable and licensing.cy.ts failed three cases. --- .gitea/workflows/build.yaml | 7 ++++++- .gitea/workflows/lighthouse.yaml | 2 +- .gitea/workflows/release.yaml | 2 +- .gitea/workflows/sites.yaml | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c57d4d5..d8433d5 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -20,6 +20,11 @@ env: # packaged-executable fix for the same page, so the version the tests run # against is the one that ships. # + # 3.13.0 is the one that matters for licensing: @sasjs/utils 4.7 reports + # SYSSITE, which %webout takes from &syssite. Before it the prelude wrote an + # empty string, so the client - which routes expired and wrong-organisation + # licence keys on that value - never reached those pages on the mock estate. + # # 3.12.3 is on top of that for a different reason: it is the first release whose # package.json declares @sasjs/utils ^4.6.0, which is what gives webout() its # options argument. getdata, viewdata and getcolvals pass { showmeta }, and a @@ -27,7 +32,7 @@ env: # members guaranteed here rather than whatever a fresh install happens to # resolve. requireWeboutOptions in sasjs/mocks/sasjs/services/dcMockUtils.js # refuses a runtime without it. - SASJS_SERVER_VERSION: '3.12.3' + SASJS_SERVER_VERSION: '3.13.0' NODE_VERSION: '24.15.0' jobs: diff --git a/.gitea/workflows/lighthouse.yaml b/.gitea/workflows/lighthouse.yaml index a2f5303..9676d2c 100644 --- a/.gitea/workflows/lighthouse.yaml +++ b/.gitea/workflows/lighthouse.yaml @@ -11,7 +11,7 @@ concurrency: env: # the server the mocked services and app tests run against - bump deliberately - SASJS_SERVER_VERSION: '3.12.3' + SASJS_SERVER_VERSION: '3.13.0' NODE_VERSION: '24.15.0' jobs: diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index f928231..2494f60 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -7,7 +7,7 @@ on: env: # the server the mocked services and app tests run against - bump deliberately - SASJS_SERVER_VERSION: '3.12.3' + SASJS_SERVER_VERSION: '3.13.0' NODE_VERSION: '24.5.0' jobs: diff --git a/.gitea/workflows/sites.yaml b/.gitea/workflows/sites.yaml index 25d5609..70e421e 100644 --- a/.gitea/workflows/sites.yaml +++ b/.gitea/workflows/sites.yaml @@ -11,7 +11,7 @@ on: env: # the server the mocked services and app tests run against - bump deliberately - SASJS_SERVER_VERSION: '3.12.3' + SASJS_SERVER_VERSION: '3.13.0' NODE_VERSION: '24.15.0' APP_LOC: /Public/app/dc SURFER_HOST: https://demo.datacontroller.io