-
Notifications
You must be signed in to change notification settings - Fork 71
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
tests/extra/tc_ufcs_all_kinds: support gdc #774
base: master
Are you sure you want to change the base?
Conversation
Remove the usage of `-run` which isn't supported by gdc and only pass `-verrors=0` to dmd and ldc2 since gdc doesn't support the flag and, by default, all errors are printed. Change the format in which errors are printed to keep it consistent across all the three major compilers (a style that they all support is the gnu style) and make the matching code in generate_tests.d more readable by using a regex. Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
DCD BUILD FAILED Build statistics: statistics (-before, +after)
client size=1052480 bin/dcd-client
server size=3102008 bin/dcd-server
-rough build time=61s
+rough build time=60s
-DCD run_tests.sh Elapsed (wall clock) time (h:mm:ss or m:ss): 0:07.89
-DCD run_tests.sh Maximum resident set size (kbytes): 39568
+DCD run_tests.sh Elapsed (wall clock) time (h:mm:ss or m:ss): 0:08.69
+DCD run_tests.sh Maximum resident set size (kbytes): 35700
short requests: (240x)
- min request time = 0.010ms
- 10th percentile = 0.135ms
- median time = 0.373ms
- 90th percentile = 0.613ms
- max request time = 1.562ms
+ min request time = 0.012ms
+ 10th percentile = 0.146ms
+ median time = 0.363ms
+ 90th percentile = 0.633ms
+ max request time = 1.448ms
long requests over 10ms: (51x)
- min request time = 12.956ms
- 10th percentile = 13.621ms
- median time = 15.001ms
- 90th percentile = 16.259ms
- max request time = 21.103ms
+ min request time = 12.576ms
+ 10th percentile = 13.996ms
+ median time = 15.354ms
+ 90th percentile = 16.602ms
+ max request time = 22.645ms
top 5 GC sources in server: Full build output
|
can you add the test to github actions? |
It would be my first time touching CI but I can certainly try. It just needs to be one compilation + tests with gdc or do you want as many as for dmd and ldc? |
you can look at D-Scanner to see how we use GDC there: https://github.com/dlang-community/D-Scanner/blob/master/.github/workflows/default.yml just the latest GDC version on supported OSes (probably only linux) is enough as compiler. Keep the min/max dub dependency version check though |
Gotcha, looks understandable enough. I won't be able to do it today or tomorrow however due to time constraints so, as long as you don't mind, it will take me a while before the change. |
it'd probably be easier to just add it to setup-dlang than having another special case here |
Don't mind the commit, just pushed to the wrong branch. |
Remove the usage of
-run
which isn't supported by gdc and only pass-verrors=0
to dmd and ldc2 since gdc doesn't support the flag and, by default, all errors are printed.Change the format in which errors are printed to keep it consistent across all the three major compilers (a style that they all support is the gnu style) and make the matching code in generate_tests.d more readable by using a regex.