Skip to content

Commit 32496f2

Browse files
committed
fix(ci): Add missing ZPMOD_STAGE_MODULE_DIR environment variable to Docker containers
Resolves CI failure in workflow run 48420659200 where zpmod_load helper function could not find the staged module due to missing environment variable. Problem: - CMake sets ZPMOD_STAGE_MODULE_DIR via test ENVIRONMENT property - Docker containers run tests via 'ctest' but don't inherit CMake environment - load_zpmod() function requires ZPMOD_STAGE_MODULE_DIR to prepend staging directory to module_path for module loading Solution: - Added ZPMOD_STAGE_MODULE_DIR=/workspace/build-cmake/stage/lib/zsh/site-modules to all test container environments in docker-compose.yml - Updated test-minimal, test-full-dev, and test-smoke services Verification: - All 28 tests now pass in minimal environment (0.70s total) - All 28 tests now pass in full-dev environment (0.70s total) - Smoke test passes independently (0.04s total) This completes the CI pipeline fixes started in previous commits.
1 parent 8135232 commit 32496f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
- ../build-results:/workspace/build-results
1010
environment:
1111
- ZPMOD_TEST_ENV=minimal
12+
- ZPMOD_STAGE_MODULE_DIR=/workspace/build-cmake/stage/lib/zsh/site-modules
1213
- CTEST_OUTPUT_ON_FAILURE=1
1314
command:
1415
- "sh"
@@ -26,6 +27,7 @@ services:
2627
- ../build-results:/workspace/build-results
2728
environment:
2829
- ZPMOD_TEST_ENV=full-dev
30+
- ZPMOD_STAGE_MODULE_DIR=/workspace/build-cmake/stage/lib/zsh/site-modules
2931
- CTEST_OUTPUT_ON_FAILURE=1
3032
command:
3133
- "sh"
@@ -42,6 +44,7 @@ services:
4244
command: ["ctest", "--test-dir", "build-cmake", "-R", "zpmod_smoke", "--output-on-failure"]
4345
environment:
4446
- ZPMOD_TEST_ENV=smoke
47+
- ZPMOD_STAGE_MODULE_DIR=/workspace/build-cmake/stage/lib/zsh/site-modules
4548
- CTEST_OUTPUT_ON_FAILURE=1
4649

4750
# Build validation (check if source.c is properly included/excluded)

0 commit comments

Comments
 (0)