test(ci): retire chat milestone bindings between cases
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
a03f6eae3b
commit
9066878f18
|
|
@ -365,8 +365,9 @@ See [GitHub cache access restrictions](https://docs.github.com/en/actions/refere
|
|||
Release verification runs the large chat integration file on three independent
|
||||
runners. Four other server shards cover every remaining general server file.
|
||||
The ordinary local test command and trusted PR workflow keep their complete
|
||||
`general-server` group. Each chat case shuts down its services and pauses its own still-active endpoints
|
||||
after assertions. This keeps workers in later cases from claiming earlier
|
||||
`general-server` group. Each chat case shuts down its services, pauses its own
|
||||
still-active endpoints, and retires its active/waiting conversations after
|
||||
assertions. This keeps workers in later cases from claiming earlier
|
||||
fixtures in the shared test database. Application assertions stay unchanged.
|
||||
|
||||
Each chat job collects active tests with Vitest, groups cases by source line,
|
||||
|
|
|
|||
|
|
@ -1033,6 +1033,10 @@ describeEmbeddedPostgres("chat channel control-plane integration", () => {
|
|||
if (fixtureCompanies.size > 0) {
|
||||
await db.update(chatEndpoints).set({ status: "paused" })
|
||||
.where(and(inArray(chatEndpoints.companyId, [...fixtureCompanies]), eq(chatEndpoints.status, "active")));
|
||||
// The milestone scanner also considers paused endpoints while their
|
||||
// conversations are active. Retire those bindings after assertions.
|
||||
await db.update(chatConversations).set({ state: "completed" })
|
||||
.where(and(inArray(chatConversations.companyId, [...fixtureCompanies]), inArray(chatConversations.state, ["active", "waiting"])));
|
||||
}
|
||||
fixtureServices.clear();
|
||||
fixtureCompanies.clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue