Integration tests against an IRIS container for release-preparation PRs - #1870
Draft
isc-klu wants to merge 1 commit into
Draft
Integration tests against an IRIS container for release-preparation PRs#1870isc-klu wants to merge 1 commit into
isc-klu wants to merge 1 commit into
Conversation
isc-klu
force-pushed
the
integration-tests
branch
2 times, most recently
from
September 10, 2026 21:46
1219d08 to
1d42286
Compare
isc-klu
force-pushed
the
integration-tests
branch
3 times, most recently
from
September 10, 2026 22:59
e17b7bc to
d0543c2
Compare
Replaces the placeholder test with a suite that opens a multi-root workspace whose folders connect to one iris-community container by each supported mechanism (objectscript.conn host/port, docker-compose port resolution, intersystems.servers entry, isfs), plus an inactive folder pointing at an unreachable host. The container's /api/atelier session timeout is 10 s so expired-session recovery is exercised. Runs from a new prepare-release.yml workflow on PRs from prepare-* branches and on manual dispatch; the old npm test step is removed from the per-PR workflows. Also fixes the runner, which could not launch VS Code at all: bump @vscode/test-electron to 3.x (2.x looks for the renamed Contents/MacOS/Electron), drop the rejected -n arg, unset ELECTRON_RUN_AS_NODE inherited from extension-spawned terminals, use a fresh user-data-dir per run, and make the mocha runner's promise settle when the tests finish. Closes intersystems-community#1863 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
isc-klu
force-pushed
the
integration-tests
branch
from
September 11, 2026 14:43
d0543c2 to
ebb7dbe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1863. Integration suite against a real
iris-community:latest-cdcontainer, run by a newprepare-release.ymlworkflow onprepare-*PRs and on manual dispatch. Thenpm teststep leaves the per-PR workflows.Configurations × checks
Each workspace folder in
test-fixtures/ci.code-workspaceis one configuration, with its settings in the matching directory undertest-fixtures/.src/test/suite/extension.test.tsruns the same check against every configuration it applies to.activeclient-hostport: client-side,objectscript.connwith host/port and credentials, nointersystems.serversclient-compose: client-side,objectscript.connwith docker-compose and credentials, nointersystems.serversclient-named-server: client-side,objectscript.conn.servernaming anintersystems.serversentry with credentialsclient-inactive: client-side,objectscript.connactive: falsenaming anintersystems.serversentry without a password (unreachable host)server-side: server-side, isfs folder on anintersystems.serversentry with credentials (isfs folders have noobjectscript.conn)serverForUrireturns them. Issues: language-server#415 →serverForUrishould preserve passwords stored insettings.json["objectscript.conn"]#1846 (client-hostport); Password requests #1858 → Fix docker-compose connections always prompting for password #1860 (client-compose); Extension fails to activate, isfs files can no longer be opened #1837 → Fix crash from unresolved auth on named-server connections #1836, Fix incompatibilities with pre-OAuth2 version of Server Manager #1820 (client-named-server,server-side); Cursor Remote SSH: vscode-objectscript activate() routinely hangs ~4.5 minutes after successful /api/atelier #1832 → Skip credential resolution for inactive connections during activation #1835, Fix hanging in activation when a server-side folder connection is inactive #1740 and serverForUri API discloses connection password to consumer extensions without user consent #1825 → Fix password disclosure via serverForUri and stale cookie reuse after logout/401 #1824 (client-inactive).readDirectoryon the isfs root returns the namespace's documents. Client-side folders list local files, so it doesn't apply.active:objectscript.conn.activefalse, then true, is honoured. "Toggle Connection" does not work correctly since extension version 3.6.1-beta 9 ? #1747 → Fix issue that causes client-side connections to be forced active #1748; Multi-root workspace: activating each namespace reconnects all active connections and orphans CSP sessions, exhausting the license #1805 → Improve management of web sessions when connection changes #1808.Verified to catch regressions by reverting the fix on master and watching the suite fail: #1846, #1860, #1830, #1864. Reverting #1835 did not fail the suite; activation didn't block here.
Skipped: the two
client-composecells that need the folder to go inactive. It never does:AtelierAPI.setConnectionhard-codesactive: truefor a resolved docker-compose connection. Pre-existing; issue to follow.Not covered: unauthenticated connections (#1840; IRIS routes any
.../api/atelierpath to the primary web app), UI-only paths (#1787, #1784), activation timeout (#1810), session leaks (#1805).How it works
Every configuration connects to the same container, whose
/api/ateliersession timeout is 10 s so expiry checks meet a real 401. The suite takes ~90 s once the container is up;test-fixtures/README.mdcovers running it locally with Podman or Docker.Activation dedupes connection checks by server name, so
client-named-server(serverci, shared withserver-side) only connects once a document in it becomes active. The test opens a file there to mirror that.Runner fixes
npm testcould not launch VS Code:@vscode/test-electron2.x looks for the since-renamedContents/MacOS/Electron(bumped to 3.x); Electron rejects-n;ELECTRON_RUN_AS_NODEfrom an extension-spawned terminal made VS Code run as plain Node; the mocha promise settled before the tests ran.