mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:40:44 +00:00
ci: keep release package metadata
This commit is contained in:
@@ -303,7 +303,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: release-package-under-test
|
||||
path: .artifacts/docker-e2e-package/openclaw-current.tgz
|
||||
path: |
|
||||
.artifacts/docker-e2e-package/openclaw-current.tgz
|
||||
.artifacts/docker-e2e-package/package-candidate.json
|
||||
retention-days: 14
|
||||
if-no-files-found: error
|
||||
|
||||
|
||||
@@ -163,6 +163,22 @@ describe("gateway codex harness live helpers", () => {
|
||||
expect(isExpectedCodexModelsCommandText(text)).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts the singular Codex agent model list from the live harness", () => {
|
||||
const text = [
|
||||
"Available Codex agent model:",
|
||||
"",
|
||||
"- `dev`: `openai/gpt-5.5`",
|
||||
"- Runtime: `codex`",
|
||||
"- Fallback: `none`",
|
||||
"- Configured override: `false`",
|
||||
].join("\n");
|
||||
|
||||
expect(
|
||||
EXPECTED_CODEX_MODELS_COMMAND_TEXT.some((expectedText) => text.includes(expectedText)),
|
||||
).toBe(true);
|
||||
expect(isExpectedCodexModelsCommandText(text)).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts sandbox namespace failures with current-session model fallback", () => {
|
||||
const text = [
|
||||
"I can’t enumerate `/codex models` from this sandbox because the local `codex` CLI fails to start here with a user-namespace restriction (`bwrap: No permissions to create a new namespace`).",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export const EXPECTED_CODEX_MODELS_COMMAND_TEXT = [
|
||||
"Codex models:",
|
||||
"Available Codex models",
|
||||
"Available Codex agent model",
|
||||
"Available Codex agent models",
|
||||
"Available models:",
|
||||
"Available models, local cache:",
|
||||
@@ -194,6 +195,7 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
|
||||
const mentionsVisibleOptions =
|
||||
normalized.includes("visible options in this session:") ||
|
||||
normalized.includes("visible options:") ||
|
||||
normalized.includes("available codex agent model:") ||
|
||||
normalized.includes("available codex agent models:") ||
|
||||
normalized.includes("available model overrides listed in this session:") ||
|
||||
normalized.includes("available model overrides shown in this session:") ||
|
||||
@@ -216,7 +218,8 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
|
||||
normalized.includes("available agent ids in this session:") &&
|
||||
(text.includes("`openai/") || text.includes("`codex/"));
|
||||
const isCodexAgentModelSummary =
|
||||
normalized.includes("available codex agent models:") &&
|
||||
(normalized.includes("available codex agent model:") ||
|
||||
normalized.includes("available codex agent models:")) &&
|
||||
(text.includes("`openai/") || text.includes("`codex/"));
|
||||
const isAvailableHereModelSummary =
|
||||
normalized.includes("available here:") &&
|
||||
|
||||
@@ -458,6 +458,7 @@ describe("package artifact reuse", () => {
|
||||
expect(workflow).toContain("include_release_path_suites: true");
|
||||
expect(workflow).toContain("uses: ./.github/workflows/package-acceptance.yml");
|
||||
expect(workflow).toContain("source: artifact");
|
||||
expect(workflow).toContain(".artifacts/docker-e2e-package/package-candidate.json");
|
||||
expect(workflow).toContain(
|
||||
"artifact_name: ${{ needs.prepare_release_package.outputs.artifact_name }}",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user