Порівняти коміти

...
Автор SHA1 Повідомлення Дата
l0ng-ai 45b757e5d0 fix(vcs): keep commit check actions visible while reading results 2026-11-23 02:14:37 +08:00
Charlie.Weiтаcharli117 76d67145f5 test(smoke): give the language-smoke closure tests a 20s timeout (#5240)
The two Language smoke workflow tests compute the repo-wide import closure and crate tree. On a CI runner running the whole suite they took longer than vitest's default 5 s and failed the Frontend job on main.

Co-authored-by: charli117 <[email protected]>
2026-11-23 01:13:43 +08:00
Charlie.Weiтаcharli117 cf4273eeea chore(deps): bump url to 2.5.9 for RUSTSEC-2026-0592 (#5237)
url 2.5.8 overflows the stack in Url::origin() on nested blob: URLs (RUSTSEC-2026-0592), which failed Cargo deny on main. 2.5.9 fixes it; form_urlencoded moves to 1.2.3 with it. The rest of the lockfile stays as on main.

Co-authored-by: charli117 <[email protected]>
2026-11-23 01:13:33 +08:00
4 змінених файлів з 97 додано та 10 видалено

No files matched your search

Створено
+4 -4
Переглянути файл
@@ -2361,9 +2361,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
version = "1.2.2"
version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e"
dependencies = [
"percent-encoding",
]
@@ -10827,9 +10827,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "url"
version = "2.5.8"
version = "2.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a"
dependencies = [
"form_urlencoded",
"idna",
+75
Переглянути файл
@@ -720,6 +720,81 @@ test("Commit Options applies a named TODO filter independently of the TODO windo
expect(await ipcCalls(page, "vcs_commit")).toEqual([]);
});
test("commit check text scrolls independently of its status icon and retry action", async ({ workbench: page }) => {
await stubRepository(page);
await page.setViewportSize({ width: 850, height: 650 });
await page.evaluate(async () => {
const registryPath = "/src/features/vcs/commitCheckRegistry.ts";
const layoutPath = "/src/workbench/toolwindows/store.ts";
const { registerCommitCheck } = await import(/* @vite-ignore */ registryPath);
const layout = await import(/* @vite-ignore */ layoutPath);
layout.moveToolWindow("commit", "left");
layout.setToolWindowSize("left", 238);
for (let index = 0; index < 6; index++) {
registerCommitCheck({
id: `test.commitLayout.${index}`,
order: index - 1000,
title: `Ledger check ${index + 1}`,
run: () => {
if (index === 0) document.body.dataset.checkRuns = String(Number(document.body.dataset.checkRuns ?? 0) + 1);
return {
severity: "error",
text: "The regional settlement totals differ from the monthly inventory audit and need a second review.",
fix:
index === 5
? {
label: "Review final check",
run: () => {
document.body.dataset.commitCheckReviewed = "yes";
},
}
: undefined,
};
},
});
}
});
await page.keyboard.press("Meta+k");
const commit = page.getByRole("region", { name: "Commit", exact: true });
await commit.getByRole("textbox", { name: "Commit message" }).fill("Review the settlement totals");
await commit.getByRole("button", { name: "Commit Options", exact: true }).click();
const options = page.getByRole("dialog", { name: "Commit Options", exact: true });
await options.getByRole("button", { name: "Run Commit Checks", exact: true }).click();
const feedback = commit.getByRole("alert").filter({ hasText: "Ledger check 1" });
const first = feedback.getByText("Ledger check 1", { exact: true });
const second = feedback.getByText("Ledger check 2", { exact: true });
const results = first.locator("../..");
const icon = feedback.locator("svg").first();
const retry = commit.getByRole("button", { name: "Rerun Commit Checks", exact: true });
const commitAnyway = commit.getByRole("button", { name: "Commit Anyway", exact: true });
await expect(commitAnyway).toBeInViewport({ ratio: 1 });
await expect(first).toHaveCSS("font-size", "13px");
const firstRow = (await first.locator("..").boundingBox())!;
const secondRow = (await second.locator("..").boundingBox())!;
expect(secondRow.y - (firstRow.y + firstRow.height)).toBeCloseTo(4, 0);
expect(await results.evaluate((node) => node.scrollHeight > node.clientHeight)).toBe(true);
const statusTop = (await icon.boundingBox())!.y;
const retryTop = (await retry.boundingBox())!.y;
await results.evaluate((node) => {
node.scrollTop = node.scrollHeight;
});
expect(await results.evaluate((node) => node.scrollTop)).toBeGreaterThan(0);
expect((await icon.boundingBox())!.y).toBeCloseTo(statusTop, 0);
expect((await retry.boundingBox())!.y).toBeCloseTo(retryTop, 0);
const details = feedback.getByRole("button", { name: "Review final check", exact: true });
await expect(details).toBeInViewport({ ratio: 1 });
await expect(icon).toBeInViewport({ ratio: 1 });
await expect(retry).toBeInViewport({ ratio: 1 });
await expect(commitAnyway).toBeInViewport({ ratio: 1 });
await details.click();
await expect(page.locator("body")).toHaveAttribute("data-commit-check-reviewed", "yes");
await retry.click();
await expect(page.locator("body")).toHaveAttribute("data-check-runs", "2");
await expect(first).toBeVisible();
expect(await ipcCalls(page, "vcs_commit")).toEqual([]);
});
test("the TODO check reports unreadable files and can retry after they become available", async ({
workbench: page,
}) => {
+2 -2
Переглянути файл
@@ -26,12 +26,12 @@ describe("the Language smoke workflow", () => {
const { files, problems } = await smokeInputs(repo, workflow);
expect(problems).toEqual([]);
expect(describeUnselected(await unselected(workflow, [...files.keys()]), files)).toBe("");
});
}, 20000);
it("runs every language when a crate the smoke runs changes", async () => {
const crates = rustSmokeInputs(repo);
expect(describeUnselected(await unselected(workflow, [...crates.keys()]), crates)).toBe("");
});
}, 20000);
});
const dirs: string[] = [];
+16 -4
Переглянути файл
@@ -403,24 +403,28 @@
align-items: flex-start;
justify-content: space-between;
gap: var(--space-1);
min-height: var(--h-control-small);
}
.checkFeedback > .checkProblems {
align-self: stretch;
flex: 1;
}
.checkFeedback .checkProblemsList {
align-self: stretch;
}
.checkFeedback > button {
flex: none;
}
.checkProblems {
flex: none;
display: flex;
align-items: flex-start;
gap: var(--space-1-5);
min-width: 0;
max-height: 120px;
overflow: auto;
padding: 4px 10px 0;
padding: var(--space-1) 10px 0;
color: var(--fg-secondary);
overflow-wrap: anywhere;
font-size: var(--fs-small);
font-size: var(--fs-ui);
line-height: 1.4;
}
.checkProblemsIcon {
@@ -434,13 +438,21 @@
color: var(--success);
}
.checkProblemsList {
display: flex;
flex-direction: column;
gap: var(--space-1);
min-width: 0;
max-height: 150px;
overflow: auto;
overscroll-behavior: contain;
}
.checkProblemTitle {
color: var(--fg);
}
.checkProblemLink {
max-width: 100%;
padding: 0;
text-align: start;
border: 0;
background: none;
color: var(--accent);