bamaer commented on PR #77484:
URL: https://github.com/apache/airflow/pull/77484#issuecomment-7095908058
Thanks @adiranjan25 for picking this up so fast! I built the branch and the
licence side looks good: `:sdk:test` and `:plugin:test` pass, and the jar and
runtime classpath no longer pull in anything from `com.xenomachina`.
Two things I noticed:
**The new rejection tests don't test the parser.** Every case in
`rejectsInvalidOptions` and `rejectsMalformedArguments` is missing either
`--comm` or `--logs`. So `Server.create` fails with "Missing required argument"
before the address/port/duplicate/unknown checks even run. I removed those
checks from `Args.parse` and the tests still passed. Passing both options in
each case fixes that, e.g.:
```kotlin
arrayOf("--comm", "localhost", "--logs", "localhost:2"),
arrayOf("--comm=localhost:abc", "--logs=localhost:2"),
arrayOf("--comm=localhost:1", "--logs=localhost:2", "--unknown=1"),
```
**A few inputs the old parser accepted now fail:** a repeated option
(kotlin-argparser kept the last value), a trailing `--`, `--comm=:4001`,
`--describe-sources=`, and a `--describe-sources` value starting with `--`. The
coordinator never sends any of these, so I don't expect it to break anything.
Still, it might be worth either keeping the old behaviour or listing it in the
compatibility note.
--
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]