-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copr list-packages
report build status incorrectly
#3564
Comments
hi, copr list-package has --with-latest-build and --with-latest-succeeded-build. This way you can display these
|
The Otherwise @nikromen is right, you need to use the corresponding
The |
I think that in JSON output, it's unexpected to have fields with bogus data (null). JSON is extensible, so I would expect the fields to either be present with the real values or not present.
Yeah, I messed up the script to start the builds. This is entirely on my side, no fault of copr. |
I am not against this if we consider this to be a bug. Just a warning that it would break API backward compatibility. People may have something like this in their scripts: from copr.v3 import Client
client = Client.create_from_config_file()
package = client.package_proxy.get("@copr", "copr-dev", "copr-cli")
if package.builds["latest_succeeded"]:
... Which would traceback now and they would need to use |
I have a copr with a bunch of builds. Some succeeded, some failed, and some were started with a bad package name (subpackage not the main package).
list-packages
shows all builds as failed:list-builds
shows 416 builds with "None" as the package name, and 613 builds with some package name. One package was built twice (abrt
). But no matter which way you count, the number 664 doesn't seem to match any of that.Am I holding it wrong?
The text was updated successfully, but these errors were encountered: