Skip to content
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

schema: Consider using end_time instead of duration #81

Open
spbnick opened this issue Jun 18, 2024 · 0 comments
Open

schema: Consider using end_time instead of duration #81

spbnick opened this issue Jun 18, 2024 · 0 comments

Comments

@spbnick
Copy link
Collaborator

spbnick commented Jun 18, 2024

It's possible that in some cases the start time of a build or test is not known, but the end time is. However these cases cannot be represented in the current schema. Consider replacing the duration field with end_time. This would allow omitting start_time, but still specifying end_time. And vice-versa. This however would require us to validate that start_time <= end_time, which the JSON schema doesn't allow, but which could be implemented in Python, as an extra validation step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant