trixi-framework / Trixi.jl

Trixi.jl: Adaptive high-order numerical simulations of conservation laws in Julia
https://trixi-framework.github.io/Trixi.jl
MIT License
524 stars 103 forks source link

`DocPreviewCleanup` workflow sometimes does not clean up previews #717

Open sloede opened 3 years ago

sloede commented 3 years ago

Right now, we have two documentation previews that were not deleted although the corresponding PR is not open anymore:

See also: https://github.com/trixi-framework/Trixi.jl/tree/d6e8fa39a754d24216232e14671c08d040fd7cf0/previews

Both points needs some investigating to find out what really is going on there.

ranocha commented 3 years ago

It looks like DocPreviewCleanup ran successfully for #703; https://github.com/trixi-framework/Trixi.jl/runs/3015705350?check_suite_focus=true. However, the preview is obviously still there...

Doesn't look suspicious to me...

sloede commented 3 years ago

Thanks for investigating! Thus, should the rule then be to

?

Would another possible solution be to modify the workflows to do this automatically? That is, on a pull request being closed (or merged), delete all currently running workflows for that PR? Or make the cleanup workflow depend on all (Documenter) workflows of a PR being finished?

ranocha commented 3 years ago

That sounds reasonable

sloede commented 3 years ago

Maybe something like this could be used: https://github.com/marketplace/actions/cancel-workflow-action#advanced-canceling-other-workflows

sloede commented 3 years ago

Xref: https://github.community/t/cancel-workflow-s-on-pr-being-closed-merged/189939