You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bin/local-dev.sh up / auto: sbt build precedes infra_up, jOOQ codegen fails before postgres is ready #6007
bin/local-dev.sh up runs sbt dist before bringing up Docker infra. sbt triggers common/dao's jooqGenerate sourceGenerator, which calls org.jooq.codegen.GenerationTool against the configured JDBC URL. PostgreSQL hasn't been started yet, so the catch block in common/dao/build.sbt:99-104 logs Continuing compilation with existing generated files... and returns Seq.empty. But common/dao/src/main/scala/org/apache/texera/dao/jooq/generated/ is not git-tracked, so a fresh checkout has nothing to fall back on; the downstream Scala compile then fails on missing Tables / Keys / …/tables/* references.
cmd_auto (L2000) has the same hazard: a user who downs the stack and then runs auto triggers sbt dist (L2061) with no Docker infra running.
Before: sbt dist (jooq codegen, postgres down) -> compile failure (Tables not found)
After: docker up postgres -> apply schema -> sbt dist (jooq codegen ok) -> rest of stack
How to reproduce?
Fresh clone, or docker compose -p texera-local-dev down -v && rm -rf common/dao/src/main/scala/org/apache/texera/dao/jooq/generated/
bin/local-dev.sh up
Tail ${TEXERA_LOCAL_DEV_DIR:-/tmp/texera-local-dev}/logs/sbt-dist.log: jOOQ generation failed (Connection refused); then not found: value FEEDBACK / not a member of org.apache.texera.dao.jooq.generated.Tables.
Version/Branch
1.3.0-incubating-SNAPSHOT (main)
Commit Hash (Optional)
No response
What browsers are you seeing the problem on?
No response
Relevant log output
```shell
JOOQ code generation failed: Connection refused (Connection refused)
Continuing compilation with existing generated files...
...
[error] value FEEDBACK is not a member of org.apache.texera.dao.jooq.generated.Tables
```
Activity
fix(infra): start postgres before sbt build in local-dev up/auto (apa…
docs(local-dev): fix stale comment claiming infra is unmanaged (apach…
docs(local-dev): fix stale comment claiming infra is unmanaged (apach…
refactor(local-dev): unify the CLI surface for agent use (apache#6138)