fuel-core icon indicating copy to clipboard operation
fuel-core copied to clipboard

setup ci action to simulate publishes

Open Voxelot opened this issue 2 years ago • 1 comments

Troubleshooting CI failures during publish is difficult, as there is no way to test publishing without actually make a real publish.

We should have a custom action that allows us to simulate all the actions of a publish before officially tagging the release.

  • allow user to set a custom publish tag via action input instead of creating a real tag
  • use an ephemeral crate registry during the publish process
    • override the default registry for any dependencies between workspace members to use local registry
  • skip docker image upload
  • skip binary artifact upload

Voxelot avatar Jun 16 '22 00:06 Voxelot

use an ephemeral crate registry during the publish process

This is interesting. Would it be possible host an instance of crates.io (with the same validation rules) that we can use for this?

adlerjohn avatar Jun 16 '22 00:06 adlerjohn

We use katyo/publish-crates@v2 action to publish all our crates, which supports dry-run. It performs most of the checks that should be done before publishing. It is not the same as publishing via cargo publish, but it should cover most cases.

We added a separate job publish-crates-check that will perform those checks before actual publishing.

We also can troubleshoot the problem locally. How to do that is described in this section.

I guess we can close the issue for now, but if it would be actual for us again, we can reopen it.

xgreenx avatar Jan 31 '23 18:01 xgreenx