Skip to content

fix(api/skills): repair test build after #5455 (write_service_account_env removed)#5460

Merged
houko merged 2 commits into
mainfrom
fix/recover-webhook-sidecar-fallout
May 21, 2026
Merged

fix(api/skills): repair test build after #5455 (write_service_account_env removed)#5460
houko merged 2 commits into
mainfrom
fix/recover-webhook-sidecar-fallout

Conversation

@houko

@houko houko commented May 21, 2026

Copy link
Copy Markdown
Contributor

Why

#5455 (webhook → sidecar) landed on main with a broken test build: it folded write_service_account_env into the generic write_secret_env (same newline-rejection contract) but left routes/skills.rs's test calling the removed name — error[E0425]: cannot find function write_service_account_env in the librefang-api lib test. This re-broke main immediately after #5456 recovered it.

Fix

Point the test at write_secret_env and rename it write_secret_env_value_with_newline_is_rejected. Same assertions (newline → InvalidInput, message mentions "newline", no file written) — write_secret_env (skills.rs:5431) enforces exactly that.

Verified: cargo check --workspace --all-targets clean; the test passes.

Note

main keeps breaking because the channel-sidecar PRs are merging while their build/test checks are still pending — branch protection isn't gating on them. Worth requiring the Test / coverage checks before merge so this stops recurring.

…count_env

#5455 (webhook→sidecar) folded write_service_account_env into the generic
write_secret_env (same newline-rejection contract) but left this test calling
the removed name, breaking the librefang-api test build (E0425). Point the test
at write_secret_env and rename it to match.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@houko
houko merged commit 5c0d50b into main May 21, 2026
15 checks passed
@houko
houko deleted the fix/recover-webhook-sidecar-fallout branch May 21, 2026 03:22
@github-actions github-actions Bot added the area/docs Documentation and guides label May 21, 2026
@github-actions github-actions Bot added the size/XS < 10 lines changed label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation and guides size/XS < 10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant