Repository navigation
fix: document and test dotenv secrets-file expansion - #93
Conversation
commit: |
|
Review: 1 findings. 🤖 I've done a thorough review of your PR. Expands dotenv references in
|
|
| mean | stddev | min | max | |
|---|---|---|---|---|
| PR | 276.3 ms | 3.5 ms | 271.3 ms | 282.8 ms |
| base | 273.2 ms | 2.4 ms | 268.9 ms | 277.1 ms |
Δ (PR vs base): ↑ +3.1 ms (+1.1%)
Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.
|
LGTM! |
cb0d06f to
3f78ae3
Compare
|
LGTM |
|
LGTM |
|
LGTM |
|
Review: 1 findings. 🤖 I've done a thorough review of your PR. Documents and tests dotenv expansion for secrets files.
|
|
clanker review |
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
|
Review: 2 findings. Documents and tests dotenv expansion for
|
|
💬 Approved with comments — The help text, regenerated metadata, changeset and integration tests are consistent. The one WARNING is a convention issue: the two Findings: 1 warning The decision is advisory: this comment never approves, blocks or requests changes on the pull request. 🔧 Fix with your agentPaste the following into your coding agent to investigate and fix these issues. 📋 Code Quality:
|
Co-authored-by: ask-bonk[bot] <249159057+ask-bonk[bot]@users.noreply.github.com>
|
Review: 1 findings. Posted 1 inline finding on stale generated metadata. |
|
Review: 1 findings. Posted 2 inline suggestions for the metadata sidecar import invariant. |
Explain dotenv
--secrets-fileexpansion in the help and generated metadata forcf deployandcf workers versions create: process environment precedence, literal-dollar escaping, and the requirement to trust files that can read and upload process values. JSON secrets retain their literal values.Add integration coverage for both commands, including empty process overrides, references to earlier file values, Windows case matching, uploading only declared keys, and preserving the process environment. The runtime expansion is provided by released
@cloudflare/[email protected]and@cloudflare/[email protected], already consumed by cf1.0.0-beta.23.Validation with the released dependencies:
pnpm install --frozen-lockfilepnpm checkpnpm --filter cf test— 2,007 passedpnpm --filter @cloudflare/wrangler-tests test— 658 passed