Repository navigation
Dart regen script: Windows paths for native tools; antd-go unsatisfiedSize table test - #320
Conversation
Git Bash converts MSYS paths for native programs, but not with MSYS_NO_PATHCONV=1. Then protoc cannot find the proto root, and dart cannot find a PUB_CACHE given in MSYS form. Convert PUB_CACHE, the proto root, the proto files and the plugin with cygpath -m, as the script already did for the output dir. Also generate into a temp dir and replace the stubs only after protoc succeeds, so a failed run no longer deletes the committed stubs. Tested on Windows (Git Bash, protoc 34.0, protoc_plugin 22.3.0): - zero drift with and without MSYS_NO_PATHCONV=1, and with PUB_CACHE in MSYS or backslash form - a failing protoc leaves all 23 stubs in place Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The unit check covered only a valid value and an empty one; a malformed size was exercised only through the gRPC mock. Cover a missing, non- numeric or negative size, a satisfiable range, another unit, and surrounding whitespace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Retrospective technical review — provisionalReviewed WithAutonomi/ant-sdk PR #320 at head Result: The available reviewers found no blocking defect. The Windows path changes and the Go table test are reasonable. There is one non-blocking failure-handling gap and one verification gap. Actual panel participationTwo independent role passes ran against the same revision and evidence: correctness/evidence, then adversarial/failure modes. The second pass did not receive the first pass's conclusions.
2/3 models reviewed — provisional; 4/6 requested role reviews completed. DS4 synthesis is not an additional independent vote. There is no full-team consensus claim. Findings1. Non-blocking: replacement is not atomic or safe against every failure.
A separate, deliberately abnormal Unix fixture made fake Follow-up: validate the expected generated files before deletion and add a copy-failure test. If full failure safety is required, use a rollback-safe installation step. Simply moving 2. Verification gap: real Windows behaviour remains author-reported. The path conversions and quoting are consistent with the intended Git Bash/native-tool boundary. However, the supplied CI does not run this script on Windows. The local fixtures use fake Dart/protoc on Unix; they do not verify real A repeatable Windows run with spaces in both the repository path and Go test: Verification
ReconciliationQwen's first pass incorrectly said copy failure occurs before deletion; the source and fixture show the reverse. The adversarial reviews also differed over whether to call the remaining replacement hazard introduced or inherited. The base/head fixture establishes the inherited deletion hazard while preserving the concern about the new copy step. DS4's proposed copy-first ordering was not accepted as an atomic solution. Next step: treat these as provisional technical findings. Retry the missing GLM 5.3 reviews after Hugging Face inference access is restored before calling this a full-team review. |
Fixes two non-blocking findings from the review of #318 (now merged).
Dart regen script on Windows (
antd-dart/tool/generate_proto.sh)The review flagged that the plugin path wasn't converted for native protoc. Testing on Windows showed a wider problem. Git Bash converts MSYS paths (
/c/Users/...) for native programs, butMSYS_NO_PATHCONV=1turns that off, and then:antd/proto: warning: directory does not exist), so converting the plugin path alone doesn't help.dartcan't find aPUB_CACHEgiven in MSYS form.This PR:
PUB_CACHE, the proto root, the proto files and the plugin withcygpath -m, as the script already did for the output dir;The review's other concern was a backslash
PUB_CACHE(C:\...) failing the plugin-fcheck. That doesn't happen: Git Bash's[[ -f ]]accepts it.On Linux and macOS the conversion is a no-op; only the temp dir is new there.
antd-go
unsatisfiedSizeunit testThe unit check covered only
bytes */1234and"". It is now a table that also covers:bytes 0-1/10, another unit, and surrounding whitespace.Testing
MSYS_NO_PATHCONV=1, and withPUB_CACHEin MSYS or backslash form;go test ./...,go vet, gofmt and golangci-lint v1.64.8 are all clean.🤖 Generated with Claude Code