[CI] Fix crate publish readiness check #2550
Labels
bug
Something isn't working
CI
good first issue
Good for newcomers
help wanted
Good issue for community involvement
technical debt
Test Infrastructure
Testing infrastructure
This CI run had a false positive:
https://github.com/infinyon/fluvio/runs/7687135285?check_suite_focus=true
This test should have failed:
https://github.com/infinyon/fluvio/blob/master/.github/workflows/ci.yml#L297-L298
Which eventually resulted in a cargo publish job failing:
https://github.com/infinyon/fluvio/runs/7778435436?check_suite_focus=true
The cause was due to a path dependency update where the version number of the crate was removed.
This fine for development, since the build is unaffected. But the steps during the publish build is different. The Cargo book says that crates with path dependencies can't be published. The paths are ignored and cargo falls back on the public crate version.
So it seems we're exposed to this only when we are updating crates, after Bors has merged. It isn't an obvious thing to spot in a PR.
The text was updated successfully, but these errors were encountered: