Skip to content

The agent that grows with you

chore(release): retire HERMES_GUEST_ONBOARDING from bundles, build tooling and the updater

alt-glitch303b70f75b32
diff --git a/apps/desktop/BUILDING.md b/apps/desktop/BUILDING.md
index f71518dca89..2cdaee18ca6 100644
--- a/apps/desktop/BUILDING.md
+++ b/apps/desktop/BUILDING.md
@@ -203,7 +203,7 @@ defaults into the desktop app, for example:
```sh
python scripts/release.py --build-commit REV --remote fork --publish \
- --bundle-env HERMES_GUEST_ONBOARDING=1 \
+ --bundle-env HERMES_PREVIEW_FULL_CONNECTORS=1 \
--bundle-env HERMES_DATA_DIR_SUFFIX=magic-test \
--bundle-unset HERMES_HOME
```
@@ -226,8 +226,7 @@ For local commit builds, `HERMES_BUNDLE_ENV_JSON` accepts a JSON object whose
string values are defaults and whose `null` values are explicit clears. For example,
`{"HERMES_HOME":null,"HERMES_DATA_DIR_SUFFIX":"magic-test"}`. Only
`HERMES_HOME`, `HERMES_DATA_DIR_SUFFIX`, `HERMES_DESKTOP_USER_DATA_DIR`,
-`HERMES_SHARED_AUTH_DIR`, `HERMES_GUEST_ONBOARDING`, and
-`HERMES_PREVIEW_FULL_CONNECTORS` are accepted. Process-control variables such as `NODE_OPTIONS` and `PATH`
+`HERMES_SHARED_AUTH_DIR`, and `HERMES_PREVIEW_FULL_CONNECTORS` are accepted. Process-control variables such as `NODE_OPTIONS` and `PATH`
are rejected. These settings are not applied to the build runner itself.
Commit archive keys still use the SHA, so use a fresh commit for different
defaults: an existing artifact is never overwritten with different bytes.
diff --git a/apps/desktop/electron/channel-build-version.test.ts b/apps/desktop/electron/channel-build-version.test.ts
index d94f1c3c8d8..4f511746d6f 100644
--- a/apps/desktop/electron/channel-build-version.test.ts
+++ b/apps/desktop/electron/channel-build-version.test.ts
@@ -36,7 +36,7 @@ function request(sequence: number = 65536, token: string = 'ab12cd34ef56ab78'):
windowsExecutableName: 'hermes-no-registry-needed',
msixAppIdWithOrg: `NousResearch.HermesChannel${token}`
},
- bundleEnv: { HERMES_GUEST_ONBOARDING: '1' },
+ bundleEnv: { HERMES_PREVIEW_FULL_CONNECTORS: '1' },
publicBase: 'https://builds.example.test'
}
}
diff --git a/apps/desktop/electron/updater/channel-protocol.ts b/apps/desktop/electron/updater/channel-protocol.ts
index 01f61b978d2..d8ee7a5b67b 100644
--- a/apps/desktop/electron/updater/channel-protocol.ts
+++ b/apps/desktop/electron/updater/channel-protocol.ts
@@ -96,7 +96,7 @@ const VERSION =
const ARCHIVE_REF = /^rc\.(?:[1-9]\d*)-v(?:0|[1-9]\d{0,2})\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/
// Published channel builds may still carry these retired bundle environment keys.
-const RETIRED_BUNDLE_ENV_KEYS = new Set(['HERMES_SKIP_INTRO'])
+const RETIRED_BUNDLE_ENV_KEYS = new Set(['HERMES_SKIP_INTRO', 'HERMES_GUEST_ONBOARDING'])
function parseChannelJson(body: string): unknown {
const parsed: unknown = JSON.parse(body)
@@ -373,7 +373,6 @@ function request(fields: Fields): ChannelRequest {
'HERMES_DATA_DIR_SUFFIX',
'HERMES_DESKTOP_USER_DATA_DIR',
'HERMES_SHARED_AUTH_DIR',
- 'HERMES_GUEST_ONBOARDING',
'HERMES_PREVIEW_FULL_CONNECTORS'
])
diff --git a/apps/desktop/electron/updater/channel.test.ts b/apps/desktop/electron/updater/channel.test.ts
index 1393fbfa3c0..c6d2badd865 100644
--- a/apps/desktop/electron/updater/channel.test.ts
+++ b/apps/desktop/electron/updater/channel.test.ts
@@ -189,6 +189,7 @@ test.each(['NODE_OPTIONS', 'PATH', 'HERMES_PYTHON'])(
test('channel manifest drops retired bundle keys but rejects unknown names', async (): Promise<void> => {
const f = await fixture()
f.manifest.request.bundleEnv.HERMES_SKIP_INTRO = '1'
+ f.manifest.request.bundleEnv.HERMES_GUEST_ONBOARDING = '1'
expect(decodeChannelManifest(JSON.stringify(f.manifest)).request.bundleEnv).toEqual({})
f.manifest.request.bundleEnv.HERMES_UNKNOWN = '1'
diff --git a/apps/desktop/scripts/bundle-env.mjs b/apps/desktop/scripts/bundle-env.mjs
index 953819519be..81d9669971b 100644
--- a/apps/desktop/scripts/bundle-env.mjs
+++ b/apps/desktop/scripts/bundle-env.mjs
@@ -1,9 +1,9 @@
-// Defaults must run before bundled modules resolve paths or onboarding flags.
+// Defaults must run before bundled modules resolve paths or feature flags.
// An esbuild define would replace reads, not populate the child process env.
// Match scripts/releases/bundle_env.py and the channel request decoder.
const ALLOWED_KEYS = new Set([
'HERMES_HOME', 'HERMES_DATA_DIR_SUFFIX', 'HERMES_DESKTOP_USER_DATA_DIR',
- 'HERMES_SHARED_AUTH_DIR', 'HERMES_GUEST_ONBOARDING', 'HERMES_PREVIEW_FULL_CONNECTORS'
+ 'HERMES_SHARED_AUTH_DIR', 'HERMES_PREVIEW_FULL_CONNECTORS'
])
/** Validate a bundle environment object: plain object of identifiers to
diff --git a/apps/desktop/scripts/bundle-env.test.mjs b/apps/desktop/scripts/bundle-env.test.mjs
index fdf05cf4f1f..819579ddc67 100644
--- a/apps/desktop/scripts/bundle-env.test.mjs
+++ b/apps/desktop/scripts/bundle-env.test.mjs
@@ -43,7 +43,7 @@ test('explicit clears beat inherited homes and prevent Windows registry fallback
test('applyBundleEnvironment replays the banner semantics for defaults, runtime overrides and clears', async () => {
const root = mkdtempSync(join(tmpdir(), 'hermes-bundle-pure-'))
- const defaults = { HERMES_HOME: null, HERMES_DATA_DIR_SUFFIX: 'baked', HERMES_GUEST_ONBOARDING: '1' }
+ const defaults = { HERMES_HOME: null, HERMES_DATA_DIR_SUFFIX: 'baked', HERMES_PREVIEW_FULL_CONNECTORS: '1' }
const keys = Object.keys(defaults)
const base = { HERMES_HOME: 'runtime', HERMES_DATA_DIR_SUFFIX: 'explicit' }
try {
@@ -56,12 +56,12 @@ test('applyBundleEnvironment replays the banner semantics for defaults, runtime
const outfile = join(root, 'bundle.mjs')
await build({ entryPoints: [entry], bundle: true, platform: 'node', format: 'esm', outfile, banner: { js: environmentDefaultsBanner(JSON.stringify(defaults)) } })
const env = { ...process.env, ...base }
- delete env.HERMES_GUEST_ONBOARDING
+ delete env.HERMES_PREVIEW_FULL_CONNECTORS
const viaBanner = JSON.parse(execFileSync(process.execPath, [outfile], { env, encoding: 'utf8' }))
const viaFunction = Object.fromEntries(keys.map(key => [key, applyBundleEnvironment(base, defaults)[key]]))
expect(viaFunction).toEqual(viaBanner)
expect(viaFunction).toEqual({
- HERMES_HOME: '', HERMES_DATA_DIR_SUFFIX: 'explicit', HERMES_GUEST_ONBOARDING: '1',
+ HERMES_HOME: '', HERMES_DATA_DIR_SUFFIX: 'explicit', HERMES_PREVIEW_FULL_CONNECTORS: '1',
})
} finally {
rmSync(root, { recursive: true, force: true })
@@ -70,7 +70,7 @@ test('applyBundleEnvironment replays the banner semantics for defaults, runtime
test('baked defaults precede imported module initialization and reach children without overriding explicit env', async () => {
const root = mkdtempSync(join(tmpdir(), 'hermes-bundle-env-'))
- const defaults = { HERMES_GUEST_ONBOARDING: '1', HERMES_DATA_DIR_SUFFIX: 'magic-test', HERMES_SHARED_AUTH_DIR: 'a=b "q"\n$(no)', HERMES_DESKTOP_USER_DATA_DIR: '' }
+ const defaults = { HERMES_PREVIEW_FULL_CONNECTORS: '1', HERMES_DATA_DIR_SUFFIX: 'magic-test', HERMES_SHARED_AUTH_DIR: 'a=b "q"\n$(no)', HERMES_DESKTOP_USER_DATA_DIR: '' }
const env = { ...process.env }
for (const key of Object.keys(defaults)) {
delete env[key]
@@ -83,9 +83,10 @@ test('baked defaults precede imported module initialization and reach children w
await build({ entryPoints: [entry], bundle: true, platform: 'node', format: 'esm', outfile, banner: { js: environmentDefaultsBanner(JSON.stringify(defaults)) } })
const run = extra => JSON.parse(execFileSync(process.execPath, [outfile], { env: { ...env, ...extra }, encoding: 'utf8' }))
expect(run({})).toEqual({ values: defaults, child: defaults.HERMES_DATA_DIR_SUFFIX })
- expect(run({ HERMES_DATA_DIR_SUFFIX: '-explicit', HERMES_GUEST_ONBOARDING: '' })).toEqual({ values: { ...defaults, HERMES_DATA_DIR_SUFFIX: '-explicit', HERMES_GUEST_ONBOARDING: '' }, child: '-explicit' })
+ expect(run({ HERMES_DATA_DIR_SUFFIX: '-explicit', HERMES_PREVIEW_FULL_CONNECTORS: '' })).toEqual({ values: { ...defaults, HERMES_DATA_DIR_SUFFIX: '-explicit', HERMES_PREVIEW_FULL_CONNECTORS: '' }, child: '-explicit' })
for (const bad of ['[]', 'null', '{"BAD-NAME":"x"}', '{"HERMES_HOME":1}', '{"HERMES_HOME":"\\u0000"}',
- '{"NODE_OPTIONS":"--require=evil"}', '{"PATH":null}', '{"HERMES_PYTHON":"/untrusted/python"}', '{"HERMES_SKIP_INTRO":"1"}']) {
+ '{"NODE_OPTIONS":"--require=evil"}', '{"PATH":null}', '{"HERMES_PYTHON":"/untrusted/python"}', '{"HERMES_SKIP_INTRO":"1"}',
+ '{"HERMES_GUEST_ONBOARDING":"1"}']) {
expect(() => environmentDefaultsBanner(bad)).toThrow()
}
} finally {
diff --git a/apps/desktop/scripts/commit-stamp-identity.test.mjs b/apps/desktop/scripts/commit-stamp-identity.test.mjs
index b0b3232c5de..48de4d93336 100644
--- a/apps/desktop/scripts/commit-stamp-identity.test.mjs
+++ b/apps/desktop/scripts/commit-stamp-identity.test.mjs
@@ -56,7 +56,7 @@ test('desktop stamp uses the admitted checkout rather than the dispatch SHA', ()
assert.deepEqual(JSON.parse(fs.readFileSync(path.join(build, 'agent-payload/app/install-stamp.json'), 'utf8')), stamp)
// A commit bundle records its baked defaults/clears as data so the smoke
// driver can replay them without running the app.
- const bundleEnv = { HERMES_HOME: null, HERMES_DATA_DIR_SUFFIX: '-suffix', HERMES_GUEST_ONBOARDING: '1' }
+ const bundleEnv = { HERMES_HOME: null, HERMES_DATA_DIR_SUFFIX: '-suffix', HERMES_PREVIEW_FULL_CONNECTORS: '1' }
assert.equal(run({ HERMES_BUNDLE_ENV_JSON: JSON.stringify(bundleEnv) }).status, 0)
assert.deepEqual(JSON.parse(fs.readFileSync(out, 'utf8')).bundleEnv, bundleEnv)
const before = fs.readFileSync(out)
diff --git a/apps/desktop/scripts/msix-virtualization.test.mjs b/apps/desktop/scripts/msix-virtualization.test.mjs
new file mode 100644
index 00000000000..d6a46a465a0
--- /dev/null
+++ b/apps/desktop/scripts/msix-virtualization.test.mjs
@@ -0,0 +1,79 @@
+// Hermes shares %LOCALAPPDATA% and HKCU state with the unpackaged CLI/gateway,
+// so every MSIX the repo produces must opt out of write virtualisation and the
+// builder must request the restricted capability that permits it.
+import { execFileSync } from 'node:child_process'
+import fs from 'node:fs'
+import { createRequire } from 'node:module'
+import os from 'node:os'
+import path from 'node:path'
+import { fileURLToPath } from 'node:url'
+import { afterEach, expect, test } from 'vitest'
+import { stageChannelManifest } from '../../../scripts/msix-shared.mjs'
+import { stageReleaseManifest, stageStoreManifest } from './before-build.mjs'
+
+const require = createRequire(import.meta.url)
+const desktop = fileURLToPath(new URL('../', import.meta.url))
+const roots = []
+afterEach(() => { for (const root of roots.splice(0)) fs.rmSync(root, { recursive: true, force: true }) })
+
+function virtualization(xml) {
+ const read = name => new RegExp(`<desktop6:${name}>([^<]*)</desktop6:${name}>`).exec(xml)?.[1]
+ return { fileSystem: read('FileSystemWriteVirtualization'), registry: read('RegistryWriteVirtualization') }
+}
+
+// A tagged app dir: the real template plus just enough for appIdentity.
+function taggedApp(tag) {
+ const root = fs.mkdtempSync(path.join(os.tmpdir(), 'msix-virt-'))
+ roots.push(root)
+ const app = path.join(root, 'apps', 'desktop')
+ fs.mkdirSync(path.join(app, 'assets'), { recursive: true })
+ fs.copyFileSync(path.join(desktop, 'assets/msix-manifest.xml'), path.join(app, 'assets/msix-manifest.xml'))
+ fs.writeFileSync(path.join(app, 'product-identity.cjs'), "module.exports={store:true,artifactNamePascal:'HermesBundled'}\n")
+ fs.writeFileSync(path.join(app, 'package.json'), JSON.stringify({ name: 'hermes', version: '0.27.1' }))
+ const env = { ...process.env, GIT_AUTHOR_NAME: 'Test', GIT_AUTHOR_EMAIL: '[email protected]',
+ GIT_COMMITTER_NAME: 'Test', GIT_COMMITTER_EMAIL: '[email protected]',
+ GIT_AUTHOR_DATE: '2026-09-07T00:18:00Z', GIT_COMMITTER_DATE: '2026-09-07T00:18:00Z' }
+ for (const args of [['init', '-q'], ['add', '.'], ['-c', 'commit.gpgsign=false', 'commit', '-qm', 'fixture'], ['tag', tag]]) {
+ execFileSync('git', args, { cwd: root, env, stdio: 'pipe' })
+ }
+ return app
+}
+
+// A channel app dir: stageChannelManifest loads scripts/before-build.mjs from it,
+// so link the real scripts directory (a junction needs no privilege on Windows).
+function channelApp() {
+ const app = fs.mkdtempSync(path.join(os.tmpdir(), 'msix-virt-channel-'))
+ roots.push(app)
+ fs.mkdirSync(path.join(app, 'assets'))
+ fs.mkdirSync(path.join(app, 'build/agent-payload'), { recursive: true })
+ fs.copyFileSync(path.join(desktop, 'assets/msix-manifest.xml'), path.join(app, 'assets/msix-manifest.xml'))
+ fs.writeFileSync(path.join(app, 'build/agent-payload/manifest.json'), JSON.stringify({ launchers: ['hermes'] }))
+ fs.writeFileSync(path.join(app, 'build/msix-extensions.xml'), '<Extensions />')
+ fs.symlinkSync(path.join(desktop, 'scripts'), path.join(app, 'scripts'), 'junction')
+ return app
+}
+
+test('store, release, canary and channel MSIX manifests keep write virtualisation disabled', () => {
+ const store = taggedApp('v0.27.1')
+ const canary = taggedApp('v0.27.1+canary.20260907T001800Z')
+ fs.mkdirSync(path.join(canary, 'build'), { recursive: true })
+ fs.copyFileSync(path.join(canary, 'assets/msix-manifest.xml'), path.join(canary, 'build/msix-manifest.xml'))
+ const channel = channelApp()
+ stageChannelManifest(channel, {
+ windowsVersion: '0.0.7.0', identity: { appNamePascal: 'HermesChannelab12', displayName: 'Hermes preview' }
+ })
+ const manifests = {
+ store: stageStoreManifest(store, 'v0.27.1'),
+ release: stageReleaseManifest(taggedApp('v0.27.1'), 'v0.27.1'),
+ canary: stageReleaseManifest(canary, 'v0.27.1+canary.20260907T001800Z'),
+ channel: path.join(channel, 'build/msix-manifest.xml')
+ }
+ for (const [kind, file] of Object.entries(manifests)) {
+ expect([kind, virtualization(fs.readFileSync(file, 'utf8'))]).toEqual([kind, { fileSystem: 'disabled', registry: 'disabled' }])
+ }
+})
+
+test('the builder config requests unvirtualizedResources for MSIX packages', () => {
+ const config = require('../electron-builder.config.cjs')
+ expect(config.msix.capabilities).toContain('unvirtualizedResources')
+})
diff --git a/scripts/bundles/desktop_inputs.py b/scripts/bundles/desktop_inputs.py
index 5a21f163d97..375ca9a0f83 100644
--- a/scripts/bundles/desktop_inputs.py
+++ b/scripts/bundles/desktop_inputs.py
@@ -47,12 +47,11 @@ def identity_environment(request: BuildRequest, variant: str, inherited: Mapping
request.validate_channel()
if request.channel_request is not None and variant != "bundled":
raise ValueError("channel builds currently support only the bundled variant")
- bundle_env = {**request.bundle_env, "HERMES_GUEST_ONBOARDING": "1"} if variant == "store" else request.bundle_env
env = dict(inherited)
env.update(CI="true", PYTHONUTF8="1", GITHUB_SHA=request.commit,
HERMES_DESKTOP_VARIANT=variant,
HERMES_PAYLOAD_VERSION=request.version,
- HERMES_BUNDLE_ENV_JSON=json.dumps(bundle_env, sort_keys=True))
+ HERMES_BUNDLE_ENV_JSON=json.dumps(request.bundle_env, sort_keys=True))
if request.release_epoch is None:
env.pop("HERMES_RELEASE_EPOCH", None)
else:
diff --git a/scripts/releases/bundle_env.py b/scripts/releases/bundle_env.py
index fbd96edb451..1c58b7de6f6 100644
--- a/scripts/releases/bundle_env.py
+++ b/scripts/releases/bundle_env.py
@@ -7,7 +7,7 @@ import json
# Keep this list aligned with the Desktop bundle banner and channel decoder.
_ALLOWED = frozenset({
"HERMES_HOME", "HERMES_DATA_DIR_SUFFIX", "HERMES_DESKTOP_USER_DATA_DIR",
- "HERMES_SHARED_AUTH_DIR", "HERMES_GUEST_ONBOARDING", "HERMES_PREVIEW_FULL_CONNECTORS",
+ "HERMES_SHARED_AUTH_DIR", "HERMES_PREVIEW_FULL_CONNECTORS",
})
diff --git a/tests-js/scripts/desktop-smoke.test.ts b/tests-js/scripts/desktop-smoke.test.ts
index 209cd13f691..ed188f56889 100644
--- a/tests-js/scripts/desktop-smoke.test.ts
+++ b/tests-js/scripts/desktop-smoke.test.ts
@@ -600,7 +600,7 @@ test('readBundledBundleEnv reads the stamped defaults/clears and is absent when
})
test.each<[Record<string, string | null> | undefined]>([
- [undefined], [{ HERMES_GUEST_ONBOARDING: '1' }], [{ HERMES_HOME: null }],
+ [undefined], [{ HERMES_PREVIEW_FULL_CONNECTORS: '1' }], [{ HERMES_HOME: null }],
])(
'bundled smoke admits a fresh home and seeds the resolved provider with defaults %j', async (bundleEnv: Record<string, string | null> | undefined): Promise<void> => {
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'smoke-bundle-clear-'))
diff --git a/tests/ci/test_channel_build_publication.py b/tests/ci/test_channel_build_publication.py
index 7c7a98c7a85..120bac926f8 100644
--- a/tests/ci/test_channel_build_publication.py
+++ b/tests/ci/test_channel_build_publication.py
@@ -33,7 +33,7 @@ def request_for(base):
return {"schema": 1, "buildId": "a" * 32, "channel": "unknown-at-build-time", "sequence": 7,
"repository": "fixture/repo", "commit": "b" * 40, "sourceVersion": "1.2.3",
"version": "0.0.7", "windowsVersion": "0.0.7.0", "identity": preview_identity("unknown-at-build-time", "c" * 16),
- "bundleEnv": {"HERMES_GUEST_ONBOARDING": "different from the prior request"}, "publicBase": base}
+ "bundleEnv": {"HERMES_DATA_DIR_SUFFIX": "different from the prior request"}, "publicBase": base}
@pytest.fixture
@@ -115,7 +115,7 @@ def test_channel_handoff_binds_full_request_and_feed_bytes(tmp_path, r2_server,
filename = file["url"].rsplit("/", 1)[-1]
assert file["size"] == (build / filename).stat().st_size
changed = copy.deepcopy(request)
- changed["bundleEnv"]["HERMES_GUEST_ONBOARDING"] = "other packaging input"
+ changed["bundleEnv"]["HERMES_DATA_DIR_SUFFIX"] = "other packaging input"
with pytest.raises(ValueError, match="identity"):
handoff.fetch_channel_build(changed, ["win32-x64"], tmp_path / "wrong", public_base=request["publicBase"])
assert not (tmp_path / "wrong").exists()
diff --git a/tests/scripts/test_channel_build_versions.py b/tests/scripts/test_channel_build_versions.py
index 9ca548f0d63..a2b6c427a67 100644
--- a/tests/scripts/test_channel_build_versions.py
+++ b/tests/scripts/test_channel_build_versions.py
@@ -26,7 +26,7 @@ def channel_request(commit: str, sequence: int = 65536) -> dict:
"cliName": "hermes-unregistered-preview", "windowsExecutableName": "hermes-unregistered-preview",
"msixAppIdWithOrg": f"NousResearch.HermesChannel{token}",
},
- "bundleEnv": {"HERMES_GUEST_ONBOARDING": "1", "HERMES_HOME": None},
+ "bundleEnv": {"HERMES_PREVIEW_FULL_CONNECTORS": "1", "HERMES_HOME": None},
"publicBase": "https://builds.example.test",
}
diff --git a/tests/scripts/test_commit_bundle_entrypoints.py b/tests/scripts/test_commit_bundle_entrypoints.py
index 659a60a3dbd..319320ff19a 100644
--- a/tests/scripts/test_commit_bundle_entrypoints.py
+++ b/tests/scripts/test_commit_bundle_entrypoints.py
@@ -26,7 +26,7 @@ def test_desktop_build_reaches_the_managed_payload_with_commit_ref(tmp_path, mon
monkeypatch.setenv("HERMES_PAYLOAD_TAG", "v9.9.9")
monkeypatch.setenv("GITHUB_SHA", "b" * 40)
monkeypatch.setenv("BUILD_NUMBER", "123")
- defaults = {"HERMES_GUEST_ONBOARDING": "1", "HERMES_DATA_DIR_SUFFIX": "magic-test", "HERMES_HOME": None}
+ defaults = {"HERMES_PREVIEW_FULL_CONNECTORS": "1", "HERMES_DATA_DIR_SUFFIX": "magic-test", "HERMES_HOME": None}
monkeypatch.setenv("HERMES_BUNDLE_ENV_JSON", json.dumps(defaults))
request = BuildRequest.create(repo, tag=None, commit=sha, variant=variant,
work=tmp_path / "work", cache=tmp_path / "cache", bundle_env=defaults)
diff --git a/tests/scripts/test_release_build_commit.py b/tests/scripts/test_release_build_commit.py
index 4edc5137d08..59c8f82b1a4 100644
--- a/tests/scripts/test_release_build_commit.py
+++ b/tests/scripts/test_release_build_commit.py
@@ -147,7 +147,7 @@ def test_commit_build_dispatch_is_repository_independent(fixture_repo):
def test_commit_bundle_environment_is_literal_and_validated(fixture_repo):
repo, _, invoke = fixture_repo
tip = git(repo, 'rev-parse', 'HEAD')
- values = {'HERMES_GUEST_ONBOARDING': '1', 'HERMES_DATA_DIR_SUFFIX': 'magic-test',
+ values = {'HERMES_PREVIEW_FULL_CONNECTORS': '1', 'HERMES_DATA_DIR_SUFFIX': 'magic-test',
'HERMES_DESKTOP_USER_DATA_DIR': '', 'HERMES_SHARED_AUTH_DIR': 'a=b "quote"\n$(not-a-command)'}
flags = [part for key, value in values.items() for part in ('--bundle-env', f'{key}={value}')]
result, calls = invoke('--build-commit', tip, '--publish', *flags)
@@ -156,7 +156,7 @@ def test_commit_bundle_environment_is_literal_and_validated(fixture_repo):
assert json.loads(next(field.split('=', 1)[1] for field in dispatch if field.startswith('bundle_env='))) == values
for invalid in (['--bundle-env', 'MISSING'], ['--bundle-env', 'BAD-NAME=x'],
['--bundle-env', 'NODE_OPTIONS=--require=evil'], ['--bundle-env', 'HERMES_SKIP_INTRO=1'],
- ['--bundle-unset', 'PATH'],
+ ['--bundle-env', 'HERMES_GUEST_ONBOARDING=1'], ['--bundle-unset', 'PATH'],
['--bundle-env', 'HERMES_HOME=x', '--bundle-env', 'HERMES_HOME=y']):
result, calls = invoke('--build-commit', tip, '--publish', *invalid)
assert result.returncode != 0 and not calls
@@ -228,7 +228,7 @@ def test_workflow_admission_checks_trust_before_publishing_outputs(tmp_path, fix
'GITHUB_WORKFLOW_REF': 'fixture-owner/fixture-repo/.github/workflows/desktop-bundled-release.yml@refs/heads/main',
'GITHUB_ACTOR': 'maintainer', 'GITHUB_TRIGGERING_ACTOR': 'maintainer',
'GITHUB_OUTPUT': str(output), 'UPLOAD_RELEASE': 'false',
- 'BUNDLE_ENV_JSON': '{"HERMES_GUEST_ONBOARDING":"1","HERMES_HOME":null}'}
+ 'BUNDLE_ENV_JSON': '{"HERMES_PREVIEW_FULL_CONNECTORS":"1","HERMES_HOME":null}'}
result, calls = invoke('admit', extra=env)
assert result.returncode == 0, result.stderr
assert dict(line.split('=', 1) for line in output.read_text(encoding='utf-8').splitlines()) == {
diff --git a/tests/scripts/test_release_channel_build.py b/tests/scripts/test_release_channel_build.py
index 3d1f9bdfebf..c89eec211a1 100644
--- a/tests/scripts/test_release_channel_build.py
+++ b/tests/scripts/test_release_channel_build.py
@@ -31,7 +31,7 @@ def test_dispatch_names_channel_and_binds_to_pushed_source(source):
calls = []
options = dict(name="custom-branch", revision="main", remote="origin", repo=source,
repository="example/hermes-agent", default_branch="main",
- dispatch=calls.append, bundle_env={"HERMES_GUEST_ONBOARDING": "1"})
+ dispatch=calls.append, bundle_env={"HERMES_PREVIEW_FULL_CONNECTORS": "1"})
dry = prepare_build(**options)
assert dry["commit"] == git(source, "rev-parse", "HEAD")
assert dry["sourceVersion"] == "1.2.3"
diff --git a/tests/scripts/test_release_channels.py b/tests/scripts/test_release_channels.py
index bd5451a57ee..9ea55b82772 100644
--- a/tests/scripts/test_release_channels.py
+++ b/tests/scripts/test_release_channels.py
@@ -110,8 +110,8 @@ def test_unknown_channel_created_over_http_retains_identity_and_immutable_reques
reader.resolve("not-registered-in-code")
record = pub.create("not-registered-in-code")
assert reader.resolve(record["name"]).manifest is None
- one = pub.allocate(record["name"], "a" * 40, "1.2.3", {"HERMES_GUEST_ONBOARDING": "1"})
- two = pub.allocate(record["name"], "a" * 40, "1.2.3", {"HERMES_GUEST_ONBOARDING": "0"})
+ one = pub.allocate(record["name"], "a" * 40, "1.2.3", {"HERMES_DATA_DIR_SUFFIX": "-a"})
+ two = pub.allocate(record["name"], "a" * 40, "1.2.3", {"HERMES_DATA_DIR_SUFFIX": "-b"})
assert one["identity"] == two["identity"] == record["identity"]
assert one["buildId"] != two["buildId"]
assert one["sequence"] < two["sequence"]