fix(beta): PR resolvers/smoke check should typecheck all pacakges (#23913)
This commit is contained in:
+3
-3
@@ -61,7 +61,7 @@ async function typecheck() {
|
|||||||
console.log(" Running typecheck...")
|
console.log(" Running typecheck...")
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await $`bun typecheck`.cwd("packages/opencode")
|
await $`bun typecheck`
|
||||||
return true
|
return true
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(`Typecheck failed: ${err}`)
|
console.log(`Typecheck failed: ${err}`)
|
||||||
@@ -113,7 +113,7 @@ async function fix(pr: PR, files: string[], prs: PR[], applied: number[], idx: n
|
|||||||
"If bun.lock is conflicted, do not hand-merge it. Delete bun.lock and run bun install after the code conflicts are resolved.",
|
"If bun.lock is conflicted, do not hand-merge it. Delete bun.lock and run bun install after the code conflicts are resolved.",
|
||||||
"If a PR already deleted a file/directory, do not re-add it, instead apply changes in the new semantic location.",
|
"If a PR already deleted a file/directory, do not re-add it, instead apply changes in the new semantic location.",
|
||||||
"If a PR already changed an import, keep that change.",
|
"If a PR already changed an import, keep that change.",
|
||||||
"After resolving the conflicts, run `bun typecheck` in `packages/opencode`.",
|
"After resolving the conflicts, run `bun typecheck` at the repo root.",
|
||||||
"If typecheck fails, you may also update any files reported by typecheck.",
|
"If typecheck fails, you may also update any files reported by typecheck.",
|
||||||
"Keep any non-conflict edits narrowly scoped to restoring a valid merged state for the current PR batch.",
|
"Keep any non-conflict edits narrowly scoped to restoring a valid merged state for the current PR batch.",
|
||||||
"Fix any merge-caused typecheck errors before finishing.",
|
"Fix any merge-caused typecheck errors before finishing.",
|
||||||
@@ -149,7 +149,7 @@ async function smoke(prs: PR[], applied: number[]) {
|
|||||||
const prompt = [
|
const prompt = [
|
||||||
"The beta merge batch is complete.",
|
"The beta merge batch is complete.",
|
||||||
`Merged PRs on HEAD:\n${done}`,
|
`Merged PRs on HEAD:\n${done}`,
|
||||||
"Run `bun typecheck` in `packages/opencode`.",
|
"Run `bun typecheck` at the repo root.",
|
||||||
"Run `./script/build.ts --single` in `packages/opencode`.",
|
"Run `./script/build.ts --single` in `packages/opencode`.",
|
||||||
"Fix any merge-caused issues until both commands pass.",
|
"Fix any merge-caused issues until both commands pass.",
|
||||||
"Do not create a commit.",
|
"Do not create a commit.",
|
||||||
|
|||||||
Reference in New Issue
Block a user