2 Commits
Author SHA1 Message Date
kevinveenbirkenbachandClaude Opus 5.5 052365e9eb test(web-app-openproject): quote the scratch path and require an unconditional initializer write
Addresses the two CodeRabbit findings on #2147:
- The scratch directory reaches sh -c as $0 and is quoted at the redirect, so a TMPDIR containing a space no longer sends the write to another path.
- A RUN instruction that writes an initializer must be a plain && chain. A || or ; in it fails the check, because the build could then succeed without the write. A new test appends || true and ; true.

🎯 Fix: 93 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 92
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:26:04 +00:00
kevinveenbirkenbachandClaude Opus 5.5 1f76c92df5 fix(web-app-openproject): load structure.sql in one transaction so a cut seeder can retry
A swarm gossip flap reset the seeder's postgres connection at structure.sql:454 (run 44198831443, OpenProject#0). psql loads structure.sql statement by statement with each statement committed, so the half-built schema stayed behind while schema_migrations was still missing, and every retry failed on collation "versions_name" already exists until the deploy gave up. The image now writes a Rails initializer, inside the existing precompile step, that sets structure_load_flags to --single-transaction: an interrupted load rolls back completely and the next attempt starts from an empty database. A unit test runs that step and checks the initializer it writes.

Security 63 % with operator approval: DS-0002 (no USER), DL4006 (Dockerfile:16, grape step without pipefail) and DS-0026 (no HEALTHCHECK) are already in main's Dockerfile; this change adds no finding.

🎯 Fix: 85 %
💥 Break: 5 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 63 %
🏆 Score: 51
🚦 Gate: ⛔ fix 85 % < 90; security 63 % < 100: ask the operator before the commit

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 10:56:44 +00:00