惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
Recent Announcements
Recent Announcements
D
Docker
V
V2EX
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
腾讯CDC
B
Blog
博客园_首页
罗磊的独立博客
D
DataBreaches.Net
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
chore: make ios testflight upload path canonical · opencl...
joshavant · 2026-06-23 · via Recent Commits to openclaw:main
1+

// iOS Fastlane release gate tests keep TestFlight upload on one canonical path.

2+

import { existsSync, readFileSync } from "node:fs";

3+

import path from "node:path";

4+

import { describe, expect, it } from "vitest";

5+6+

const fastfilePath = path.join(process.cwd(), "apps", "ios", "fastlane", "Fastfile");

7+

const packageJsonPath = path.join(process.cwd(), "package.json");

8+

const legacyReleaseScriptPath = path.join(process.cwd(), "scripts", "ios-release.sh");

9+

const uploadScriptPath = path.join(process.cwd(), "scripts", "ios-release-upload.sh");

10+11+

function readFastfile(): string {

12+

return readFileSync(fastfilePath, "utf8");

13+

}

14+15+

function laneBody(source: string, name: string): string {

16+

const startMarker = `lane :${name} do`;

17+

const start = source.indexOf(startMarker);

18+

if (start < 0) {

19+

throw new Error(`missing Fastlane lane ${name}`);

20+

}

21+22+

const rest = source.slice(start + startMarker.length);

23+

const nextLane = rest.search(/\n\s+(?:desc|lane|private_lane) /);

24+

return nextLane < 0 ? rest : rest.slice(0, nextLane);

25+

}

26+27+

describe("iOS Fastlane release upload gates", () => {

28+

it("does not keep the old package release alias", () => {

29+

const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8")) as {

30+

scripts?: Record<string, string>;

31+

};

32+33+

expect(packageJson.scripts).toHaveProperty("ios:release:upload");

34+

expect(packageJson.scripts).not.toHaveProperty("ios:release");

35+

expect(existsSync(legacyReleaseScriptPath)).toBe(false);

36+

});

37+38+

it("routes the package upload wrapper through the guarded Fastlane lane", () => {

39+

const script = readFileSync(uploadScriptPath, "utf8");

40+41+

expect(script).toContain("OPENCLAW_IOS_RELEASE_WRAPPER=1");

42+

expect(script).toContain("run_ios_fastlane ios release_upload");

43+

});

44+45+

it("keeps release_upload as the only Fastlane TestFlight upload implementation", () => {

46+

const fastfile = readFastfile();

47+

const uploadCalls = fastfile.match(/\bupload_to_testflight\s*\(/g) ?? [];

48+49+

expect(uploadCalls).toHaveLength(1);

50+

expect(laneBody(fastfile, "release_upload")).toContain("upload_to_testflight(");

51+

expect(fastfile).not.toMatch(/\n\s+lane :app_store do\b/);

52+

expect(fastfile).not.toContain("Deprecated. Use `pnpm ios:release:upload`.");

53+

});

54+55+

it("rejects direct Fastlane upload before release work", () => {

56+

const fastfile = readFastfile();

57+

const releaseUpload = laneBody(fastfile, "release_upload");

58+59+

expect(releaseUpload).toContain('ENV["OPENCLAW_IOS_RELEASE_WRAPPER"] == "1"');

60+

expect(releaseUpload).toContain("Use `pnpm ios:release:upload`");

61+

expect(releaseUpload.indexOf("UI.user_error!")).toBeLessThan(

62+

releaseUpload.indexOf("prepare_app_store_context"),

63+

);

64+

});

65+66+

it("validates the exported IPA before the sole TestFlight upload call", () => {

67+

const fastfile = readFastfile();

68+

const validationCall = fastfile.indexOf("validate_app_store_ipa!(expected_ipa_path)");

69+

const uploadCall = fastfile.indexOf("upload_to_testflight(");

70+71+

expect(validationCall).toBeGreaterThanOrEqual(0);

72+

expect(uploadCall).toBeGreaterThan(validationCall);

73+

});

74+

});