| //// | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, | |
| software distributed under the License is distributed on an | |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations | |
| under the License. | |
| //// | |
| [llms-summary="The step-by-step process for cutting an official Apache TinkerPop release, including building, staging, voting, and publishing artifacts and documentation."] | |
| = Release Process | |
| This document describes the steps required to release a version of TinkerPop. The release is handled by a "release | |
| manager" (a committer fulfills this role), who ensures that the steps in this document are executed. The process is | |
| multi-phased and can therefore take several weeks to complete given the time needed for Apache voting and community | |
| feedback. Once a release point has been identified, the following phases represent the flow of "release": | |
| * Release manager key setup. | |
| * Pre-flight check. | |
| * Optionally, produce a release candidate for community feedback. | |
| * Submit the official release for PMC vote. | |
| * Release and promote. | |
| The source and binary distributions that the PMC votes on are staged, voted on and published through | |
| link:https://releases.apache.org/[Apache Trusted Releases] (ATR). ATR holds the release candidate, sends the `[VOTE]` | |
| email and tallies the replies, checks signatures, checksums and licensing, commits the approved files to `dist/release` | |
| and sends the announcement. A release in ATR moves through three phases: _compose_, where the files are uploaded and | |
| checked, _vote_, and _finish_, where the release is published and announced. Maven artifacts are staged in Apache | |
| Nexus, and the GLVs and Docker images are deployed to their own repositories, as ATR does not distribute to them. | |
| See the link:https://releases.apache.org/docs/[ATR documentation] for more about each phase. | |
| IMPORTANT: During release, it is best to use the current SNAPSHOT version of this documentation to ensure that you have | |
| the latest updates as almost every release includes improved documentation that may involve new or revised steps to | |
| execute. | |
| IMPORTANT: The following instructions assume that the release manager's <<development-environment,environment>> is setup | |
| properly for release and includes a `.glv` files in the various GLV modules, so that they all build in full. | |
| WARNING: The release process needs to be conducted in a Linux environment. | |
| == Development Versions | |
| A "development version" or "snapshot" (in Java parlance) is not an "official" release. Artifacts produced for a | |
| snapshot are solely for the convenience of providers and other developers who want to use the latest releases of | |
| TinkerPop. These releases do not require a VOTE and do not require a "release manager". Any PMC member can deploy them. | |
| It is important to note that these releases cannot be promoted outside of the developer mailing list and should not be | |
| recommended for use beyond the purpose of evaluation and testing. | |
| IMPORTANT: A development release must contain the suffix "-SNAPSHOT" in the `pom.xml`. | |
| For JVM-based artifacts, simply use the following command: | |
| [source,text] | |
| mvn clean deploy | |
| and artifacts will be pushed to the link:https://repository.apache.org/snapshots/[Apache Snapshot Repository]. GLV | |
| development artifacts must be generated and deployed separately with additional commands: | |
| [source,text] | |
| ---- | |
| mvn clean install -Pglv-python | |
| mvn deploy -pl gremlin-python -Dpypi | |
| mvn clean install -pl :gremlin-dotnet,:gremlin-dotnet-source -Dnuget | |
| mvn deploy -pl :gremlin-dotnet-source -Dnuget -Dnuget.apiKey=[your-api-key] | |
| mvn deploy -pl gremlin-javascript -Dnpm` | |
| ---- | |
| Python, .NET and Javascript do not use the snapshot model the JVM does, however, the build is smart in that it will | |
| dynamically generate a development version number for the GLV artifacts when "-SNAPSHOT" is in the `pom.xml`. | |
| If you wish to verify that `mvn deploy` works before doing it officially then: | |
| * For Python, use the `testpypi` test environment by updating the `gremlin-python/pom.xml`. | |
| * For .NET, use the `staging.nuget.org` environment by updating the `gremlin-dot-source/pom.xml` | |
| IMPORTANT: The `clean` in the above commands is more important to the pypi deployment because the process will deploy | |
| anything found in the `target/python-packaged/dist` directory. Since the names of the artifacts are based on | |
| timestamps, they will not overwrite one another and multiple artifacts will get uploaded. | |
| WARNING: These commands will dynamically edit certain files in the various GLVs given automated version number changes. | |
| Take care to commit or not commit changes related to that as necessary. | |
| == Release Manager Requirements | |
| If this is your first time as release manager, you will need to set up keys for signing purposes per the Apache | |
| release process. Generally speaking, this will mean that you will need to generate a key-pair and then publish your | |
| public key. | |
| For a general overview of key basics, refer to link:https://www.apache.org/dev/release-signing.html#key-basics[this]. | |
| For detailed step-by-step instructions, please follow the instructions | |
| link:https://www.apache.org/dev/openpgp.html#generate-key[here]. | |
| After completing the key-pair setup instructions, be sure to upload your public key to `keys.openpgp.org` and add it into your | |
| link:https://id.apache.org[Apache LDAP] entry (under `OpenPGP Public Key Primary Fingerprint`). This ensures that the | |
| key will be added automatically to this link:https://people.apache.org/keys/committer/[list of committer keys] which | |
| will be used to validate the distribution. | |
| Your public key also needs to be added to the | |
| link:https://dist.apache.org/repos/dist/release/tinkerpop/KEYS[KEYS] file in the release distribution directory and | |
| committed using Apache Subversion (SVN). ATR imports keys from this file and checks signatures against it, and voters | |
| and users verify with it. | |
| Also set up ATR upload credentials as described in the <<release-environment,Release Environment>> section. | |
| NOTE: If you are a committer, you will require the assistance of a PMC member to upload | |
| your key into the link:https://dist.apache.org/repos/dist/release/tinkerpop/KEYS[release] distribution directory. This | |
| can also be done during Release & Promote when release files are uploaded. | |
| [[atr-project-setup]] | |
| === ATR Project Setup | |
| TinkerPop's ATR project is `tinkerpop`. Its settings are configured once by a PMC member on the project page in ATR | |
| and are maintained there afterward: | |
| * Metadata: the name `Apache TinkerPop`, the homepage, download page, bug database and mailing list pages, and the | |
| repository `https://github.com/apache/tinkerpop`. | |
| * Lifecycle: a cycle match of `^(\d+\.\d+)\.\d+.*$`, so that each release line, such as 3.7, is one cycle. | |
| * Compose: source artifact paths of `apache-tinkerpop-*-src.zip` and binary artifact paths of | |
| `apache-tinkerpop-gremlin-*-bin.zip`. | |
| * Vote: email vote mode, `dev@tinkerpop.apache.org` as the recipient, a minimum voting period of 72 hours, and the | |
| `[VOTE]` and `[RESULT][VOTE]` templates given under <<email-templates,Email Templates>>. | |
| * Finish: a download path suffix of `+{{VERSION}}+`, so that releases are published to `dist/release/tinkerpop/xx.yy.zz/`, | |
| and `dev@tinkerpop.apache.org` as the announcement recipient. | |
| Before the first release through ATR, also review the release catalog for `tinkerpop` in ATR and report anything that is | |
| attached to the wrong project or version. | |
| == Pre-flight Check | |
| The "pre-flight check" is a list of things performed by the release manager during the weeks leading up to a scheduled | |
| day to release. These checks will help to ensure that that release day goes smoothly by identifying problems up early | |
| and communicating with other members of the community. | |
| . If this release cycle includes a major release, ensure that all <<runtimes,upgrades for language runtimes>> have been considered. | |
| . Fourteen days before release, issue an email to the dev mailing list to remind the community of the pending release. | |
| .. Note any important issues open in JIRA in that post. | |
| .. Request review and update of the "upgrade documentation" and CHANGELOG. | |
| . Prior to the start of code freeze, consider any minor non-breaking dependency updates. The following commands or tools | |
| may be useful to list available updates: | |
| - `mvn versions:display-dependency-updates -DallowMajorUpdates=false` | |
| - `go list -m -u all` | |
| - `npm-check-updates` | |
| - `dotnet-check-updates` | |
| . Seven days before release, announce the code freeze on the dev mailing list to remind the community that the branch | |
| under release is protected. Tweaks to documentation and other odds and ends related to release are still allowed | |
| during this period. | |
| . At some point during the week: | |
| .. Run a local build `mvn clean install` | |
| .. Run the full integration test suite: `docker/build.sh -t -i` | |
| .. Build and test the Docker images: `mvn clean install -pl gremlin-server,gremlin-console -DdockerImages` | |
| .. Ensure that the Gremlin.Net.Template gets packaged successfully: `mvn clean install -pl :gremlin-dotnet-source -Dnuget` | |
| .. Deploy a final SNAPSHOT to the Apache snapshot repository for Java. | |
| .. Review LICENSE and NOTICE files to make sure that no <<dependencies,changes are needed>>. | |
| .. Review javadoc filters on the "Core API" docs to be sure nothing needs to change. | |
| .. Review JIRA tickets in the release and ensure that: | |
| ... All tickets categorized by having a "Component" assigned. | |
| ... All tickets are either of type "Bug" or "Improvement". | |
| ... All tickets where work was completed are "Closed" | |
| .... Search for "closed the pull request" in comments for hints on possible tickets that were left open by mistake. | |
| .... Look for tickets marked as "Resolved" as some users might not have rights to mark as "Closed" - convert these to "Closed". | |
| ... All tickets not marked "Fixed", "Done", or "Implemented" for their Resolution should not have a Fix Version | |
| assigned (use common sense when reviewing these tickets before removing the Fix Version as it is possible the incorrect | |
| Resolution may have been assigned). | |
| .. Review the beads expected to land in this version, as described in <<beads,Using Beads>>, and ensure that: | |
| ... Every bead belonging to work that has merged is `pinned`. Pinning is what makes a bead permanent, so a | |
| subgraph left closed but unpinned is work whose record was never completed. Errands and the gates that | |
| hold them are the exception, as they are never pinned (see <<beads-errands,Errands>>). | |
| ... The release label on each bead matches the version under release. The label value must be quoted and | |
| closed beads must be included, as in `bd query 'labels="xx.yy.zz"' --all`, because an unquoted version | |
| number fails to parse and closed beads are hidden by default. | |
| ... Each root carries a record bead for its JIRA issue, pull request, proposal or dev mailing list thread. | |
| A small fix that never had one of these is a legitimate exception. | |
| ... Each merged root carries a commit record, written by `bin/beads-commits.py` as described in | |
| <<beads-commits,Linking Commits to Beads>>. A root pinned before that convention existed is a legitimate | |
| exception, and `bin/beads-report.py` reports a root without one as a question rather than a defect. | |
| ... `bin/beads-report.py` reports nothing unexpected. Run it per root with `--root` to scope it to a single | |
| subgraph. Its structural findings, such as a dangling edge, are defects, while the remainder are questions | |
| rather than verdicts and a one-line fix will legitimately trip several of them. | |
| . Determine if Upgrade Documentation requires the addition of a prompt that users can provide to an AI coding agent to | |
| help them assess their upgrade task. Check the state of `docs/upgrade/prompts` to ensure there is an | |
| `upgrade-x.y.z-helper.md` for the current version and that it is up to date/tested. When it is determined as valid, | |
| ensure the prompt is reflected in the Upgrade Documentation itself. **This process needs to be refined.** | |
| . When all documentation changes are in place, use `bin/publish-docs.sh` to deploy a final `SNAPSHOT` representation | |
| of the docs and thus validate that there are no issues with the documentation generation process. Request review | |
| of the published documentation on the dev mailing list. | |
| == Release Candidate | |
| A release candidate is an unofficial release that is represented by a tagged version in the Git repository. It is | |
| offered in cases where there is significant change in a particular version and the potential for upgrades and problems | |
| might be high. Release candidates do not require a vote thread. Lazy consensus is acceptable for confirming their | |
| deployment. | |
| . `mvn clean install` | |
| . `docker/build.sh -t -i` | |
| . `bin/publish-docs.sh <username>` - note that under a release candidate the documentation is published as SNAPSHOT | |
| . `mvn versions:set -DnewVersion=xx.yy.zz -DgenerateBackupPoms=false` to update the project files to reference a non-SNAPSHOT version | |
| . `mvn clean install -DskipTests` to update GLV versions | |
| .. Review `__init__.py` in `gremlin-python` | |
| .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` | |
| .. Review `package.json` in `gremlin-javascript`, `gremlint`, and `gremlin-mcp` under `gremlin-js/`; the `package-lock.json` lives at `gremlin-js/` — run `npm install` from there to regenerate it after version changes and review it | |
| . `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-standalone/bin/gremlin.sh gremlin.sh; popd` | |
| . `git diff` and review the updated files | |
| . `git commit -a -m "TinkerPop xx.yy.zz release"` and `git push` | |
| . `git tag -a -m "TinkerPop xx.yy.zz release" xx.yy.zz` and `git push --tags` | |
| . `mvn clean install` | |
| . `mvn versions:set -DnewVersion=xx.yy.zz-SNAPSHOT -DgenerateBackupPoms=false` to go back to SNAPSHOT | |
| . `mvn clean install -DskipTests` to update GLV versions | |
| .. Review `__init__.py` in `gremlin-python` | |
| .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` | |
| .. Review `package.json` in `gremlin-javascript`, `gremlint`, and `gremlin-mcp` under `gremlin-js/`; the `package-lock.json` lives at `gremlin-js/` — run `npm install` from there to regenerate it after version changes and review it | |
| . `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-SNAPSHOT-standalone/bin/gremlin.sh gremlin.sh; popd` | |
| . `git commit -a -m "Returned to xx.yy.zz-SNAPSHOT"` and `git push` | |
| . Announce the release candidate to `dev` mailing list and await feedback | |
| . Repeat as required or proceed to the next phase | |
| Note that release candidates need not require the release of all artifacts. For example, if the risk is with one | |
| particular GLV, then a release candidate can be prepared of just that particular artifact. In those cases, a tag on | |
| the commit that represents the release candidate is sufficient and does not necessarily require that the versions | |
| be bumped to reflect the actual "-rc" version. In other words, if preparing a release candidate for .NET, then there | |
| is no need to go through the processing of bumping versions in Java artifacts and all GLVs. Nor is it necessary to | |
| alter the version of .NET to include the release candidate versioning. It can simply be altered locally by the | |
| release manager and deployed. | |
| == PMC Vote | |
| This section describes the process that process that prepares a release for VOTE by the community. If there are multiple | |
| releases (as there usually are) being prepared, it may be best for downstream releases to wait for upstream releases | |
| to complete their process to assure that no last minute commits are required to get the upstream release completed. | |
| It is up to the discretion of the release managers to decide how they wish to proceed with respect to preparing releases | |
| in parallel or in a more serial fashion. | |
| . By this point, the testing performed during the code freeze should have validated the release. If however there | |
| are additional tests to perform that the release manager feels are relevant, they should be performed now. In other | |
| words, there is no need to rebuild the `SNAPSHOT` yet another time unless there are circumstances that would call its | |
| validity into question. | |
| . Update `CHANGELOG.asciidoc`: | |
| .. Update the release date - the release date is the date of the vote. Double check the header to be sure that it is | |
| formatted properly - specifically, ensure that there is an asciidoc anchor of the format `[[release-x-y-z]]` above the | |
| version/date header. The release date is the intended day of the vote and not necessarily when it happens (usually | |
| falls on a Monday given the code freeze pattern that starts a week prior on a Friday). The release date for all | |
| versions should be the same as the first release of the set even if the release vote does not begin on the same day. | |
| In other words if 3.2.x has a vote date of "October, 1 2018" then 3.3.x should also have that date even if the vote | |
| thread for 3.3.x doesn't start until the day after. | |
| .. Generate the JIRA release notes report for the current version and append them to the `CHANGELOG.asciidoc`. | |
| ... Use an "advanced" search to filter out JIRA issues already released on other versions. For example: | |
| `project = TINKERPOP and status = Closed AND fixVersion = 3.2.0 ORDER BY type, Id ASC`. | |
| ... Consider use of an "Excel" export to organize and prepare the JIRA tickets to be pasted to `CHANGELOG.asciidoc`. | |
| This formula can help construct each line item for the CHANGELOG if column `A` is the issue number, `B` is the | |
| issue title and `D` is the label field: `="* "&A2&" "&B2&(IF(D2="breaking"," \*(breaking)*",""))` | |
| ... Be sure to include a link to other versions in the `CHANGELOG.asciidoc` that were previously released while the | |
| current release was under development as this new release will have those changes included within it. Please see | |
| 3.2.1 for an example. | |
| .. Format "breaking" changes to be clearly marked (use JIRA and the "breaking" label to identify those - already accounted for if using the suggested formula above) | |
| . Update "upgrade documentation": | |
| .. Update the release date. | |
| .. Update the link to `CHANGELOG.asciidoc` - this link may already be correct but will not exist until the repository is tagged. | |
| . `mvn versions:set -DnewVersion=xx.yy.zz -DgenerateBackupPoms=false` to update project files to reference the non-SNAPSHOT version | |
| . `mvn clean install -DskipTests` to update GLV versions | |
| .. Review `__init__.py` in `gremlin-python` | |
| .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` | |
| .. Review `package.json` in `gremlin-javascript`, `gremlint`, and `gremlin-mcp` under `gremlin-js/`; the `package-lock.json` lives at `gremlin-js/` — run `npm install` from there to regenerate it after version changes and review it | |
| . `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-standalone/bin/gremlin.sh gremlin.sh; popd` | |
| . `git diff` and review the updated files | |
| . `mvn clean install` - need to build first so that the right version of the console is used with `bin/publish-docs.sh` | |
| .. This step should update the Gremlin.Net project file and Gremlin Javascript package file with the newly bumped version. | |
| . Determine if Upgrade Documentation requires the addition of a prompt that users can provide to an AI coding agent to | |
| help them assess their upgrade task. Check the state of `docs/upgrade/prompts` to ensure there is an | |
| `upgrade-x.y.z-helper.md` for the current version and that it is up to date/tested. When it is determined as valid, | |
| ensure the prompt is reflected in the Upgrade Documentation itself. **This process needs to be refined.** | |
| . `bin/process-docs.sh` and validate the generated documentation locally. Don't rely on "BUILD SUCCESS" - scroll up | |
| through logs to ensure there were no errors and view the HTML directly. Code blocks that did not execute properly have | |
| a gray background and do not show the results of the commands. In the event of failure, especially with `GraphComputer` | |
| related code examples, they best recourse is to take the time to test the example manually. While `process-docs.sh` | |
| tries to output the errors it can often point out a red herring where running the example manually will immediately | |
| showcase the problem. Unless you immediately know what is wrong, it is almost never a good idea to try to debug the | |
| problem based on the error shown by `process-docs.sh`. | |
| . `bin/publish-docs.sh <username>` - Note that this step requires no additional processing as the previous step handled | |
| document generation and this step now merely needs to upload what was generated. Note that this step will be responsible | |
| for generating javadoc. | |
| . `mvn deploy -Papache-release -DcreateChecksum=true -DskipTests` - deploy signed artifacts with checksums to link:https://repository.apache.org/[Apache Nexus]. | |
| . Review generated artifacts (request another committer to review as well) then "close" the repo - if the repo is left open it will be automatically dropped after five days and closing the repo will allow it to stay available for a full ninety days which is more than enough time to complete a vote. Do NOT "release" the repository at this time. | |
| . Compose the release candidate in link:https://releases.apache.org/[ATR]. | |
| .. Under "Draft > Candidates", start a new release of `tinkerpop` with version `xx.yy.zz`. | |
| .. run `mvn -N -Patr initialize` to copy, prepare, and upload the signed source and binary distributions from the local Maven repository. Add | |
| `-Datr.dryRun=true` to stage and list the files without uploading. | |
| .. Wait for ATR's checks to finish and review them on the compose page. Blockers must be fixed before a vote can start. | |
| .. Record the closed Nexus staging repository as a staged Maven distribution with "Verify a third-party distribution" on the draft page. | |
| . Execute `bin/validate-distribution.sh` and any other relevant testing. | |
| . `git commit -a -m "TinkerPop xx.yy.zz release"` and push | |
| . `git tag -a -m "TinkerPop xx.yy.zz release" xx.yy.zz` and `git push origin xx.yy.zz` | |
| . Record the source commit of the `xx.yy.zz` tag on the ATR draft from the compose page, creating a new revision of the draft. | |
| Wait for that check and resolve anything it reports before starting the vote. | |
| . Start the vote from the compose page with "Start voting". The form is filled from the project's `[VOTE]` | |
| template in ATR (see <<email-templates,below>>) and is sent in your name to `dev@tinkerpop.apache.org`. Review the body, | |
| keep the duration at no less than 72 hours, and decide whether ATR should publish to `dist/release` automatically when | |
| the vote passes. The vote is on the ATR revision named in the email, so any further upload requires a new vote. | |
| . *Wait for vote acceptance* (72 hours) | |
| . Resolve the vote on the vote page in ATR. Double-check ATR's tally against the email thread first. Resolving sends the | |
| `[RESULT][VOTE]` email. A passed vote moves the release to the finish phase, while a failed vote returns it to compose for another candidate. | |
| == Release & Promote | |
| NOTE: Certain steps can only be performed by a PMC member. If you are a committer, please enlist | |
| the help of a PMC member for those steps. | |
| . Login to link:https://repository.apache.org/[Apache Nexus] and release the previously closed repository. | |
| . Deploy the GLVs | |
| .. This build will likely occur from the tag for the release, so be sure to checkout the tag first before executing this step. | |
| .. `mvn clean install -DskipTests -Dnuget` | |
| .. `mvn deploy -pl gremlin-python -DskipTests -Dpypi` | |
| .. `mvn deploy -pl :gremlin-dotnet-source -DskipTests -Dnuget -Dnuget.apiKey=[your-api-key]` | |
| .. `mvn deploy -pl :gremlin-javascript -DskipTests -Dnpm` | |
| ... Consider direct deploy with `npm publish --otp <otp>` from `gremlin-js/gremlin-javascript/` - if using this method, ensure the `npm` version aligns with the one expected by the branch. | |
| .. `mvn deploy -pl :gremlint -DskipTests -Dnpm` | |
| ... Consider direct deploy with `npm publish --otp <otp>` from `gremlin-js/gremlint/` - if using this method, ensure the `npm` version aligns with the one expected by the branch. | |
| .. `bin/process-docs.sh` to build the documentation for the tag, since the `clean` above removed it. `gremlin-mcp` | |
| bundles the reference and Gremlin Semantics pages of this build into its package, and its deploy fails if they are | |
| missing or were built for another version. | |
| .. `mvn deploy -pl :gremlin-mcp -DskipTests -Dnpm` | |
| ... Consider direct deploy with `npm publish --otp <otp>` from `gremlin-js/gremlin-mcp/` - if using this method, ensure the `npm` version aligns with the one expected by the branch. Note: `gremlin-javascript` must be published before `gremlin-mcp` as it is a dependency. A direct `npm publish` only warns when the docs are missing, so confirm its output reports the docs pages it bundled. | |
| .. `git tag gremlin-go/vxx.yy.zz` | |
| .. `git push origin gremlin-go/vxx.yy.zz` | |
| .. `GOPROXY=proxy.golang.org go list -m github.com/apache/tinkerpop/gremlin-go/v3@vxx.yy.xx` | |
| . Review the GLV releases | |
| .. link:https://pypi.org/project/gremlinpython/[gremlin-python - PyPi] | |
| .. link:https://www.nuget.org/packages/Gremlin.Net/[Gremlin.Net - nuget] | |
| .. link:https://www.nuget.org/packages/Gremlin.Net.Template/[Gremlin.Net.Template - nuget] | |
| .. link:https://www.npmjs.com/package/gremlin[gremlin - npm] | |
| .. link:https://www.npmjs.com/package/gremlint[gremlint - npm] | |
| .. link:https://www.npmjs.com/package/gremlin-mcp[gremlin-mcp - npm] | |
| .. link:https://pkg.go.dev/github.com/apache/tinkerpop/gremlin-go/v3[gremlin-go - go packages] | |
| . Deploy the Docker images *(PMC member)* | |
| .. `mvn deploy -pl gremlin-console -DskipTests -DdockerImages` | |
| .. `mvn deploy -pl gremlin-server -DskipTests -DdockerImages` | |
| . Review the deployed Docker images at link:https://hub.docker.com/r/tinkerpop/gremlin-console/[Console] | |
| and link:https://hub.docker.com/r/tinkerpop/gremlin-server/[Server] | |
| . Unless ATR published automatically when the vote resolved, use "Publish to ASF Distribution Area" on the finish page | |
| in ATR, which commits the voted files to `https://dist.apache.org/repos/dist/release/tinkerpop/xx.yy.zz/`. | |
| . Wait for Apache Sonatype to sync the artifacts to link:https://repo1.maven.org/maven2/org/apache/tinkerpop/tinkerpop/[Maven Central]. | |
| . Record the distributions on the finish page in ATR with "Verify a third-party distribution" - for example Maven | |
| Central (`org.apache.tinkerpop` / `gremlin-core`), PyPI (`gremlinpython`), npm (`gremlin`, `gremlint`, `gremlin-mcp`) | |
| and Docker Hub (`tinkerpop` / `gremlin-server`, `gremlin-console`). ATR looks each one up before accepting it, so | |
| retry any that have not synced yet. | |
| . Report the release through link:https://reporter.apache.org/addrelease.html?tinkerpop[reporter.apache.org] (an email reminder should arrive shortly following the publication to `dist/release`) | |
| . Update homepage with references in `/site` to latest distribution and to other internal links elsewhere on the page. | |
| .. Typically, this need only be done on the `master` branch as we only publish from there. | |
| .. Update `index.html`. | |
| .. Update `community.html`, specifically the version numbers for our official releases. | |
| .. Update `llms.txt`, specifically the version numbers in the "Documentation indices" entry for the | |
| released line and in the "Optional" API documentation links. The sentence naming the first releases | |
| to publish an index is historical and does not change. | |
| .. Update link:https://tinkerpop.apache.org/download.html[Downloads] page, when moving "Current Releases" to "Archived | |
| Releases" recall that the hyperlink must change to point to version in the link:https://archive.apache.org/dist/tinkerpop/[Apache Archives]. | |
| .. Update `docs/gremlint/package.json` with the latest version of gremlint. | |
| .. Update `docs/gremlator/package.json` with the latest version of gremlin. | |
| .. Preview changes locally with `bin/generate-home.sh` then commit changes to git. | |
| . Wait for zip distributions to sync to the Apache mirrors (i.e ensure the download links work from a mirror). | |
| . `bin/publish-home.sh <username>` to publish the updated web site with new releases. | |
| . Execute `bin/update-current-docs.sh <username>` to migrate to the latest documentation set for `/current`. | |
| . This step should only occur after the website is updated and all links are working. If there are releases present in | |
| `dist/release` that represent lines of code that are no longer under development, then archive those releases from | |
| their release page in ATR, which removes their files from `dist/release`. In other words, | |
| if `3.2.0` is present and `3.2.1` is released then archive `3.2.0`. However, if `3.1.3` is present and that line of | |
| code is still under potential development, it may stay. ATR can archive the prior release of the same line when the | |
| new one is announced, if "Auto archive prior release" is selected in the next step. | |
| . Announce release - see <<email-templates,templates>> for suggested form | |
| .. Use "Announce" on the finish page in ATR to send the announcement to `dev@`. ATR sends it only once the files are | |
| reachable on the download servers, and then adds the release to its catalog, which completes the release in ATR. | |
| .. Email the `gremlin-users@` mailing list | |
| .. Tweet from `@apachetinkerpop` *(PMC member)* | |
| .. Announce the release on the TinkerPop LinkedIn Page *(PMC member)* | |
| .. Message the "Announcement" Discord channel *(PMC member)* | |
| == Post-release Tasks | |
| A number of administration tasks should be taken care of after the release is public. Some of these items can be | |
| performed during the VOTE period at the release manager's discretion, though it may be wise to wait until a successful | |
| VOTE is eminent before reopening development. When there are multiple release managers, it's best to coordinate these | |
| tasks as one individual may simply just handle them all. | |
| NOTE: Certain steps can only be performed by a PMC member. If you are a committer, please enlist | |
| the help of a PMC member for those steps. | |
| . Perform JIRA administration tasks *(PMC member)*: | |
| .. "Release" the current version and set the "release date" | |
| .. If there is to be a follow on release in the current line of code, create that new version specifying the "start date" | |
| . Prepare Git administration tasks. Apply the following steps as needed per release branch: | |
| .. Make the appropriate branching changes as required by the release and bump the version to `SNAPSHOT` with | |
| `mvn versions:set -DnewVersion=xx.yy.zz-SNAPSHOT -DgenerateBackupPoms=false`. | |
| . `mvn clean install -DskipTests` to update GLV versions | |
| .. Review `__init__.py` in `gremlin-python` | |
| .. Review `Gremlin.Net.csproj`, `Gremlin.Net.Template.csproj` and `Gremlin.Net.Template.nuspec` in `gremlin-dotnet` | |
| .. Review `package.json` in `gremlin-javascript`, `gremlint`, and `gremlin-mcp` under `gremlin-js/`; the `package-lock.json` lives at `gremlin-js/` — run `npm install` from there to regenerate it after version changes and review it | |
| .. `pushd gremlin-console/bin; ln -fs ../target/apache-tinkerpop-gremlin-console-xx.yy.zz-SNAPSHOT-standalone/bin/gremlin.sh gremlin.sh; popd` | |
| .. Update CHANGELOG and upgrade docs to have the appropriate headers for the next version. If a major line will no longer be under development, archive the CHANGELOG entries for it as follows: | |
| ... Create a new `changelog-x.x.x.asciidoc` in the `docs/archive/changelogs` folder. | |
| ... Copy all CHANGELOG entries of the major version into the file (refer to previous files). | |
| ... Replace the CHANGELOG entries under each minor releases with an archived notice containing link to the archived changelog file (refer to previous links inside CHANGELOG). | |
| .. `mvn clean install -DskipTests` - need to build first so that the right version of the console is used with `bin/publish-docs.sh` | |
| .. `mvn deploy -DskipTests` - deploy the new `SNAPSHOT` | |
| .. `bin/process-docs.sh` and validate the generated `SNAPSHOT` documentation locally and then `bin/publish-docs.sh <username>` | |
| .. Commit and push the `SNAPSHOT` changes to git | |
| . Examine the `future.asciidoc` and update the "Roadmap" as needed. | |
| . Update the version numbers in `pull_request_template.md`. | |
| . Send email to advise that code freeze is lifted. | |
| . Ensure that the GLV examples compile and run with the latest image and dependencies: `bin/run-examples.sh`. | |
| .. Make changes as necessary to update the examples. | |
| . Update root-level GLV examples to use the new release version: | |
| .. Update version numbers in `gremlin-examples/gremlin-java/pom.xml` to reference the new release version | |
| .. Update version numbers in `gremlin-examples/gremlin-javascript/package.json` to reference the new release version | |
| .. Update version numbers in `gremlin-examples/gremlin-python/requirements.txt` to reference the new release version | |
| .. Update version numbers in `gremlin-examples/gremlin-dotnet/*/\*.csproj` to reference the new release version | |
| .. Update version numbers in `gremlin-examples/gremlin-go/go.mod` to reference the new release version | |
| .. Test that all root-level examples work correctly with the new published versions | |
| . Perform beads administration tasks, as described in <<beads,Using Beads>>: | |
| .. `bd dolt pull` to take in anything other committers have pushed. | |
| .. `bin/beads-gates.py` to preview, then `bin/beads-gates.py --apply` to resolve the gates on pull requests | |
| that have merged or closed since the last run, as described in <<beads-errands,Errands>>. | |
| .. Confirm that every subgraph belonging to the release is `pinned`. The pre-flight check should already | |
| have established this, so anything still closed and unpinned at this point is work whose record was | |
| never finished. | |
| .. `bd gc --skip-decay --full --dry-run` to preview, then `bd gc --skip-decay --full --force` to reclaim | |
| storage. This discards only chunks that nothing in the database can still reach. Beads, their field | |
| content and the full Dolt commit history all survive, and `--skip-decay` is what holds back the single | |
| phase that would delete beads. Without `--full` the collection examines only data written since the | |
| previous one, so storage that became unreachable before then is never recovered. | |
| .. Note that the output of the previous step announces a phase named "Compact", which reports how many | |
| commits are in history and squashes nothing. Squashing requires `bd compact` or `bd flatten` run | |
| deliberately, and neither belongs to routine administration. There is no flag that suppresses the | |
| reporting phase, as `--skip-dolt` suppresses only the reclamation that follows it. | |
| .. `bd dolt push` to publish the result. | |
| + | |
| NOTE: `bd gc --skip-decay` is the only beads maintenance command that is run as routine administration. | |
| `bd prune` and `bd purge` delete beads, `bd flatten` and `bd compact` discard commit history, and a bare | |
| `bd gc` deletes every closed bead past its ninety day threshold. None of them recover storage that | |
| `bd gc --skip-decay` does not, because deleting a bead writes a further commit rather than removing the | |
| earlier ones. A bead left closed but unpinned is also far more likely to be a record nobody finished | |
| pinning than one that deserves deletion. Should beads ever warrant removal, that follows the same path | |
| as removing dead branches, which is a generated list posted for review on the dev mailing list. | |
| . Generate a list of dead branches that will be automatically deleted and post them as a DISCUSS thread for review, then once consensus is reached removed those branches. | |
| [[email-templates]] | |
| == Email Templates | |
| === Release VOTE | |
| [source,text] | |
| ---- | |
| [VOTE] TinkerPop {{VERSION}} Release | |
| ---- | |
| and the template is: | |
| [source,text] | |
| ---- | |
| Hello, | |
| We are happy to announce that TinkerPop {{VERSION}} is ready for release. | |
| The release candidate, ATR revision {{REVISION}}, can be found at: | |
| {{REVIEW_URL}} | |
| The file manifest for this revision is at: | |
| {{MANIFEST_URL}} | |
| The source distribution is provided by: | |
| apache-tinkerpop-{{VERSION}}-src.zip | |
| Two binary distributions are provided for user convenience: | |
| apache-tinkerpop-gremlin-console-{{VERSION}}-bin.zip | |
| apache-tinkerpop-gremlin-server-{{VERSION}}-bin.zip | |
| The release artifacts are signed with one or more OpenPGP keys from: | |
| {{KEYS_FILE}} | |
| {{COMMIT_PARAGRAPH}} | |
| The online docs can be found here: | |
| https://tinkerpop.apache.org/docs/{{VERSION}}/ (user docs) | |
| https://tinkerpop.apache.org/docs/{{VERSION}}/upgrade/ (upgrade docs) | |
| https://tinkerpop.apache.org/javadocs/{{VERSION}}/core/ (core javadoc) | |
| https://tinkerpop.apache.org/javadocs/{{VERSION}}/full/ (full javadoc) | |
| https://tinkerpop.apache.org/dotnetdocs/{{VERSION}}/ (.NET API docs) | |
| https://tinkerpop.apache.org/jsdocs/{{VERSION}}/ (Javascript API docs) | |
| The Git tag can be found here: | |
| https://github.com/apache/tinkerpop/tree/{{VERSION}} | |
| The release notes are available here: | |
| https://github.com/apache/tinkerpop/blob/{{VERSION}}/CHANGELOG.asciidoc | |
| The [VOTE] will be open for at least the next {{DURATION}} hours. | |
| My vote is +1. | |
| Thank you very much, | |
| {{YOUR_FULL_NAME}} | |
| ---- | |
| === Release RESULT VOTE | |
| [source,text] | |
| ---- | |
| This vote is now closed and has {{OUTCOME}}. | |
| {{ATR_TALLY}} | |
| Thank you very much, | |
| {{YOUR_FULL_NAME}} | |
| ---- | |
| === General Release Announcement | |
| The template below refers to the "name of release line" and the "release line logo". Every release line has a name | |
| and logo. For example, 3.1.x had the name, "A 187 On The Undercover Gremlinz" and the logo shown | |
| link:https://tinkerpop.apache.org/docs/x.y.z/upgrade/#_tinkerpop_3_1_0[here] in the upgrade documentation. | |
| [source,text] | |
| ---- | |
| Subject: Apache TinkerPop xx.yy.zz Released: [name of release line] | |
| Hello, | |
| Apache TinkerPop xx.yy.zz has just been released. [some text to introduce the release - e.g. whether or not | |
| there is breaking change, an important game-changing feature or two, etc.] | |
| The release artifacts can be found at this location: | |
| https://www.apache.org/dyn/closer.lua/tinkerpop/xx.yy.zz/apache-tinkerpop-gremlin-console-xx.yy.zz-bin.zip | |
| https://www.apache.org/dyn/closer.lua/tinkerpop/xx.yy.zz/apache-tinkerpop-gremlin-server-xx.yy.zz-bin.zip | |
| https://www.apache.org/dyn/closer.lua/tinkerpop/xx.yy.zz/apache-tinkerpop-xx.yy.zz-src.zip | |
| The online docs can be found here: | |
| https://tinkerpop.apache.org/docs/xx.yy.zz/reference/ (user docs) | |
| https://tinkerpop.apache.org/docs/xx.yy.zz/upgrade/#_tinkerpop_xx_yy_zz (upgrade docs) | |
| https://tinkerpop.apache.org/javadocs/xx.yy.zz/core/ (core javadoc) | |
| https://tinkerpop.apache.org/javadocs/xx.yy.zz/full/ (full javadoc) | |
| https://tinkerpop.apache.org/dotnetdocs/xx.yy.zz/ (.NET API docs) | |
| https://tinkerpop.apache.org/jsdocs/xx.yy.zz/ (Javascript API docs) | |
| The release notes are available here: | |
| https://github.com/apache/tinkerpop/blob/xx.yy.zz/CHANGELOG.asciidoc#release-xx-yy-zz | |
| The Central Maven repo has sync'd as well: | |
| https://repo1.maven.org/maven2/org/apache/tinkerpop/tinkerpop/xx.yy.zz/ | |
| Go artifacts are available via Go Package Manager: | |
| https://pkg.go.dev/github.com/apache/tinkerpop/gremlin-go/v4@vxx.yy.zz | |
| Python artifacts are available in pypi: | |
| https://pypi.python.org/pypi/gremlinpython/xx.yy.zz | |
| .NET artifacts are available in NuGet: | |
| https://www.nuget.org/packages/Gremlin.Net/xx.yy.zz | |
| https://www.nuget.org/packages/Gremlin.Net.Template/xx.yy.zz | |
| Javascript artifacts are available in npm: | |
| https://www.npmjs.com/package/gremlin/v/xx.yy.zz | |
| Gremlint is available in npm: | |
| https://www.npmjs.com/package/gremlint/v/xx.yy.zz | |
| Gremlin MCP is available in npm: | |
| https://www.npmjs.com/package/gremlin-mcp/v/xx.yy.zz | |
| Docker images for Gremlin Console and Gremlin Server can be found on Docker | |
| Hub: | |
| https://hub.docker.com/u/tinkerpop/ | |
| [include the release line logo image] | |
| ---- | |
| === Standard Tweet Text | |
| The tweet from `@apachetinkerpop` doesn't need to really adhere to any specific format necessarily, but for general | |
| patch releases, the following simple text is common: | |
| [source,text] | |
| ---- | |
| Apache TinkerPop xx.yy.zz Released. [name of release] [link to gremlin-users announcement] #graphdb #nosql | |
| ---- | |
| Remember to include the picture for the release with the tweet. |