Skip to content

Commit 3349866

Browse files
committed
Stabilize shared CI verification
1 parent cd712a8 commit 3349866

6 files changed

Lines changed: 15 additions & 1 deletion

File tree

Tests/HardwareControllerAudioBoundaryTests/audio_engine_exception_boundary_test.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import AVFoundation
22
import HardwareControllerAudioBoundary
33
import Testing
44

5+
@Suite(.serialized)
56
struct AudioEngineExceptionBoundaryTest {
67
/// Converts a duplicate-tap exception into a recoverable error.
78
@Test

Tests/HardwareControllerMacTests/controller_runtime_test.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,13 @@ struct ControllerRuntimeTest {
440440
)
441441
}
442442

443-
@Test
443+
@Test(
444+
.enabled(
445+
if: ProcessInfo.processInfo.environment[
446+
"HC_RUN_HID_PERFORMANCE"
447+
] == "1"
448+
)
449+
)
444450
func tenThousandTransitionSoakMeetsDispatchBudget() {
445451
let executor = RecordingExecutor()
446452
let snapshots = SnapshotRecorder()

Tests/HardwareControllerMacTests/voice_history_reconciler_test.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ struct VoiceHistoryReconcilerTest {
7171
)
7272
let document = historyDocument(sessionID: sessionID)
7373
try await record(document, in: try #require(history))
74+
_ = try await #require(history).recentSessions(limit: 1)
7475
let finalURL = root.appending(path: "audio/\(sessionID).caf")
7576
let quarantineFilename =
7677
".expiring_\(sessionID.uuidString)_\(UUID().uuidString).caf"

docs/contributor_guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
Demo mode uses deterministic process data and does not request Accessibility,
1313
Microphone, Speech Recognition, or hardware access. Tests replace process
1414
boundaries and skip opt-in system checks unless their environment flag is set.
15+
`scripts/check.sh` runs the required HID latency soak in its own test process so
16+
unrelated parallel suites cannot create scheduler outliers.
1517

1618
## Source map
1719

scripts/build_release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ main() {
237237
Sources/HardwareControllerAudioBoundary/audio_engine_exception_boundary.m \
238238
Sources/HardwareControllerAudioBoundary/include/audio_engine_exception_boundary.h
239239
swift test
240+
HC_RUN_HID_PERFORMANCE=1 swift test \
241+
--filter tenThousandTransitionSoakMeetsDispatchBudget
240242
zsh -n scripts/*.sh
241243
plutil -lint packaging/*.plist >/dev/null
242244

scripts/check.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ xcrun clang-format --dry-run --Werror \
1212
Sources/HardwareControllerAudioBoundary/include/audio_engine_exception_boundary.h
1313
zsh -n scripts/*.sh
1414
swift test
15+
HC_RUN_HID_PERFORMANCE=1 swift test \
16+
--filter tenThousandTransitionSoakMeetsDispatchBudget
1517
swift build -c release --product HardwareController
1618
scripts/build_release_test.sh
1719
scripts/notarize_release_test.sh

0 commit comments

Comments
 (0)