HEL-892: document Krea2 API named inputs without inferred identities
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
E501 Line too long (120 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:29:101
|
||||
|
|
||||
27 | remote = git("ls-remote", "origin", "refs/heads/" + branch).split()[0]
|
||||
28 | assert head == remote and branch == "agent/agent/a64a969a6a44"
|
||||
29 | with urllib.request.urlopen("https://gitea.xbay.cc/api/v1/repos/leefer/aigc-home/pulls/25", timeout=45) as response:
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
30 | pr = json.load(response)
|
||||
31 | assert pr["head"]["sha"] == head and pr["base"]["ref"] == "main" and pr["state"] == "open"
|
||||
|
|
||||
|
||||
E501 Line too long (124 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:36:101
|
||||
|
|
||||
34 | assert sha(REPO / row["path"]) == row["sha256"], row["path"]
|
||||
35 | changed = git("diff", "--name-only", "-z", BASE, head).strip("\0").split("\0")
|
||||
36 | assert set(changed) == {r["path"] for r in index["files"]} | {str((OUT / "file-purpose-sha256.json").relative_to(REPO))}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
37 | files = {n: REPO / n for n in changed}
|
||||
38 | files[PATHS[0]] = REPO / PATHS[0]
|
||||
|
|
||||
|
||||
E501 Line too long (119 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:50:101
|
||||
|
|
||||
48 | sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
49 | sock.bind(("127.0.0.1", port))
|
||||
50 | (target / "complete.patch").write_bytes(subprocess.check_output(["git", "diff", "--binary", BASE, head], cwd=REPO))
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
51 | subprocess.run(["git", "bundle", "create", str(target / "batch165.bundle"), branch, "^" + BASE], cwd=REPO, check=True)
|
||||
52 | verified = subprocess.run(["git", "bundle", "verify", str(target / "batch165.bundle")], cwd=REPO, capture_output=True, check=True)
|
||||
|
|
||||
|
||||
E501 Line too long (122 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:51:101
|
||||
|
|
||||
49 | sock.bind(("127.0.0.1", port))
|
||||
50 | (target / "complete.patch").write_bytes(subprocess.check_output(["git", "diff", "--binary", BASE, head], cwd=REPO))
|
||||
51 | subprocess.run(["git", "bundle", "create", str(target / "batch165.bundle"), branch, "^" + BASE], cwd=REPO, check=True)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
52 | verified = subprocess.run(["git", "bundle", "verify", str(target / "batch165.bundle")], cwd=REPO, capture_output=True, check=True)
|
||||
53 | (target / "bundle-verify.txt").write_bytes(verified.stdout + verified.stderr)
|
||||
|
|
||||
|
||||
E501 Line too long (134 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:52:101
|
||||
|
|
||||
50 | …ess.check_output(["git", "diff", "--binary", BASE, head], cwd=REPO))
|
||||
51 | …target / "batch165.bundle"), branch, "^" + BASE], cwd=REPO, check=True)
|
||||
52 | …rify", str(target / "batch165.bundle")], cwd=REPO, capture_output=True, check=True)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
53 | …fied.stdout + verified.stderr)
|
||||
54 | …remote, branch=branch, pr="https://gitea.xbay.cc/leefer/aigc-home/pulls/25", pr_head=pr["head"]["sha"], pr_base="main", clean=True, p…
|
||||
|
|
||||
|
||||
E501 Line too long (435 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:54:101
|
||||
|
|
||||
52 | …=REPO, capture_output=True, check=True)
|
||||
53 | …
|
||||
54 | …y.cc/leefer/aigc-home/pulls/25", pr_head=pr["head"…自测不等于审核通过", services_stopped=True)
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^…^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
55 | …\n")
|
||||
56 | … "\n")
|
||||
|
|
||||
|
||||
E501 Line too long (101 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:56:101
|
||||
|
|
||||
54 | final = dict(base=BASE, head=head, remote_head=remote, branch=branch, pr="https://gitea.xbay.cc/leefer/aigc-home/pulls/25", pr_hea…
|
||||
55 | (target / "final-head.json").write_text(json.dumps(final, ensure_ascii=False, indent=2) + "\n")
|
||||
56 | (target / "pr-verification.json").write_text(json.dumps(pr, ensure_ascii=False, indent=2) + "\n")
|
||||
| ^
|
||||
57 | for n in ["complete.patch", "batch165.bundle", "bundle-verify.txt", "final-head.json", "pr-verification.json"]:
|
||||
58 | files[n] = target / n
|
||||
|
|
||||
|
||||
E501 Line too long (115 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:57:101
|
||||
|
|
||||
55 | (target / "final-head.json").write_text(json.dumps(final, ensure_ascii=False, indent=2) + "\n")
|
||||
56 | (target / "pr-verification.json").write_text(json.dumps(pr, ensure_ascii=False, indent=2) + "\n")
|
||||
57 | for n in ["complete.patch", "batch165.bundle", "bundle-verify.txt", "final-head.json", "pr-verification.json"]:
|
||||
| ^^^^^^^^^^^^^^^
|
||||
58 | files[n] = target / n
|
||||
59 | for p in (REPO / ".local-evidence").glob("kapi-*push*.txt"):
|
||||
|
|
||||
|
||||
E501 Line too long (221 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:62:97
|
||||
|
|
||||
60 | …
|
||||
61 | …
|
||||
62 | …with("screenshots/") else "本份代码/原件/文档/验证或提交证据;详见file-purpose-sha256.json") for n, p in sorted(files.items())]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
63 | …e=BASE, head=head, files=rows), ensure_ascii=False, indent=2) + "\n")
|
||||
64 | …
|
||||
|
|
||||
|
||||
E501 Line too long (163 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:63:101
|
||||
|
|
||||
61 | …idence/kapi-commit.txt"
|
||||
62 | …urpose="最终截图" if n.startswith("screenshots/") else "本份代码/原件/文档/验证或提交证据;详见file-purpose-sha256.json") for n, p in…
|
||||
63 | …(dict(self_excluded=True, base=BASE, head=head, files=rows), ensure_ascii=False, indent=2) + "\n")
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
64 | …e-sha256.json"
|
||||
65 | …
|
||||
|
|
||||
|
||||
E501 Line too long (102 > 100)
|
||||
--> docs/hel-892/krea-api-document-evidence/package_delivery.py:75:101
|
||||
|
|
||||
73 | assert hashlib.sha256(z.read(n)).hexdigest() == sha(p)
|
||||
74 | (target / "archive-sha256.txt").write_text(sha(archive) + "\n")
|
||||
75 | print("PASS", head, len(files), "members byte/SHA/CRC; ZIP", archive.stat().st_size, sha(archive))
|
||||
| ^^
|
||||
|
||||
Found 11 errors.
|
||||
Reference in New Issue
Block a user