Skip to content

Commit ee2eda4

Browse files
norandomclaude
andcommitted
R171: the configuration for the faults of shared_frame.rs on the branch; a subject for the watching script
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6560cde commit ee2eda4

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎docs/experiments/lesscode-metrics/scope-watch/run.ps1‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# tests, and collect what they noted.
33
# ./run.ps1 -Watch <scope-watch.exe> -Out <new directory under D:\BuildArtifacts\lesscode> [-Tree <existing copy>]
44
# drift-rdp is only read. With -Tree the copy's renderer sources are put back first.
5-
param([Parameter(Mandatory)][string]$Watch, [Parameter(Mandatory)][string]$Out, [string]$Tree, [int]$LimitSeconds = 900)
5+
param([Parameter(Mandatory)][string]$Watch, [Parameter(Mandatory)][string]$Out, [string]$Tree, [string]$Subject, [int]$LimitSeconds = 900)
66
$ErrorActionPreference = 'Stop'
77
if (Test-Path -LiteralPath $Out) { throw "$Out exists" }
88
if ($Out -notmatch '^D:\\BuildArtifacts\\lesscode\\') { throw 'output must be under D:\BuildArtifacts\lesscode' }
99
$rules = Join-Path $PSScriptRoot 'rust.watch.json'
1010
$repo = (Resolve-Path (Join-Path $PSScriptRoot '..\..\..\..')).Path
11-
$subject = (Resolve-Path (Join-Path $repo '..\drift-rdp')).Path
11+
# The checkout to read: drift-rdp beside this repository, or another worktree of it (-Subject).
12+
$subject = if ($Subject) { (Resolve-Path $Subject).Path } else { (Resolve-Path (Join-Path $repo '..\drift-rdp')).Path }
1213
$files = 'display_path.rs', 'frame_stores.rs', 'gpu.rs', 'native_layer.rs', 'native_layer/dcomp.rs', 'shared_frame.rs', 'yuv.rs'
1314
New-Item -ItemType Directory -Force $Out | Out-Null
1415
if (-not $Tree) {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"language": "rust",
3+
"source_root": "D:/BuildArtifacts/drift-rdp/lesscode-shared-frame-tests",
4+
"files": ["src-tauri/src/renderer/shared_frame.rs"],
5+
"test_paths": ["src-tauri/tests/"],
6+
"test": ["cargo", "nextest", "run", "--locked", "--manifest-path", "src-tauri/Cargo.toml", "--lib", "--no-fail-fast"],
7+
"exclusions": ["target", "node_modules", ".git"],
8+
"timeout_floor_s": 300,
9+
"timeout_ceiling_s": 1800,
10+
"invalid_output_patterns": ["could not compile", "error[E"],
11+
"error_output_patterns": ["memory allocation of", "found invalid metadata files", "paging file is too small"],
12+
"runner_evidence_patterns": ["Starting ", "Summary ["],
13+
"workers": 3,
14+
"env": {"CARGO_TARGET_DIR": "target"}
15+
}

0 commit comments

Comments
 (0)