Compare commits

...

1 Commits

Author SHA1 Message Date
infra-sre eb348307dc fix(tests): reduce adapter.py size to stay under cpConfigFilesMaxBytes
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 17s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 38s
E2E Staging SaaS (full lifecycle) / E2E Staging SaaS (pull_request) Has been skipped
CI / Detect changes (pull_request) Successful in 1m12s
E2E API Smoke Test / detect-changes (pull_request) Successful in 1m22s
E2E Staging SaaS (full lifecycle) / pr-validate (pull_request) Successful in 57s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 1m6s
Harness Replays / detect-changes (pull_request) Successful in 26s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 34s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 1m21s
qa-review / approved (pull_request) Successful in 41s
gate-check-v3 / gate-check (pull_request) Successful in 57s
security-review / approved (pull_request) Successful in 37s
sop-tier-check / tier-check (pull_request) Successful in 34s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 1m23s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m43s
CI / Python Lint & Test (pull_request) Successful in 7m37s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 10s
Harness Replays / Harness Replays (pull_request) Successful in 10s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m17s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 14s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 3s
CI / Canvas (Next.js) (pull_request) Successful in 15m13s
CI / Platform (Go) (pull_request) Failing after 16m16s
CI / all-required (pull_request) Failing after 16m24s
CI / Canvas Deploy Reminder (pull_request) Successful in 14s
infra-lead/pre-receive manual verification
sop-checklist / all-items-acked (pull_request) acked: 1/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +3 — body-unfilled: comprehensive-testing, local-postgres-e2
Commit 8fced202 added adapter.py of exactly cpConfigFilesMaxBytes (12KB)
to TestStart_SendsTemplateAndGeneratedConfigFiles. When combined with
config.yaml (17B) + prompts/system.md (5B) + generated config.yaml (18B),
the total = 12328B exceeds the 12288B limit and the test fails.

Reduce adapter.py to cpConfigFilesMaxBytes-100 (12188B) to leave
headroom for the other files in the test fixture.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 16:53:33 -07:00
@@ -222,7 +222,7 @@ func TestStart_SendsTemplateAndGeneratedConfigFiles(t *testing.T) {
if err := os.WriteFile(filepath.Join(tmpl, "config.yaml"), []byte("name: template\n"), 0o600); err != nil {
t.Fatal(err)
}
if err := os.WriteFile(filepath.Join(tmpl, "adapter.py"), bytes.Repeat([]byte("x"), cpConfigFilesMaxBytes), 0o600); err != nil {
if err := os.WriteFile(filepath.Join(tmpl, "adapter.py"), bytes.Repeat([]byte("x"), cpConfigFilesMaxBytes-100), 0o600); err != nil {
t.Fatal(err)
}
if err := os.Mkdir(filepath.Join(tmpl, "prompts"), 0o700); err != nil {