mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
test(authority): use supported e2e job
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -232,7 +232,7 @@ await runAuthorityE2eStep("jobs", async () => {
|
|||||||
const listBefore = await adapter.listPage({ limit: 5 });
|
const listBefore = await adapter.listPage({ limit: 5 });
|
||||||
assert.ok(Array.isArray(listBefore.jobs));
|
assert.ok(Array.isArray(listBefore.jobs));
|
||||||
|
|
||||||
const kind = String(context.env.AUTHORITY_E2E_JOB_KIND || "authority.vector.rebuild");
|
const kind = String(context.env.AUTHORITY_E2E_JOB_KIND || "delay");
|
||||||
const idempotencyKey = buildAuthorityJobIdempotencyKey({
|
const idempotencyKey = buildAuthorityJobIdempotencyKey({
|
||||||
kind,
|
kind,
|
||||||
chatId,
|
chatId,
|
||||||
@@ -241,17 +241,23 @@ await runAuthorityE2eStep("jobs", async () => {
|
|||||||
});
|
});
|
||||||
const submitted = await adapter.submit(
|
const submitted = await adapter.submit(
|
||||||
kind,
|
kind,
|
||||||
{
|
kind === "delay"
|
||||||
chatId,
|
? {
|
||||||
collectionId,
|
durationMs: 10,
|
||||||
namespace,
|
message: "Authority E2E job smoke completed",
|
||||||
modelScope: "authority-e2e",
|
idempotencyKey,
|
||||||
source: "authority-e2e-contract",
|
}
|
||||||
purge: false,
|
: {
|
||||||
dryRun: true,
|
chatId,
|
||||||
contractSmoke: true,
|
collectionId,
|
||||||
idempotencyKey,
|
namespace,
|
||||||
},
|
modelScope: "authority-e2e",
|
||||||
|
source: "authority-e2e-contract",
|
||||||
|
purge: false,
|
||||||
|
dryRun: true,
|
||||||
|
contractSmoke: true,
|
||||||
|
idempotencyKey,
|
||||||
|
},
|
||||||
{ idempotencyKey },
|
{ idempotencyKey },
|
||||||
);
|
);
|
||||||
assert.ok(submitted.id);
|
assert.ok(submitted.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user