diff --git a/.github/ISSUE_TEMPLATE/release.md b/.github/ISSUE_TEMPLATE/release.md index 046cf8c..060b9cd 100644 --- a/.github/ISSUE_TEMPLATE/release.md +++ b/.github/ISSUE_TEMPLATE/release.md @@ -15,7 +15,7 @@ Every step says who does it: script (run the command, read the result), CI (a wo ## Before the tag -- [ ] 1. script: upstream `` is out on both channels (GitHub release, Maven Central, Docker Hub image), the version rule holds for both packages, the CI of `main` is green, and the release workflows derive the right version and engine. Zero FAILs means ready. A FAIL on Maven Central or Docker Hub can mean the other channel is still catching up: run it again later. +- [ ] 1. script: upstream `` is out on both channels (GitHub release, Maven Central, Docker Hub image), the version rule holds for both packages, the CI of `main` is green, and the release workflows derive the right version and engine. Zero FAILs means ready. A FAIL on Maven Central or Docker Hub can mean the other channel is still catching up: run it again later. A FAIL on the line `(e)` for a job that crashed or missed a vector can be a known intermittent failure (#352, the Windows JVM crash in the examples; #409, the vector read-your-writes race): read the job log, re-run only the failed jobs of that run on `main`, and run the preflight again. Never tag on a red `(e)` that you have not read. ```bash uv run --no-project python -I scripts/release_preflight.py @@ -36,7 +36,7 @@ Every step says who does it: script (run the command, read the result), CI (a wo git fetch origin main --no-tags && git tag origin/main && git push origin ``` -- [ ] 5. CI: both release workflows finish and publish, then `release-notes.yml` creates the GitHub Release and, for a final release, closes the milestone. Note the two run ids (the native build takes the longest). To retry a failed upload, re-run only the publish job, never the whole workflow. For the native package, the `pypi` deployment waits for your approval: before you approve it, run the speed smoke on the wheel of the artifact `native-release-dist` (docs page "Speed smoke of the native wheel", issue #404) and write the library sha256 and the ratio into the release notes. A wheel that fails the smoke is a slow build of the same commit: reject the deployment and re-run all jobs for a new build, up to four times. +- [ ] 5. CI: both release workflows finish and publish, then `release-notes.yml` creates the GitHub Release and, for a final release, closes the milestone. Note the two run ids (the native build takes the longest). To retry a failed upload, re-run only the publish job, never the whole workflow. Both publish jobs wait for your approval (the environments `pypi-jvm` and `pypi` each have you as required reviewer): approve the JVM one when its tests are green. For the native package of a final or `postN` release (a `devN` release skips the smoke), the `pypi` deployment waits for your approval: before you approve it, run the speed smoke on the wheel of the artifact `native-release-dist` (docs page "Speed smoke of the native wheel", issue #404) and keep the library sha256 and the ratio. A wheel that fails the smoke is a slow build of the same commit: reject the deployment and re-run all jobs for a new build, up to four times. Keep the JSON of every attempt. The notes lines wait for step 10, because the GitHub Release does not exist before both packages are published. ```bash gh run list -R ArcadeData/arcadedb-python --branch --limit 6 @@ -52,6 +52,12 @@ Every step says who does it: script (run the command, read the result), CI (a wo PACKAGE=native scripts/after_tag_verify.sh ``` + Native only: the wheel on PyPI must be the wheel that passed the speed smoke. Download the `manylinux_2_28_x86_64` wheel from PyPI as in "Get the files" of the speed smoke page and compare its library hash with the one of step 5. A different hash is a different build, and the smoke says nothing about it. + + ```bash + uv run --no-project python -I scripts/native_update_smoke.py --hash-only + ``` + - [ ] 7. script, then CI: the dev-engine bump PR. Open it from a worktree on a branch off `origin/main`. Pick `` from the version of upstream `main`: the command prints the next base. If it prints ``, upstream has not moved on yet: wait, because a dev version of a released base is refused. ```bash @@ -71,4 +77,4 @@ Every step says who does it: script (run the command, read the result), CI (a wo ``` - [ ] 9. CI, then owner: merge the bump PR when every check is green, and delete the branch and the worktree. Then remove the tests and skip-list lines that waited for the new engine: `git grep -n -i "native build links\|native image links"`. -- [ ] 10. owner: check the GitHub Release (notes, pre-release flag) and, after a final release, that the milestone is closed and what was still open in it moved to the next milestone (the open one due next, or one the workflow created named after the next upstream engine version). If the run failed with a message about the next milestone, create it with a due date and re-run `GitHub Release` (Actions, `workflow_dispatch`, the tag). Close this issue with the two run ids and the two PyPI links. +- [ ] 10. owner: check the GitHub Release (notes, pre-release flag), add the block "Native wheel speed smoke" to its notes (docs page "Speed smoke of the native wheel", section "What goes into the release notes"; do it again after any re-run of `release-notes.yml`, which rewrites the notes) and, after a final release, that the milestone is closed and what was still open in it moved to the next milestone (the open one due next, or one the workflow created named after the next upstream engine version). If the run failed with a message about the next milestone, create it with a due date and re-run `GitHub Release` (Actions, `workflow_dispatch`, the tag). Close this issue with the two run ids and the two PyPI links. diff --git a/docs/modules/ROOT/pages/development/release.adoc b/docs/modules/ROOT/pages/development/release.adoc index ce59e6b..877138d 100644 --- a/docs/modules/ROOT/pages/development/release.adoc +++ b/docs/modules/ROOT/pages/development/release.adoc @@ -146,12 +146,12 @@ Each step is a script, CI, or the owner's decision. The owner's tag push is the | owner (the only publishing step) | 4 -| `release-jvm.yml` and `release-native.yml` validate the tag, build and test the wheels, check them, and publish with trusted publishing. A failed upload is retried by re-running only the publish job. When both have succeeded, `release-notes.yml` creates the GitHub Release and, for a final release, closes the milestone (<<_github_release,GitHub Release>>). +| `release-jvm.yml` and `release-native.yml` validate the tag, build and test the wheels, check them, and publish with trusted publishing. A failed upload is retried by re-running only the publish job. For a final or `postN` release the `pypi` deployment of the native package waits for the owner, and the speed smoke of the native wheel runs before it is approved (xref:development/release-native-smoke.adoc[Speed smoke of the native wheel]). When both have succeeded, `release-notes.yml` creates the GitHub Release and, for a final release, closes the milestone (<<_github_release,GitHub Release>>). | CI | 5 -| After-tag verification of both packages: the workflow run and its publish step, the file set and sizes on PyPI, the sha256 of every file against the wheels the workflow checked, and a fresh `uv run --with` install on Python 3.12 and 3.14 that opens a database and runs one SQL and one openCypher query. -| script: `scripts/after_tag_verify.sh` and `PACKAGE=native scripts/after_tag_verify.sh` +| After-tag verification of both packages: the workflow run and its publish step, the file set and sizes on PyPI, the sha256 of every file against the wheels the workflow checked, and a fresh `uv run --with` install on Python 3.12 and 3.14 that opens a database and runs one SQL and one openCypher query. For the native package, the library hash of the wheel on PyPI is also compared with the one that passed the speed smoke. +| script: `scripts/after_tag_verify.sh` and `PACKAGE=native scripts/after_tag_verify.sh`, then `native_update_smoke.py --hash-only` | 6 | The dev-engine bump PR. `scripts/bump_engine.py` moves the pins that dev, PR and nightly builds link: `DEV_ENGINE`, `DEFAULT_VERSION` and the default of the manual-run input `version` in `test-native.yml`, `arcadedb.version` in `native/pom.xml`, the default in `native/scripts/build-image.sh`, and the default of `--version` in `native/wheel/build_wheel.py`. `--check` reports drift and writes nothing; it refuses a `` that `check_version.py` would refuse.