haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.59k stars 686 forks source link

Work on gitlab ci (used for release artifacts) #8044

Open jneira opened 2 years ago

jneira commented 2 years ago

So i think before the release we should

//cc @Mikolaj @hasufell @gbaz

Mikolaj commented 2 years ago

Certainly.

hasufell commented 2 years ago

x86_64-freebsd13: https://gitlab.haskell.org/haskell/cabal/-/jobs/969254

x86_64-freebsd12 should be enough

aarch64-darwin: https://gitlab.haskell.org/haskell/cabal/-/jobs/969257

Yeah, because nix is sh*te. That's why ghcup and HLS now use brew instead. You can adapt cabals gitlab config by reading:

Make sure the env vars are set correctly like above, otherwise brew will leak artifacts into the host system, which will upset angerman.

jneira commented 2 years ago

@hasufell many thanks for the info, will try to not bother ghc team :wink:

I've checked the hls config has no longer the windows ghcup bootstrapping:

https://github.com/haskell/cabal/blob/906a8bcabc307c6c607cf1b9826a6b329e3ceb7f/.gitlab-ci.yml#L146-L154

maybe it would not be necessary here neither?

hasufell commented 2 years ago

It does: https://github.com/haskell/haskell-language-server/blob/30d48ed705e929e4ff7da16b00ca4946ea850407/.gitlab/ci.sh#L10-L46

jneira commented 2 years ago

Oh yeah i missed

https://github.com/haskell/haskell-language-server/blob/30d48ed705e929e4ff7da16b00ca4946ea850407/.gitlab/ci.sh#L44

thanks!

jneira commented 2 years ago

I've started to work on this, pushing cheching tags to my gitlab cabal repo:

it looks promising but aarch64-linux-deb10 is failing with a weird error:

Getting source from Git repository 00:05
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/jneira/cabal/.git/
fatal: unable to access 'https://gitlab.haskell.org/jneira/cabal.git/': Could not resolve host: gitlab.haskell.org
hasufell commented 2 years ago

I've started to work on this, pushing cheching tags to my gitlab cabal repo:

it looks promising but aarch64-linux-deb10 is failing with a weird error:

Getting source from Git repository 00:05
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/jneira/cabal/.git/
fatal: unable to access 'https://gitlab.haskell.org/jneira/cabal.git/': Could not resolve host: gitlab.haskell.org

Yes angerman's runners have some network issues afair.

jneira commented 2 years ago

ok with #8051 merged we have the CI green my plan is add testing using validate.sh (like GH workflow does) so I would wait for #8045, which makes the script work for windows

ulysses4ever commented 1 year ago

@jneira do you think anything else can be done for this or should it be closed?

jneira commented 1 year ago

@ulysses4ever thanks for the ping, hmm the unchecked box in the description is still relevant imo

Mikolaj commented 1 year ago

Just noting here that @chreekat prodded the CI and the CI snapped into attention and there's substantial hope cabal 3.10 binary release is not going to be derailed. However, this a limited effort, only for releasing, so a test suite is out of scope.