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

Remove .stack-work from circleci cache #2044

Merged
merged 6 commits into from Jul 29, 2021

Conversation

jneira
Copy link
Member

@jneira jneira commented Jul 27, 2021

@jneira jneira requested a review from pepeiborra July 27, 2021 21:14
@isovector
Copy link
Collaborator

Thanks for tackling this, @jneira !

@pepeiborra pepeiborra added the merge me Label to trigger pull request merge label Jul 27, 2021
@jneira jneira mentioned this pull request Jul 28, 2021
6 tasks
@jneira
Copy link
Member Author

jneira commented Jul 28, 2021

hmm there are linker errors restoring only .stack

ghcide                           > Linking .stack-work/dist/x86_64-linux/Cabal-3.2.0.0/build/ghcide/ghcide ...
ghcide                           > /root/.stack/snapshots/x86_64-linux/a1bc97aaff04ad107ea7a2a7b8f35c0c3cf087643f08a1b7863fdd6cef371722/8.10.2/lib/x86_64-linux-ghc-8.10.2/libHSlsp-1.2.0.0-88sEO7ydde42BWhpz8ymRj-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziCallHierarchy_zdfFromJSONCallHierarchyOutgoingCallsParams_closure'
ghcide                           > /root/.stack/snapshots/x86_64-linux/a1bc97aaff04ad107ea7a2a7b8f35c0c3cf087643f08a1b7863fdd6cef371722/8.10.2/lib/x86_64-linux-ghc-8.10.2/libHSlsp-1.2.0.0-88sEO7ydde42BWhpz8ymRj-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziCallHierarchy_zdfFromJSONCallHierarchyIncomingCallsParams_closure'
ghcide                           > /root/.stack/snapshots/x86_64-linux/a1bc97aaff04ad107ea7a2a7b8f35c0c3cf087643f08a1b7863fdd6cef371722/8.10.2/lib/x86_64-linux-ghc-8.10.2/libHSlsp-1.2.0.0-88sEO7ydde42BWhpz8ymRj-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziCallHierarchy_zdfFromJSONCallHierarchyPrepareParams_closure'
ghcide                           > /root/.stack/snapshots/x86_64-linux/a1bc97aaff04ad107ea7a2a7b8f35c0c3cf087643f08a1b7863fdd6cef371722/8.10.2/lib/x86_64-linux-ghc-8.10.2/libHSlsp-1.2.0.0-88sEO7ydde42BWhpz8ymRj-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziMethod_zdfFromJSONSMethod54_closure'
ghcide                           > /root/.stack/snapshots/x86_64-linux/a1bc97aaff04ad107ea7a2a7b8f35c0c3cf087643f08a1b7863fdd6cef371722/8.10.2/lib/x86_64-linux-ghc-8.10.2/libHSlsp-1.2.0.0-88sEO7ydde42BWhpz8ymRj-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziMethod_zdfFromJSONSMethod55_closure'
ghcide                           > /root/.stack/snapshots/x86_64-linux/a1bc97aaff04ad107ea7a2a7b8f35c0c3cf087643f08a1b7863fdd6cef371722/8.10.2/lib/x86_64-linux-ghc-8.10.2/libHSlsp-1.2.0.0-88sEO7ydde42BWhpz8ymRj-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziMethod_STextDocumentPrepareCallHierarchy_con_info'
ghcide                           > /root/build/ghcide/.stack-work/dist/x86_64-linux/Cabal-3.2.0.0/build/libHSghcide-1.4.0.3-JawsZpB8LjFDgYoyr637bu-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziMethod_zdfShowSMethod114_closure'
ghcide                           > /root/build/ghcide/.stack-work/dist/x86_64-linux/Cabal-3.2.0.0/build/libHSghcide-1.4.0.3-JawsZpB8LjFDgYoyr637bu-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziMethod_zdfShowSMethod112_closure'
ghcide                           > /root/build/ghcide/.stack-work/dist/x86_64-linux/Cabal-3.2.0.0/build/libHSghcide-1.4.0.3-JawsZpB8LjFDgYoyr637bu-ghc8.10.2.so: error: undefined reference to 'lspzmtypeszm1zi2zi0zi0zm7swkqKT17rYKP1vpk3U7ry_LanguageziLSPziTypesziMethod_zdfShowSMethod116_closure'
ghcide                           > collect2: error: ld returned 1 exit status
ghcide                           > `gcc' failed in phase `Linker'. (Exit code: 1

maybe we would need to switch to static linking again @pepeiborra ?

@jneira
Copy link
Member Author

jneira commented Jul 28, 2021

And.... memory exhaustion returned again

hls-floskell-plugin        > collect2: fatal error: ld terminated with signal 9 [Killed]
hls-floskell-plugin        > compilation terminated.
hls-floskell-plugin        > `gcc' failed in phase `Linker'. (Exit code: 1)

@jneira
Copy link
Member Author

jneira commented Jul 28, 2021

errr... we are bulding tests twice!!!???

stack test is a Shortcut for 'build --test' and we are doing stack -j1 --stack-yaml=${STACK_FILE} build --test --no-run-tests --no-terminal and then stack --stack-yaml=${STACK_FILE} test --no-run-tests --no-terminal, but without -j1 (the probable cause of the oom)!!! omg 🤦

@Ailrun
Copy link
Member

Ailrun commented Jul 29, 2021

What happened to GitHub Actions? It is stuck for a while, and those "pending" jobs show

Can't find any online and idle self-hosted or hosted runner in the current repository, account/organization that matches the required labels: 'windows-latest'
Waiting for a self-hosted or a hosted runner to pickup this job...

@jneira
Copy link
Member Author

jneira commented Jul 29, 2021

don't know and don't know if I want to know it 😂

hope it is transient and we will not have to worry about. I ve reran the test job, let's see how is going

@Ailrun
Copy link
Member

Ailrun commented Jul 29, 2021

Seems like rerun makes it work... Hm :/

@mergify mergify bot merged commit 897109e into haskell:master Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants