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 fixes #783

Merged
merged 12 commits into from
Jan 1, 2021
Merged

Ci fixes #783

merged 12 commits into from
Jan 1, 2021

Conversation

pepeiborra
Copy link
Collaborator

@pepeiborra pepeiborra commented Jan 1, 2021

See commit messages

@jneira
Copy link
Member

jneira commented Jan 1, 2021

thanks, I hope we can recover reasonable ci build times with those nice changes

@pepeiborra pepeiborra force-pushed the ci-fixes branch 4 times, most recently from a273c71 to 04bb1bf Compare January 1, 2021 14:33
@@ -30,14 +30,16 @@ jobs:
ghc-lib: true

steps:
# Cancel queued workflows from earlier commits in this branch
- uses: fkirc/skip-duplicate-actions@master
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great move

@jneira
Copy link
Member

jneira commented Jan 1, 2021

What about restrict tests to last minor versions, like we did in ghcide? We could include macos and still save jobs

@jneira
Copy link
Member

jneira commented Jan 1, 2021

Where those compile error comes from? weird thing that changing ci settings could trigger them

actions/setup-haskell has been archived, haskell/actions/setup is the replacement
We are getting very few cache hits because we have too many caches and are
running over the 5GB per repository limit.

Each node in the matrix weighs around 350MB, so we can have up to 15 nodes. The
current matrix (after dropping macOS but before adding 8.10.3) has 12 nodes.

The `**/*.cabal` hash is wrong, since it also captures cabal files in tests
The `**/cabal.project` is wrong for the same reason, but it can be easily
fixed.
We simply need to check that the Nix derivation works
@pepeiborra pepeiborra merged commit aa7e9a3 into haskell:master Jan 1, 2021
@pepeiborra
Copy link
Collaborator Author

I don't know if the auto cancel action will work - if it doesn't we'll need to keep an eye on https://github.community/t/github-actions-cancel-redundant-builds-not-solved/16025

@jneira
Copy link
Member

jneira commented Jan 1, 2021

@pepeiborra i've triggered two consecutive builds and the cancel action has failed with

Warning: HttpError: Resource not accessible by integration
Warning: Failed to cancel https://github.com/haskell/haskell-language-server/actions/runs/456673917
Do not skip execution because we did not find a transferable run

otoh i've observed the build times of cabal are significative better in the second build, at least for ubuntu:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants