Skip to content

fix(e2e): remove local keyword outside function scope in D10 test#85

Merged
emal-avala merged 1 commit intomainfrom
fix/e2e-d10-local-var
Apr 7, 2026
Merged

fix(e2e): remove local keyword outside function scope in D10 test#85
emal-avala merged 1 commit intomainfrom
fix/e2e-d10-local-var

Conversation

@emal-avala
Copy link
Copy Markdown
Member

Summary

One-line fix for the release E2E test failure at https://github.com/avala-ai/agent-code/actions/runs/24055333562/job/70160116608

Root cause: local d10_passed=false on line 569 of scripts/e2e-tests.sh is inside an else block, not a function. Bash rejects local outside functions, which causes:

  1. local: can only be used in a function error
  2. d10_passed: unbound variable on line 600 (because the declaration failed and set -u is active)

Fix: local d10_passed=falsed10_passed=false

Test plan

  • bash -n scripts/e2e-tests.sh — syntax check passes
  • Release E2E workflow passes after merge

🤖 Generated with Claude Code

`local` is only valid inside bash functions. Using it in the top-level
`else` block caused two cascading failures:
1. `local: can only be used in a function` (line 569)
2. `d10_passed: unbound variable` (line 600, because the local
   declaration failed silently in some shells but set -u catches it)

Fix: use plain variable assignment instead of `local`.
@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.

@emal-avala emal-avala merged commit e84292e into main Apr 7, 2026
13 of 14 checks passed
@emal-avala emal-avala deleted the fix/e2e-d10-local-var branch April 7, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant