test(ci): stabilize JADX recovery and ignore generated reports (#1668)

This commit is contained in:
You Wish
2026-10-11 19:56:19 +08:00
committed by GitHub
parent a8a9c4d817
commit 0a6b46d5b0
2 changed files with 11 additions and 4 deletions
+1
View File
@@ -33,6 +33,7 @@ codedb.snapshot
htmlcov/
.coverage
coverage/
.vitest/
.vitest-reports/
test-results.xml
.turbo/
+10 -4
View File
@@ -527,6 +527,14 @@ it("retries shutdown cleanup after ownership verification recovers", async () =>
"normal",
() => cleanupFails,
);
const closeAfterRecovery = async () => {
cleanupFails = false;
// Closing the transport can leave the child between live and exited
// snapshots. Retry retained ownership until cleanup is actually verified.
await expect
.poll(() => provider.close(), { timeout: 5_000 })
.toBeUndefined();
};
try {
const outcome = await service.execute("inspect_android_package", {
path: apk,
@@ -538,13 +546,11 @@ it("retries shutdown cleanup after ownership verification recovers", async () =>
const workspace = launches[0]?.cwd;
if (workspace === undefined) throw new Error("Expected acquired workspace");
await expect(access(workspace)).resolves.toBeUndefined();
cleanupFails = false;
await provider.close();
await closeAfterRecovery();
await verifyCleanup(launches);
expect(launches).toHaveLength(1);
} finally {
cleanupFails = false;
await provider.close();
await closeAfterRecovery();
}
});