haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.72k stars 367 forks source link

CI: for fast CI dev flow - build only changed workflows #2510

Open Anton-Latukha opened 2 years ago

Anton-Latukha commented 2 years ago

Description:

Contributions to the CI now have to pass a {test, bench, nix} workflows, which takes ~2 hours per loop & keeps those runners occupied & devs waiting vacuously.

Describe the solution you'd like

(probably by configuring skip-duplicate-actions): Changes to according CI workflow should trigger mostly only that workflow & maybe related ones.

Additional context

I tried to enumerate files directly in https://github.com/haskell/haskell-language-server/pull/2506/commits/d7c1a5a2bb58381959a6373f8589ca7ce9cd2481, which in https://github.com/haskell/haskell-language-server/pull/2506#issuecomment-997397938 is described & has a link to the build.

Later I changed caching only by changing docs & CI still ran into https://github.com/haskell/haskell-language-server/pull/2506#issuecomment-997424955.

sloorush commented 2 years ago

Hey! The best solution looks like using skip-duplicate-actions.

But I saw that in https://github.com/haskell/haskell-language-server/pull/2506#issuecomment-997424955, you have mentioned that it was not working.

I want to work on this. Can you guide me on where to look to solve this?