-
Notifications
You must be signed in to change notification settings - Fork 102
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
broken examples #110
Comments
One comment about what you stated above: examples/video-short.json is not broken but must be used with workgen script which ensure that each key will be unique. Please read the tutorial.txt : Even if the json protocol is used in rt-app, workgen enables some freedom
|
I realized that after opening the issue but I left it open as the file extension is ".json", which is misleading as:
Maybe just a rename into something like ".workgen-json" or ".json-like" would be enough to avoid the confusion and the screams from text editors attempting syntax highlight on these files. Alternatively, it looks like they could be converted to actual JSON. After a quick look at workgen sources, it's not unlikely that it can consume actual JSON directly, so the base example would be usable for both:
|
"examples/video-short.json" is broken in two ways:
Phases like this one:
are parsed as containing 6 events: duplicated keys are handled by json-c this way:
This means that the first 2 events will be "suspend" and then "run 135" (135 being the value of the last run). This can be easily observed by running
rt-app -l100 video-short.json
to get the details of what rt-app is effectively parsing.This pull request would allow describing such configuration by using an array of events rather than directly have the keys in the phase body: #108
The text was updated successfully, but these errors were encountered: