mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 09:42:54 +00:00
ci(release): fail fast on red release children
(cherry picked from commit 8d7038775f)
This commit is contained in:
@@ -179,7 +179,7 @@ describe("package acceptance workflow", () => {
|
||||
expect(hydrateWindowsPnpm.run).toContain('"--filter",');
|
||||
expect(hydrateWindowsPnpm.run).toContain('"openclaw",');
|
||||
expect(hydrateWindowsPnpm.run).toContain(
|
||||
'New-Item -ItemType Junction -Path $workspaceNodeModules -Target $env:PNPM_CONFIG_MODULES_DIR',
|
||||
"New-Item -ItemType Junction -Path $workspaceNodeModules -Target $env:PNPM_CONFIG_MODULES_DIR",
|
||||
);
|
||||
expect(hydrateWindowsPnpm.run).toContain(".pnpm-workspace-state-v1.json");
|
||||
expect(hydrateWindowsPnpm.run).not.toContain("Remove-Item -Recurse -Force");
|
||||
@@ -1464,6 +1464,16 @@ describe("package artifact reuse", () => {
|
||||
expect(pluginNpmWorkflow).toContain("environment: npm-release");
|
||||
expect(clawHubWorkflow).toContain("environment: clawhub-plugin-release");
|
||||
expect(openclawNpmWorkflow).toContain("environment: npm-release");
|
||||
expect(releaseWorkflow).toContain("default: from-validation");
|
||||
expect(releaseWorkflow).toContain(
|
||||
'if [[ "$EXPECTED_RELEASE_PROFILE" != "from-validation" && "$release_profile" != "$EXPECTED_RELEASE_PROFILE" ]]; then',
|
||||
);
|
||||
expect(releaseWorkflow).toContain(
|
||||
'echo "release_profile=$release_profile" >> "$GITHUB_OUTPUT"',
|
||||
);
|
||||
expect(releaseWorkflow).toContain(
|
||||
"has failed jobs before the workflow completed: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${run_id}",
|
||||
);
|
||||
expect(releaseWorkflow.lastIndexOf("create_or_update_github_release")).toBeLessThan(
|
||||
releaseWorkflow.indexOf('if [[ -n "${clawhub_pid}" ]] && ! wait "${clawhub_pid}"'),
|
||||
);
|
||||
|
||||
@@ -561,6 +561,13 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
|
||||
expect(fullReleaseWorkflow.jobs.release_checks["timeout-minutes"]).toBe(
|
||||
"${{ inputs.release_profile != 'minimum' && 240 || 60 }}",
|
||||
);
|
||||
const fullReleaseSource = readFileSync(".github/workflows/full-release-validation.yml", "utf8");
|
||||
expect(
|
||||
fullReleaseSource.match(/has failed child jobs before the workflow completed/gu)?.length,
|
||||
).toBeGreaterThanOrEqual(3);
|
||||
expect(fullReleaseSource).toContain(
|
||||
"npm-telegram-beta-e2e.yml has failed child jobs before the workflow completed; cancelling the remaining run.",
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps runtime tool coverage blocking in release checks", () => {
|
||||
|
||||
Reference in New Issue
Block a user