You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ossie.apache.org by "kayemkim (via GitHub)" <gi...@apache.org> on 2026/09/14 00:33:09 UTC
[PR] fix(cli): exit non-zero from unimplemented commands [ossie]
kayemkim opened a new pull request, #390:
URL: https://github.com/apache/ossie/pull/390
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
## Summary
On main, `ossie validate` prints `not yet implemented` and exits 0, and so do `convert`, `plugin install` and `plugin remove`:
```
$ ossie validate model.yaml; echo $?
not yet implemented
0
```
In a CI step like `ossie validate model.yaml && deploy` that is indistinguishable from a pass. #266 reports it for `validate`, and #345 lists all four stubs in its closing note as a likely separate issue.
Each stub now returns an error naming the command, which cobra prints on stderr and `main` turns into exit 1:
```
$ ossie validate model.yaml; echo $?
Error: ossie validate is not yet implemented
1
```
Usage is silenced on this path since the arguments were not the problem; `--help` and `-h` still print help and exit 0. The test drives the four invocations through `rootCmd.Execute()`, which is what `main` maps to the exit code, and fails on current main.
This overlaps with #349 in two places: the `runPluginInstall` body, and three cases in its `TestArgumentValidation` (`plugin install foo`, `plugin install --all`, `convert --from x --input y`) that expect no error and would now get the not-implemented one. Both are mine, so whichever lands second I will rebase, flipping those three to expect the error.
## Related Issues
Addresses the first item of #266 and the closing note in #345.
## Checklist
### Specification
- [ ] Spec changes are included in `core-spec/` and follow the existing structure
- [ ] Spec changes have been discussed on the mailing list or in a linked issue
- [ ] Breaking changes to the spec are clearly called out in the summary
### Ontology
- [ ] Ontology changes in `ontology/` are consistent with spec changes
- [ ] New or modified terms are defined and documented
### Converters
- [ ] Converter logic in `converters/` is updated to reflect spec or ontology changes
- [ ] New converters include tests under the converter's test directory
### Validation
- [ ] Validation rules in `validation/` are updated if the spec changed
- [ ] New validation cases are covered by tests
### Documentation
- [ ] `docs/` is updated to reflect any user-facing changes
- [ ] New features or behaviors are documented with examples where appropriate
- [ ] `CONTRIBUTING.md` is updated if the contribution process changed
### Examples
- [ ] `examples/` are added or updated for any new spec constructs or converter support
### Tests
- [x] All existing tests pass (`pytest` / CI green)
- [x] New functionality is covered by tests
### Compliance
- [x] ASF license headers are present on all new source files
- [x] No third-party dependencies are added without PMC/IPMC approval
--
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: issues-unsubscribe@ossie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(cli): exit non-zero from unimplemented commands [ossie]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre commented on PR #390:
URL: https://github.com/apache/ossie/pull/390#issuecomment-5816173889
@kayemkim I'm doing the review.
--
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: issues-unsubscribe@ossie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(cli): exit non-zero from unimplemented commands [ossie]
Posted by "kayemkim (via GitHub)" <gi...@apache.org>.
kayemkim commented on PR #390:
URL: https://github.com/apache/ossie/pull/390#issuecomment-5816158537
@khush-bhatia friendly ping, when you get a chance. The CLI CI run on this head is still waiting for workflow approval, which is why it never went green. I've held off rebasing so your review stays in place.
--
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: issues-unsubscribe@ossie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(cli): exit non-zero from unimplemented commands [ossie]
Posted by "jbonofre (via GitHub)" <gi...@apache.org>.
jbonofre merged PR #390:
URL: https://github.com/apache/ossie/pull/390
--
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: issues-unsubscribe@ossie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org