Conversation
|
Thanks for your pull request, @wilzbach! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
| name: Install gdb | ||
| - run: | ||
| command: ./.circleci/run.sh style_lint | ||
| name: Run code style & linter |
There was a problem hiding this comment.
Currently I get the following:
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
core.exception.OutOfMemoryError@src/core/exception.d(702): Memory allocation failed
----------------
[Inferior 1 (process 2163) exited with code 01]
No stack.
See also: https://circleci.com/gh/wilzbach/phobos/13
Sadly gdb doesn't forward the exit code, it's apparently a well-known bug.
.circleci/config.yml
Outdated
| - checkout | ||
| - run: | ||
| command: cat /proc/meminfo | ||
| name: OS information |
There was a problem hiding this comment.
Can you also try cat /sys/fs/cgroup/memory/memory.limit_in_bytes?
|
@ZombineDev asked me to print |
|
|
I logged in via ssh and added |
|
|
||
| @echo "Check that Ddoc runs without errors" | ||
| $(DMD) $(DFLAGS) -defaultlib= -debuglib= $(LIB) -w -D -Df/dev/null -main -c -o- $$(find etc std -type f -name '*.d') 2>&1 | grep -v "Deprecation:"; test $$? -eq 1 | ||
| $(DMD) $(DFLAGS) -defaultlib= -debuglib= $(LIB) -w -D -Df/dev/null -main -c -o- $$(find etc std -type f -name '*.d') 2>&1 |
There was a problem hiding this comment.
DMD built in debug mode always prints: DMD v2.077.1 DEBUG on startup, hence the fragile grep failed.
|
So I now get the same stack traces as on CircleCi 1.0: |
|
@ZombineDev or others: how about moving forward with this?
|
| build: | ||
| working_directory: ~/phobos | ||
| docker: | ||
| - image: circleci/node:4.8.2 |
There was a problem hiding this comment.
Looking forward to replacing this with our custom image ;)
|
Interesting, indeed we should use our own build images to leverage caching. |
Looks fairly straight-forward so far.
Note that CircleCi 2.0 allows to use custom Docker images.
So for example, we could built the DMD compiler into it and avoid the network issues during it's download.
Also allows this other customization, e.g. sth. like @ZombineDev's PIE-hardened docker images (https://github.com/ZombineDev/dmd-test-suite-docker) to run all testsuites on a PIE-hardened system.