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

fix: improve missing job parameter error for summary command #44

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

ddneilson
Copy link
Contributor

What was the problem/requirement? (What/Why)

The error message that one gets when using the summary command on a job template that has job parameters with no default value is a tad confusing. It looks like:

ERROR generating Job: Parameters can't be used with Template: Values missing for required job parameters: NumAnimationFrames, OutputDirectory, RenderScript

The "Parameters can't be used with Template" part is leading to confusion.

What was the solution? (How)

Remove the problematic phase from the error. The error comes from trying to preprocess_job_parameters(), and that function already has decent error messaging.

What is the impact of this change?

An error message that is more actionable.

How was this change tested?

Just running the openjd summary command locally.

Was this change documented?

N/A

Is this a breaking change?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Problem:

The error message that one gets when using the summary command on
a job template that has job parameters with no default value is a tad
confusing. It looks like:

```
ERROR generating Job: Parameters can't be used with Template: Values missing for required job parameters: NumAnimationFrames, OutputDirectory, RenderScript
```

The "Parameters can't be used with Template" part is leading to
confusion.

Solution:

Remove the problematic phase from the error. The error comes from trying
to preprocess_job_parameters(), and that function already has decent
error messaging.

Signed-off-by: Daniel Neilson <[email protected]>
@ddneilson ddneilson requested a review from a team as a code owner February 12, 2024 16:37
@ddneilson ddneilson merged commit 975863a into mainline Feb 12, 2024
15 checks passed
@ddneilson ddneilson deleted the ddneilson/summary_error_msg branch February 12, 2024 17:02
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

Successfully merging this pull request may close these issues.

4 participants