-
Notifications
You must be signed in to change notification settings - Fork 0
ci: activate Stage A worker measurement #569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
8a60cb0
ci: activate Stage A worker measurement
lemone112 937707e
test(colors): activate merged Stage A worker contract
lemone112 9dc71c1
perf(colors): record private Program WASM budget
lemone112 d4ae9be
fix(colors): launch CI browser proofs without sandbox
lemone112 1db3c46
fix(colors): seed isolated mutation cargo index
lemone112 619515b
test(colors): expose exact mutation oracle drift
lemone112 6c7ffb2
test(colors): bind exact private mutation errors
lemone112 6837f8c
test(colors): bind exact publish mutant error
lemone112 c7d7909
test(colors): parse Chrome launch arguments structurally
lemone112 3fb4b8b
fix(colors): materialize isolated Cargo registry index
lemone112 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| { | ||
| "schemaVersion": 1, | ||
| "role": "private-program-consumer", | ||
| "artifact": "packages/colors/private-program/labcolors_private_program.wasm", | ||
| "toolchain": { | ||
| "rust": "1.96.0", | ||
| "rustcCommit": "ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96", | ||
| "cargo": "1.96.0", | ||
| "cargoCommit": "30a34c6821b57de0aaec83a901aca39f88f6778c", | ||
| "target": "wasm32-unknown-unknown", | ||
| "profile": "release", | ||
| "feature": "private-fixture", | ||
| "node": "24.14.0", | ||
| "binaryenRelease": "version_117", | ||
| "binaryenNodeArchiveSha256": "2d5a42f2d167a7cc2b4b6664c44c5ace1690d13db4f527324f052afbad461a07", | ||
| "binaryenComponentSha256": { | ||
| "wasm-opt.js": "c0b4bc26f1a588dc686ae36b32c4fea3d7b99f4fb8a1778d0ba4129f326f8449", | ||
| "wasm-opt.wasm": "d823328d8fcad3a59aa605c61d1620d30b9156f086d30ff3246b43c32526856b", | ||
| "wasm-opt.worker.js": "5b7952731f6ea1d5954db968e45b13f862853e6ef14a03b3f35d036f6136b624" | ||
| }, | ||
| "wasmOptFlags": "-Oz --enable-bulk-memory --enable-nontrapping-float-to-int" | ||
| }, | ||
| "measurement": { | ||
| "source": "github-actions-run-31473003387", | ||
| "platform": "linux-x64", | ||
| "rawBytes": 339336 | ||
| }, | ||
| "policy": { | ||
| "maxRawBytes": 339336, | ||
| "basis": "exact optimized private Program artifact from GitHub Actions Linux", | ||
| "gzip": "diagnostic-only" | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| function tokens(source) { | ||
| const result = []; | ||
| for (let index = 0; index < source.length; ) { | ||
| const character = source[index]; | ||
| const next = source[index + 1]; | ||
| if (/\s/u.test(character)) { | ||
| index += 1; | ||
| } else if (character === "/" && next === "/") { | ||
| index = source.indexOf("\n", index + 2); | ||
| if (index === -1) break; | ||
| } else if (character === "/" && next === "*") { | ||
| index = source.indexOf("*/", index + 2); | ||
| if (index === -1) throw new Error("unterminated JavaScript block comment"); | ||
| index += 2; | ||
| } else if (character === '"' || character === "'") { | ||
| const quote = character; | ||
| const start = index; | ||
| index += 1; | ||
| while (index < source.length && source[index] !== quote) { | ||
| index += source[index] === "\\" ? 2 : 1; | ||
| } | ||
| if (index >= source.length) throw new Error("unterminated JavaScript string literal"); | ||
| const raw = source.slice(start, index + 1); | ||
| result.push({ type: "string", value: quote === '"' ? JSON.parse(raw) : raw.slice(1, -1) }); | ||
| index += 1; | ||
| } else if (character === "`") { | ||
| index += 1; | ||
| while (index < source.length && source[index] !== "`") { | ||
| index += source[index] === "\\" ? 2 : 1; | ||
| } | ||
| if (index >= source.length) throw new Error("unterminated JavaScript template literal"); | ||
| index += 1; | ||
| } else if (/[A-Za-z_$]/u.test(character)) { | ||
| const start = index; | ||
| index += 1; | ||
| while (/[A-Za-z0-9_$]/u.test(source[index] ?? "")) index += 1; | ||
| result.push({ type: "identifier", value: source.slice(start, index) }); | ||
| } else { | ||
| result.push({ type: "punctuator", value: character }); | ||
| index += 1; | ||
| } | ||
| } | ||
| return result; | ||
| } | ||
|
|
||
| export function chromeArguments(source) { | ||
| const sourceTokens = tokens(source); | ||
| for (let index = 0; index < sourceTokens.length - 4; index += 1) { | ||
| if ( | ||
| sourceTokens[index].type !== "string" || | ||
| sourceTokens[index].value !== "goog:chromeOptions" || | ||
| sourceTokens[index + 1].value !== ":" || | ||
| sourceTokens[index + 2].value !== "{" | ||
| ) { | ||
| continue; | ||
| } | ||
| let objectDepth = 1; | ||
| for (let cursor = index + 3; cursor < sourceTokens.length && objectDepth > 0; cursor += 1) { | ||
| const token = sourceTokens[cursor]; | ||
| if (token.value === "{") objectDepth += 1; | ||
| if (token.value === "}") objectDepth -= 1; | ||
| if ( | ||
| objectDepth === 1 && | ||
| token.type === "identifier" && | ||
| token.value === "args" && | ||
| sourceTokens[cursor + 1]?.value === ":" && | ||
| sourceTokens[cursor + 2]?.value === "[" | ||
| ) { | ||
| const args = []; | ||
| let nestedDepth = 0; | ||
| let element = []; | ||
| for (let argument = cursor + 3; argument < sourceTokens.length; argument += 1) { | ||
| const argumentToken = sourceTokens[argument]; | ||
| if (nestedDepth === 0 && (argumentToken.value === "," || argumentToken.value === "]")) { | ||
| if (element.length === 1 && element[0].type === "string") args.push(element[0].value); | ||
| element = []; | ||
| if (argumentToken.value === "]") return args; | ||
| continue; | ||
| } | ||
| if (["[", "{", "("].includes(argumentToken.value)) nestedDepth += 1; | ||
| if (["]", "}", ")"].includes(argumentToken.value)) nestedDepth -= 1; | ||
| element.push(argumentToken); | ||
| } | ||
| throw new Error("unterminated goog:chromeOptions args array"); | ||
| } | ||
| } | ||
| } | ||
| throw new Error("goog:chromeOptions args array is absent"); | ||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.