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

run.dlang.io times out when using "all dmd compilers" #767

Open
schveiguy opened this issue Aug 26, 2021 · 3 comments
Open

run.dlang.io times out when using "all dmd compilers" #767

schveiguy opened this issue Aug 26, 2021 · 3 comments

Comments

@schveiguy
Copy link

I've noticed this in the past, but was usually able to rerun and get around it.

Now, I'm retrying and it always says "Server error".

I have a feeling it's timing out, because now there are too many compilers to try. Maybe we should start dropping off earlier ones? Or should the timeout be increased?

The code has to be something more than trivial. This was the code that was breaking it for me:

import std.variant;
import std.stdio;
void main() { Variant v = 5; writeln("hello, world");    }
@ljmf00
Copy link
Member

ljmf00 commented Aug 26, 2021

I've noticed this in the past, but was usually able to rerun and get around it.

Now, I'm retrying and it always says "Server error".

I have a feeling it's timing out, because now there are too many compilers to try. Maybe we should start dropping off earlier ones? Or should the timeout be increased?

The code has to be something more than trivial. This was the code that was breaking it for me:

import std.variant;
import std.stdio;
void main() { Variant v = 5; writeln("hello, world");    }

Maybe a possible solution would be to increase the timeout for this "special compiler" ?

@PetarKirov
Copy link
Member

PetarKirov commented Aug 29, 2021

@schveiguy @ljmf00 I agree we can go both ways (reducing the number of compilers and increasing the timeout). I'd personally prefer to keep the list always growing as I think it's both very useful for historical purposes and also very convenient (sure you can run the same tests locally, but it can take quite a while to setup, compared to time it would take to actually run comparison).

I should check if dreg is run in single-threaded, or MT mode, as that could easily give us 4x speed increase.

@radcapricorn
Copy link

Getting an empty "Server error:" with code from this issue. However, if I change main to

void main(string[] args)
{
    actual = &args[0];
    actual.bug(Param.init, 0, {}, {});
}

it produces expected output.

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

No branches or pull requests

4 participants