16 KiB
Maintaining this template: If you notice that any of these steps become out-of-date, open a pull request to update this issue template.
To enable the new version
Do these steps in a local checkout to create a GHES release branch with passing tests:
If you aren't comfortable going through the steps alone, sync up with a docs engineer to pair with.
-
Create a new branch from
mainwith the nameghes-<RELEASE>-megabranch. e.g.ghes-3.2-megabranch. -
In lib/enterprise-server-releases.js:
- Prepend the new release number to the
supportedarray. - Increment the
nextvariable above thesupportedarray (e.g., new release number +.1). - Increment the
nextNextvariable above thesupportedarray (e.g., new release number +.2).
- Prepend the new release number to the
-
Update the GHES dates file:
-
Make sure you have a
.envfile at the root directory of your local checkout, and that it contains a PAT in the format ofGITHUB_TOKEN=<token>withreposcope. Ensure the PAT is SSO-enabled for thegithuborg. -
Run the script to update the dates file:
script/update-enterprise-dates.js
-
-
Create REST files based on previous version. Copy the latest GHES version of the decorate file from
src/rest/datato a new file in the same directory for the new GHES release. Ex,cp src/rest/data/ghes-3.4.json src/rest/data/ghes-3.5.json. -
Create GraphQL files based on previous version:
script/enterprise-server-releases/create-graphql-files.js --oldVersion <PLAN@RELEASE> --newVersion <PLAN@RELEASE> -
Create webhook files based on previous version:
script/enterprise-server-releases/create-webhook-files.js --oldVersion <PLAN@RELEASE> --newVersion <PLAN@RELEASE> -
Create a placeholder release notes file called
data/release-notes/<PRODUCT>/<RELEASE NUMBER>/PLACEHOLDER.yml. For exampledata/release-notes/enterprise-server/3-1/PLACEHOLDER.yml. Add the following placeholder content to the file:Note: All of the content in this file will be updated when the release notes are created in the megabranch including the filename
PLACEHOLDER.yml. You can update the date or leave it as-is and wait to update it when the release notes are finalized.Click to view placeholder...
date: '2099-12-31' release_candidate: true deprecated: false intro: | {% note %} **Note:** If {% data variables.location.product_location %} is running a release candidate build, you can’t upgrade with a hotpatch. We recommend that you only run release candidates in a test environment. {% endnote %} For upgrade instructions, see "[Upgrading {% data variables.product.prodname_ghe_server %}](/admin/enterprise-management/updating-the-virtual-machine-and-physical-resources/upgrading-github-enterprise-server)." sections: # Remove section heading if the section contains no notes. features: # Remove a sub-section heading if the heading contains no notes. If sections # that regularly recur are missing, add placeholders to this template. - heading: Instance administration notes: # LINK TO RELEASE ISSUE - | ... - heading: Instance services notes: # LINK TO RELEASE ISSUE - | ... - heading: Identity and access management notes: # LINK TO RELEASE ISSUE - | ... - heading: Authentication notes: # LINK TO RELEASE ISSUE - | ... - heading: Migrations notes: # LINK TO RELEASE ISSUE - | ... - heading: Policies notes: # LINK TO RELEASE ISSUE - | ... - heading: Audit logs notes: # LINK TO RELEASE ISSUE - | ... - heading: GitHub Connect notes: # LINK TO RELEASE ISSUE - | ... - heading: GitHub Advanced Security notes: # LINK TO RELEASE ISSUE - | ... - heading: Dependabot notes: # LINK TO RELEASE ISSUE - | ... - heading: Code security notes: # LINK TO RELEASE ISSUE - | ... - heading: GitHub Actions notes: # LINK TO RELEASE ISSUE - | ... - heading: GitHub Packages notes: # LINK TO RELEASE ISSUE - | ... - heading: GitHub Pages notes: # LINK TO RELEASE ISSUE - | ... - heading: Community experience notes: # LINK TO RELEASE ISSUE - | ... - heading: Organizations notes: # LINK TO RELEASE ISSUE - | ... - heading: Repositories notes: # LINK TO RELEASE ISSUE - | ... - heading: Issues notes: # LINK TO RELEASE ISSUE - | ... - heading: Projects notes: # LINK TO RELEASE ISSUE - | ... - heading: GitHub Discussions notes: # LINK TO RELEASE ISSUE - | ... - heading: Commits notes: # LINK TO RELEASE ISSUE - | ... - heading: Pull requests notes: # LINK TO RELEASE ISSUE - | ... - heading: Releases notes: # LINK TO RELEASE ISSUE - | ... - heading: Gist notes: # LINK TO RELEASES ISSUE - | ... - heading: Markdown notes: # LINK TO RELEASE ISSUE - | ... - heading: Accessibility notes: # LINK TO RELEASE ISSUE - | ... - heading: GitHub Mobile notes: # LINK TO RELEASE ISSUE - | ... - heading: Integrations and extensions notes: # LINK TO RELEASE ISSUE - | ... changes: # LINK TO RELEASE ISSUE - | ... known_issues: # INCLUDE NOTES FOR RELEASE FROM "GHES Release Note Tracking" PROJECT'S "Known Issues" TAB - | ... deprecations: # LINK TO RELEASE ISSUE - | ... -
If this is a release candidate release, add a Release Candidate banner:
script/enterprise-server-releases/release-banner.js --action create --version <PLAN@RELEASE> -
Create a PR with the above changes. This PR is used to track all docs changes and smoke tests associated with the release. For example https://github.com/github/docs-internal/pull/22286.
When the docs-internal release branch is open
-
Add a label to the PR in this format:
sync-english-index-for-<PLAN@RELEASE>☝️ This will run a workflow on every push to the PR that will sync only the English index for the new version. This will make the GHES content searchable on staging throughout content creation, and will ensure the search updates go live at the same time the content is published. See
contributing/search.mdfor details. -
Get the megabranch green with passing tests as soon as possible. This typically involves fixing broken links and working with engineering to address other unexpected test failures.
-
Create an issue for the Code scanning and GHAS focus team to update the
codeql_cli_ghes_recommended_versionproduct variable to add the correct CodeQL CLI version for the upcoming GHES release. -
In
github/github, use a Codespace to create a pull request that adds a new GHES release. Follow these steps (some of these steps may have already been done):- Copy the previous release's configuration file to a new configuration file for this release
cp app/api/description/config/releases/ghes-<LATEST RELEASE NUMBER>.yaml app/api/description/config/releases/ghes-<NEXT RELEASE NUMBER>.yaml. - Update all references to the old GHES release number in that file to use the new GHES release number. There are about 4 occurrences at the time of this writing:
variables.externalDocsUrl,variables.ghesVersion, and two keys underpatchfor the paths/info/x-github-releaseand/externalDocs. - Update
publishedin that file tofalse. Note: This is important to ensure that changes for the next version of the OpenAPI schema changes are not made public until the new version is released. - Run
./bin/openapi generate-root-filesto generate theapp/api/description/ghes-<LATEST RELEASE NUMBER>.yamlfile and merge the changes. - Create a PR with the two file changes
app/api/description/ghes-<NEW RELEASE NUMBER>.yamlandapp/api/description/config/releases/ghes-<NEW RELEASE NUMBER>.yaml - Create a second PR based on the PR created ☝️ that toggles
publishedtotruein theapp/api/description/config/releases/ghes-<NEXT RELEASE NUMBER>.yamlfile. When this PR merges it will publish the new release to thegithub/rest-api-descriptionrepo and will trigger a pull request in thegithub/docs-internalrepo with the schemas for the next GHES release. There is a step in this list to merge that PR in the "Before shipping the release branch" section.
- Copy the previous release's configuration file to a new configuration file for this release
-
At least once a day until release, merge
maininto the megabranch and resolve any conflicts or failing tests.
Troubleshooting
Node.js tests / test content failures
If the Node.js tests / test content check fails with the following message, the lib/enterprise-dates.json file is not up-to-date:
FAIL tests/content/search.js ● search › has remote indexNames in every language for every supported GHE version
This file should be automatically updated, but you can also run script/update-enterprise-dates.js to update it. Note: If the test is still failing after running this script, look at the dates for this release. If the date is still inaccurate, it may be an issue with the source at https://github.com/github/enterprise-releases/blob/master/docs/supported-versions.md#release-lifecycle-dates. If that is the case, manually update the dates in the lib/enterprise-dates.json file.
Before shipping the release branch
-
Add the GHES release notes to
data/release-notes/. -
Add any required smoke tests to the opening post in the megabranch PR.
Usually, we should smoke test any new GHES admin guides, any large features landing in this GHES version for the first time, and the REST and GraphQL API references.
-
A few days before shipping, check for broken links. Run
script/check-english-links.jsin a local copy of the megabranch. -
Freeze the repos at least 1-2 days before the release, and post an announcement in Slack so everybody knows. It's helpful to freeze the repos before doing the OpenAPI merges to avoid changes to the megabranch while preparing and deploying.
-
Alert the Neon Squad (formally docs-ecosystem team) 1-2 days before the release to deploy to
github/github. A PR should already be open ingithub/github, to change the OpenAPI schema configpublishedtotrueinapp/api/description/config/releases/ghes-<NEXT RELEASE NUMBER>.yaml. They will need to:- Get the required approval from
@github/ecosystem-api-reviewersthen deploy the PR to dotcom. This process generally takes 30-90 minutes. - Once the PR merges, make sure that the auto-generated PR titled "Update OpenAPI Descriptions" in doc-internal contains the decorated JSON files for the new GHES release. If everything looks good, merge the "Update OpenAPI Description" PR into the GHES release megabranch. Note: Don't attempt to resolve conflicts for changes to the
src/rest/datafiles. Instead delete the existing OpenAPI files for the release version from the megabranch (that is, revert the changes to thesrc/rest/datadecorated JSON files, e.g., from the megabranch do agit checkout origin/main src/rest/data/*), so there are no conflicts to resolve and to ensure that the incoming artifacts are the correct ones.
- Get the required approval from
-
Alert the Ecosystem-API team in #ecosystem-api about the pending release freeze and incoming blocking review of OpenAPI updates in the public REST API description (the
rest-api-descriptionsrepo). They'll need to block any future "Update OpenAPI Descriptions" PRs in the public REST API description until after the ship.- Add a blocking review to the auto-generated "Update OpenAPI Descriptions" PR in the public REST API description. (You or they will remove this blocking review once the GHES release ships.)
🚢 🛳️ 🚢 Shipping the release branch
-
Sync the search indices for the new release:
- First navigate to the sync search indices workflow.
- Then, to run the workflow with parameters, click on
Run workflowbutton. - A modal will pop up where you will set the following inputs:
- Branch: The new
ghes-<RELEASE>-megabranchversion megabranch you're working on - Version:
enterprise-server@<RELEASE> - Language:
en
- Branch: The new
- Run the job. The workflow job may fail on the first run—so retry the failed job if needed.
-
Remove
[DO NOT MERGE]and other meta information from the PR title 😜. -
The
github/docs-internalrepo is frozen, and theRepo Freeze Check / Prevent merging during deployment freezes (pull_request_target)test is expected to fail.Use admin permissions to ship the release branch with this failure. Make sure that the merge's commit title does not include anything like
[DO NOT MERGE], and remove all the branch's commit details from the merge's commit message except for the co-author list. -
Do any required smoke tests listed in the opening post in the megabranch PR. You can monitor and check when the production deploy completed by viewing the
docs-internaldeployments page. -
Once smoke tests have passed, you can unfreeze the repos and post an announcement in Slack.
-
After unfreezing, alert the Ecosystem-API team in #ecosystem-api the docs freeze is finished/thawed and the release has shipped.
- You (or they) can now remove your blocking review on the auto-generated "Update OpenAPI Descriptions" PR in public REST API description (the
rest-api-descriptionsrepo). (although it's likely newer PRs have been created since yours with the blocking review, in which case the Ecosystem-API team will close your PR and perform the next step on the most recent PR). - The Ecosystem-API team will merge the latest auto-generated "Update OpenAPI Descriptions" PR (which will contain the OpenAPI schema config that changed
publishedtotruefor the release).
- You (or they) can now remove your blocking review on the auto-generated "Update OpenAPI Descriptions" PR in public REST API description (the
-
After unfreezing, if there were significant or highlighted GraphQL changes in the release, consider manually running the GraphQL update workflow to update our GraphQL schemas. By default this workflow only runs once every 24 hours.
-
After the release, in the
docs-contentrepo, add the now live version number to the "Specific GHES version(s)" section in.github/ISSUE_TEMPLATE/release-tracking.yml. When the PR is approved, merge it in.