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

improve the error messages when invalid declarative jobsets are defined #644

Merged

Conversation

disassembler
Copy link
Member

(cherry picked from commit 7568b89)

This improves error messages when declarative jobsets are used.

};
if ($@) {
print STDERR "ERROR: failed to process declarative jobset ", $project->name, ":${jobsetName}, ", $@, "\n";
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old behavior caused the exception from updateDeclarativeJobset to percolate up, and this one prints a warning and swallows it. Is this an intended behavior change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we wanted to preserve the behavior (I sort of suspect, cautiously, that we do), we'd add:

die $@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was a declarative jobset, that has invalid parameters on it, and because of the old behavior, one jobset being invalid stopped the entire project from updating

this new behavior makes it capable of updating other jobsets when some are invalid, so the entire project doesnt grind to a total halt

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.

None yet

3 participants