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

[CI]: SourceHut seems broken #5756

Closed
kubkon opened this issue Jun 30, 2020 · 3 comments
Closed

[CI]: SourceHut seems broken #5756

kubkon opened this issue Jun 30, 2020 · 3 comments
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@kubkon
Copy link
Member

kubkon commented Jun 30, 2020

See #5755, #5754.

@watzon
Copy link
Contributor

watzon commented Jul 1, 2020

It does indeed. Something about Error: Child killed.

@andrewrk andrewrk added the bug Observed behavior contradicts documented or intended behavior label Jul 1, 2020
@andrewrk andrewrk added this to the 0.7.0 milestone Jul 1, 2020
@andrewrk andrewrk pinned this issue Jul 1, 2020
@andrewrk
Copy link
Member

andrewrk commented Jul 1, 2020

At first I thought it might be using too much memory and getting OOM killed. But I just checked:

$(which time) -v ./zig0 build-lib ../src-self-hosted/stage2.zig -lc --bundle-compiler-rt -fPIC -target x86_64-freebsd
	Maximum resident set size (kbytes): 1650772

That's 1.6 GiB to build, which should be fine. Also, upon closer inspection, the command it is failing on is

:: argv: /usr/home/build/zig/build/zig build --override-lib-dir /usr/home/build/zig/lib -Dlib-files-only --prefix /usr/home/build/zig/build/release -Dconfig_h=/usr/home/build/zig/build/config.h install

which is when it is installing the library files. The weird thing is I just ssh'd in and ran the command again and this time it succeeded. So I haven't been able to reproduce the issue yet.

@andrewrk andrewrk unpinned this issue Jul 1, 2020
@andrewrk
Copy link
Member

andrewrk commented Jul 1, 2020

Sorry for the issues folks. If you want your PRs to get green checks, my suggestion is to rebase against master.

What happened is that the freebsd CI has been building the self-hosted compiler all this time, unintentionally. I've been doing work on the self-hosted compiler. There is more code to compile now, which slowly has been adding more memory requirements for building self-hosted. Eventually, it was too much and source hut didn't give us enough ram to do it. So now the ci only builds the self-hosted compiler for the other CI systems, not sourcehut.

The issue for reducing memory requirements of stage1 is #471. It's going to get worse before it gets better, but at some point we'll have self-hosted, which is extremely memory efficient, and we'll be able to use that to fix stage1 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

3 participants