fix(release): Skip tests and lint CI already passed #28
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/release-skip-ci-checks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's wrong
A release takes about 15 minutes from pushing the tag (v0.3.1 took 14.2, v0.3.2 took 15.3). About 6 of those minutes repeat work CI already did.
scripts/release.pyrunsclean, unit tests, lint and the release build on the tag's commit, but CI has already run tests and lint on that same commit when it merged intomain. The release can't reuse CI's cached results, because it passes-PversionName/-PversionCodeand those changeBuildConfig, so the whole debug build, the tests and lint rebuild from scratch.What changed
scripts/release.pyasks Forgejo for CI's status on the tag's commit before it builds:The APK checks after the build (package name, version, release certificate) and the publish steps are unchanged.
Not a goal: caching the release build itself, or releasing automatically on merge.
Checks
python3 -m py_compile scripts/release.py: OK.ci_statereportssuccessfor308b928(v0.3.2's commit) and4d7452f, andNonefor17cd651, a commit CI never saw.ci_passedreturns True and False for those.