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

Disable the judgehost when default system commands fail #2809

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

vmcj
Copy link
Member

@vmcj vmcj commented Nov 20, 2024

All of those actions are default system command like creating or cleaning up needed files/directories. Those should never fail so if they do we can't really trust this judgehost anymore until we inspected the host.

Leftover is the disabling of debug_scripts when we can't run those as we don't have a dependant entity like for languages/problems which we can disable in its place. The closest thing would be the default_debug_script key in the config which is a bit brittle. A suggestion is to either store this as a fact with the executable or put in the work to remove this as the default option in the config.

Also swapped one function to the non-internal function which handles the disabling already.

This is part of #2745 but as that PR handles 3 semi-unrelated fixme's it's better to keep the discussion separate.

@vmcj vmcj requested a review from meisterT November 20, 2024 07:23
@vmcj vmcj force-pushed the disable_scripts_judgedaemon_fixme branch from 032e199 to 640ddd5 Compare November 20, 2024 07:31
All of those actions are default system command like creating or cleaning up needed files/directories.
Those should never fail so if they do we can't really trust this judgehost anymore until we inspected the host.

Leftover is the disabling of debug_scripts when we can't run those as we don't have a dependant entity like for languages/problems
which we can disable in its place. The closest thing would be the `default_debug_script` key in the config which is a bit brittle.
A suggestion is to either store this as a fact with the executable or put in the work to remove this as the default option in the config.

Also swapped one function to the non-internal function which handles the disabling already.
@vmcj vmcj force-pushed the disable_scripts_judgedaemon_fixme branch from 640ddd5 to cfc74dc Compare November 22, 2024 13:42
@vmcj vmcj enabled auto-merge November 22, 2024 13:43
@vmcj vmcj added this pull request to the merge queue Nov 22, 2024
Merged via the queue into DOMjudge:main with commit 1885c3f Nov 22, 2024
28 checks passed
@vmcj vmcj deleted the disable_scripts_judgedaemon_fixme branch November 22, 2024 14:36
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.

2 participants