-
Notifications
You must be signed in to change notification settings - Fork 39
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
[BUG] Handle unsupported runtimes for platform and fallback to default #1420
Comments
This is more complicated. The tools would actually be wrong if the output reports that a photon eventlog "SPARK". So, I don't agree with that behavior because the field is supposed to be a raw output that should not change by the user's input. In Scala, the platform argument was used to decide on which speedFactor file to load. The other side of the story is the Python wrapper. We needed the platform argument basically because the python was using the CSP sdk. |
That is an interesting point. Alternative Behaviour:
|
A couple points...
|
|
Describe the bug
In #1413, we added functionality to store the runtime type (SPARK, SPARK_RAPID, PHOTON) for each application by parsing event logs.
However, users might provide an event log with a runtime type that is unsupported by the specified platform. For example, a user could provide a
photon
event log with the--platform onprem
, which may not support it.Current Result
For the above scenario, we would generate the runtime as
PHOTON
.Expected Outcome
We should fallback to the default runtime for the given platform i.e.
SPARK
foronprem
.Proposed Solution
We need to maintain a list of supported runtimes for each platform. If the parsed runtime is unsupported, we should:
Since the runtime is calculated in the Scala code, decision to fall back to the default runtime should also be made in the Scala code. This will ensure consistent usage by the downstream Python CLI and QualX.
The text was updated successfully, but these errors were encountered: