-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Attempt to detect faulty compiler/language population #6610
Conversation
Goal is to prevent consistent 404's like this:
|
Can be simulated by setting With health-check change:
Of course if |
@@ -538,10 538,16 @@ async function main() { | |||
if (opts.prediscovered) { | |||
const prediscoveredCompilersJson = await fs.readFile(opts.prediscovered, 'utf8'); | |||
initialCompilers = JSON.parse(prediscoveredCompilersJson); | |||
await compilerFinder.loadPrediscovered(initialCompilers); | |||
const prediscResult = await compilerFinder.loadPrediscovered(initialCompilers); | |||
if (prediscResult.length === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty initialCompilers will not cause compilation errors if you call the /compile endpoint, but it does cause en empty UI without languages and compilers which is not very user friendly
let's give this a shot |
This is now live This is a workaround/fix for #6689 |
Would maybe fix super rare issue which causes 404's when compiling and when CE failed to detect the error at startup.