Yicong-Huang opened a new pull request, #5992:
URL: https://github.com/apache/texera/pull/5992
### What changes were proposed in this PR?
`bin/local-dev.sh auto` / `up` silently skipped every JVM service when
`target/universal/` had two zips (e.g. a leftover `<svc>-1.2.0-incubating.zip`
next to the fresh `<svc>-1.3.0-incubating-SNAPSHOT.zip`):
```
⚠ config-service: config-service/target/universal/config-service-*.zip not
produced — skipping
✓ auto bounce done: 0 rebuilt, 6 bounced
```
Stamps never updated, dirty indicator never cleared, and the auto pass
stopped previously-running services without relaunching them.
**Root cause.** Both unzip call sites used `unzip -oq ${zip_glob} -d
"${dest}"` with the glob unquoted. The shell expanded `<svc>-*.zip` to two
filenames; `unzip` read the second as a member to extract from the first
archive (`unzip [archive] [members…]`), returned exit 11, and the script logged
"not produced":
```
$ unzip -oq config-service/target/universal/config-service-*.zip
caution: filename not matched: ...-1.3.0-incubating-SNAPSHOT.zip
$ echo $?
11
```
**Fix.** Pick the newest matching zip via `ls -t <glob> | head -1` and feed
unzip a single file. Both `build_all` (line 1718) and `cmd_auto` (line 2128)
updated identically.
### Any related issues, documentation, discussions?
Closes #5991.
### How was this PR tested?
Manual repro on a main checkout with both `<svc>-1.2.0-incubating.zip` and
`<svc>-1.3.0-incubating-SNAPSHOT.zip` present in every service's
`target/universal/`:
* Before: `./bin/local-dev.sh auto` → `0 rebuilt, 6 bounced`, every JVM
service ended `stopped`, dirty indicator stayed.
* After: same checkout, same dual-zip state → `6 rebuilt, 0 bounced`, all 6
stamps refreshed to current source hash, dirty cleared.
Bash 3.2 syntax-checked (`bash -n bin/local-dev.sh`). No new external
commands — `ls -t` and `head -1` are POSIX-portable and already used elsewhere
in the script.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Anthropic, Claude Opus 4.7).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]