Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions config/scripts/ci-shard-timings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,6 @@
"src/main/ipc/jira/cancellable-requests.test.ts": 71,
"src/main/ipc/jira/ipc-params.test.ts": 59,
"src/main/ipc/jira/issue-summary-generation.test.ts": 124,
"src/main/ipc/jira/project-metadata-registration.test.ts": 194,
"src/main/ipc/linear/register-handlers.test.ts": 131,
"src/main/ipc/local-file-access-resolution-network-path.test.ts": 198,
"src/main/ipc/local-file-access-resolution.test.ts": 535,
Expand Down Expand Up @@ -6499,7 +6498,6 @@
"src/main/startup/gpu-fallback-marker.test.ts": 48,
"src/main/startup/gpu-fallback-switches.test.ts": 39,
"src/main/startup/gpu-lifecycle-install-dir-acl-guard.test.ts": 605,
"src/main/startup/headless-serve-ssh-registration.test.ts": 3582,
"src/main/startup/headless-serve-x11-reexec.test.ts": 48,
"src/main/startup/http1-compatibility-profile-state.test.ts": 56,
"src/main/startup/hydrate-shell-path.test.ts": 471,
Expand Down
26 changes: 0 additions & 26 deletions src/main/ipc/browser-client-page-metadata-ipc.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { RemoteRuntimeClientError } from '../../shared/remote-runtime/remote-runtime-client-error'

const mocks = vi.hoisted(() => ({
handlers: new Map<string, (event: unknown, args: unknown) => unknown>(),
Expand Down Expand Up @@ -61,21 +60,6 @@ afterEach(() => {
})

describe('browser:publishClientPageMetadata', () => {
it('forwards a valid publish and returns what the runtime answered', async () => {
await expect(
publishMetadata({ environmentId: 'environment-a', params: PARAMS })
).resolves.toEqual({ status: 'published', accepted: true })
expect(mocks.publish).toHaveBeenCalledWith('environment-a', PARAMS)
})

it('carries an un-accepted answer through rather than reporting success', async () => {
mocks.publish.mockResolvedValue({ accepted: false })

await expect(
publishMetadata({ environmentId: 'environment-a', params: PARAMS })
).resolves.toEqual({ status: 'published', accepted: false })
})

// Untrusted renderer identities must not reach the paired runtime lease.
it('refuses an untrusted renderer before touching the lease', async () => {
mocks.isTrusted.mockReturnValue(false)
Expand Down Expand Up @@ -108,14 +92,4 @@ describe('browser:publishClientPageMetadata', () => {
await expect(publishMetadata(args)).resolves.toEqual({ status: 'refused' })
expect(mocks.publish).not.toHaveBeenCalled()
})

it('reports a lease failure with its runtime error code', async () => {
mocks.publish.mockRejectedValue(
new RemoteRuntimeClientError('remote_runtime_unavailable', 'no lease')
)

await expect(
publishMetadata({ environmentId: 'environment-a', params: PARAMS })
).resolves.toEqual({ status: 'failed', errorCode: 'remote_runtime_unavailable' })
})
})
128 changes: 0 additions & 128 deletions src/main/ipc/jira/project-metadata-registration.test.ts

This file was deleted.

52 changes: 0 additions & 52 deletions src/main/ipc/worktree-metadata-merge.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { describe, expect, it } from 'vitest'
import { canonicalWorktreeIdentity } from '../../shared/worktree/identity'
import type { GitWorktreeInfo } from '../../shared/worktree/types'
import { mergeWorktree } from './worktree-metadata-merge'

Expand Down Expand Up @@ -52,55 +51,4 @@ describe('mergeWorktree identity projection', () => {

expect(worktree.displayNameMode).toBe('fixed')
})

it('publishes canonical identity when host and instance metadata are known', () => {
const worktree = mergeWorktree('repo-1', git, {
instanceId: '11111111-1111-4111-8111-111111111111',
hostId: 'ssh:build-box',
displayName: 'Feature',
comment: '',
linkedIssue: null,
linkedPR: null,
linkedLinearIssue: null,
isArchived: false,
isUnread: false,
isPinned: false,
sortOrder: 0,
lastActivityAt: 0
})

expect(worktree.identity).toEqual({
key: canonicalWorktreeIdentity({
worktreeId: worktree.id,
executionHostId: 'ssh:build-box',
instanceId: '11111111-1111-4111-8111-111111111111'
}),
executionHostId: 'ssh:build-box',
instanceId: '11111111-1111-4111-8111-111111111111'
})
})

it('omits canonical identity for legacy metadata without a proven host', () => {
const worktree = mergeWorktree('repo-1', git, undefined)

expect(worktree.identity).toBeUndefined()
})

it('projects optional GitHub PR suppression metadata', () => {
const worktree = mergeWorktree('repo-1', git, {
displayName: 'Feature',
comment: '',
linkedIssue: null,
linkedPR: null,
suppressedGitHubPR: 42,
linkedLinearIssue: null,
isArchived: false,
isUnread: false,
isPinned: false,
sortOrder: 0,
lastActivityAt: 0
})

expect(worktree.suppressedGitHubPR).toBe(42)
})
})
6 changes: 0 additions & 6 deletions src/main/link-preview/link-preview-page-metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ describe('readLinkPreviewMetadata', () => {
})
})

it('decodes the named entities titles use', () => {
const html = `<title>Docs&nbsp;&ndash;&nbsp;Guide &hellip; &ldquo;Orca&rdquo;</title>`

expect(readLinkPreviewMetadata(html, PAGE_URL).title).toBe('Docs – Guide … “Orca”')
})

it('keeps a > inside a quoted attribute value as part of the value', () => {
const html = `<meta content="Home > Docs" property="og:description"><meta property="og:title" content="A > B">`

Expand Down
12 changes: 0 additions & 12 deletions src/main/local-worktree-metadata-prune-gate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ describe('local worktree metadata prune gate', () => {
__resetLocalWorktreeMetadataPruneGateForTests()
})

it('is due for a repo it has never seen', () => {
expect(isLocalWorktreeMetadataPruneDue('repo-1')).toBe(true)
})

it('stays undue indefinitely once a pass ran and nothing changed', () => {
markLocalWorktreeMetadataPruneStarted('repo-1')

Expand Down Expand Up @@ -56,14 +52,6 @@ describe('local worktree metadata prune gate', () => {
expect(isLocalWorktreeMetadataPruneDue('repo-1')).toBe(false)
})

it('does not re-arm on the first listing it observes', () => {
markLocalWorktreeMetadataPruneStarted('repo-1')

recordLocalWorktreeListingForPruneGate('repo-1', ['/a'])

expect(isLocalWorktreeMetadataPruneDue('repo-1')).toBe(false)
})

it('re-arms when a later listing differs from the one the last pass ran against', () => {
recordLocalWorktreeListingForPruneGate('repo-1', ['/a', '/b'])
markLocalWorktreeMetadataPruneStarted('repo-1')
Expand Down
74 changes: 0 additions & 74 deletions src/main/startup/headless-serve-ssh-registration.test.ts

This file was deleted.

Loading
Loading