Skip to content

Fix ignore paths #1656

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 5 commits into from
Apr 4, 2021
Merged

Fix ignore paths #1656

merged 5 commits into from
Apr 4, 2021

Conversation

jneira
Copy link
Member

@jneira jneira commented Apr 2, 2021

  • Attempt to fix properly the combination of ignore paths and required build checks
  • Unfortunately the unique solution i have found is make all steps of the build dedpend on the skip-duplicate-action outcome
  • There is a feature request to make jobs exit early with a specific status: Command to early-exit the job and set check conclusion actions/runner#662 but is is not being implemented

@@ -58,33 +55,34 @@ jobs:
# ghc: '8.6.4'

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.

I think we still need this step to skip unnecessary jobs started by outdated commits

Copy link
Member Author

Choose a reason for hiding this comment

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

mmm does not the same action in the pre_job do all the needed work? Afaiu it does all the things and no depends on the params: https://github.com/fkirc/skip-duplicate-actions#usage-examples

Copy link
Member Author

Choose a reason for hiding this comment

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

The log of a build in my branch can provide some evidence:

Did not find other workflow-runs to be cancelled
Stop backtracking at commit https://github.com/jneira/haskell-language-server/commit/3eddabf804b4a09ea07cff26f5470514b1639f50 because '.github/workflows/test.yml' are not skippable against paths '' or paths_ignore '**/docs/**,**.md,**/LICENSE,.circleci/**,install/**,nix/**'
Do not skip execution because we did not find a transferable run

https://github.com/jneira/haskell-language-server/pull/22/checks?check_run_id=2256857741

Copy link
Member

Choose a reason for hiding this comment

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

Oh, does it work per workflow? I thought it's per job...

@jneira jneira marked this pull request as draft April 2, 2021 21:42
@jneira
Copy link
Member Author

jneira commented Apr 2, 2021

Marked as a draft as i want to get a pr in my repo cancelled properly before merge this

@jneira jneira marked this pull request as ready for review April 3, 2021 20:44
@jneira
Copy link
Member Author

jneira commented Apr 3, 2021

I think it had worked here: jneira#23 so we could merge it
//cc @Ailrun

@jneira jneira added the merge me Label to trigger pull request merge label Apr 3, 2021
@berberman berberman merged commit fc5a412 into haskell:master Apr 4, 2021
isovector pushed a commit to isovector/haskell-language-server that referenced this pull request Apr 5, 2021
* Skip individual steps

* Skip individual steps

* And needs pre_job
mergify bot added a commit that referenced this pull request Apr 6, 2021
* Start tracking provenance of stale data

It's amazing how wrong this code used to be

* Add some machinery for automagically updating the age

* Add an applicative instance

* Tracked ages makes everything much easier to reason about

* Formatting

* Haddock and small changes

* Update haddock on IdeAction

* Update to lsp-1.2 (#1631)

* Update to lsp-1.2

* fix stack

* fix splice plugin tests

* fix tactic plugin tests

* fix some tests

* fix some tests

* fix outline tests

* hlint

* fix func-test

* Avoid reordering plugins (#1629)

* Avoid reordering plugins

Order of execution matters for notification plugins, so lets avoid unnecessary
reorderings

* remove duplicate plugins

* fix tests

* Civilized indexing progress reporting (#1633)

* Civilized indexing progress reporting

* optProgressStyle

* Consistency: Indexing references ==> Indexing

* Fix progress tests

* Do not override custom user commands (#1650)

Co-authored-by: Potato Hatsue <1793913507@qq.com>

* Shut the Shake session on exit, instead of restarting it (#1655)

Restarting the session will result in progress reporting and other messages
being sent to the client, which might have already closed the stream

Co-authored-by: Potato Hatsue <1793913507@qq.com>

* Fix importing type operators (#1644)

* Fix importing type operators

* Update test

* Add expected failure tests

* log exceptions before killing the server (#1651)

* log hiedb exceptions before killing the server

* This is not the hiedb thread - fix message

* Fix handler - either an error or success

* additional .gitignore entries (#1659)

* Fix ignore paths (#1656)

* Skip individual steps

* Skip individual steps

* And needs pre_job

* Add bounds for Diff (#1665)

* Replace Barrier with MVar in lsp main (#1668)

* Port UseStale to ghcide

* Use the new ghcide UseStale machinery

* Fix hlint complaints

Co-authored-by: wz1000 <zubin.duggal@gmail.com>
Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
Co-authored-by: Potato Hatsue <1793913507@qq.com>
Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants