Commit aa3deee
fix(docker): Update Dockerfiles and workflows for Poetry root migration
Fixes #502 - Update all Docker and CI/CD references after moving Poetry
config from backend/ to project root (Issue #501).
Changes:
1. **Dockerfiles** (backend/Dockerfile.backend, Dockerfile.codeengine):
- Add POETRY_ROOT_MIGRATION cache-bust ARG to both stages
- Update COPY commands to reference pyproject.toml and poetry.lock from project root
- Move poetry.lock copy alongside pyproject.toml for consistency
- Add explanatory comments about Issue #501 migration
2. **GitHub Actions Workflows**:
- Update 05-ci.yml: Fix poetry cache key to use 'poetry.lock' instead of 'backend/poetry.lock'
- Update 03-build-secure.yml: Change backend context from 'backend' to '.' for correct file resolution
3. **PyTorch Version Update**:
- Upgrade torch from 2.5.0+cpu to 2.6.0+cpu
- Upgrade torchvision from 0.20.0+cpu to 0.21.0+cpu
- Reason: 2.5.0+cpu not available for ARM64 architecture
- New versions are compatible with both ARM64 and x86_64
4. **Secret Management**:
- Add pragma: allowlist secret comments to test secrets in 05-ci.yml
- Prevents false positives in detect-secrets pre-commit hook
Impact:
- Fixes failing CI/CD test: TestMakefileTargetsDirect.test_make_build_backend_minimal
- Docker builds now correctly find pyproject.toml and poetry.lock at project root
- Maintains compatibility with both local development (ARM64) and CI (x86_64)
- GitHub Actions workflows correctly cache Poetry dependencies
Testing:
- Docker build context validated
- All references to backend/pyproject.toml and backend/poetry.lock removed
- Cache keys updated to match new file locations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f74079a commit aa3deee
File tree
4 files changed
+31
-14
lines changed- .github/workflows
- backend
4 files changed
+31
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | | - | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | | - | |
40 | | - | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
73 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
74 | 86 | | |
75 | 87 | | |
76 | 88 | | |
77 | 89 | | |
78 | 90 | | |
79 | 91 | | |
80 | | - | |
81 | 92 | | |
82 | 93 | | |
83 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
84 | | - | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
| |||
0 commit comments